
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Working with Inline CSS
Associate styles with your HTML document using methods inline CSS and External CSS.
You can use style attribute of any HTML element to define inline style rules. These rules will be applied to that element only. Here is the generic syntax:
<element style = "...style rules....">
The follow
ing is the attribute:
Attribute | Value | Description |
---|---|---|
style | style rules | The value of style attribute is a combination of style declarations separated by a semicolon (;). |
Let us see an example:
<html> <head> </head> <body> <h2 style = "color:#800000;"> This is inline CSS </h2> </body> </html>
- Related Articles
- Display Inline Working with CSS
- Display Inline-Block Working with CSS
- Working with CSS Units
- Inline-level Elements and Inline Boxes in CSS
- Working with element for CSS
- Working with CSS Overflow Property
- Working with CSS Pseudo Classes
- Text Indentation Working with CSS
- Word Spacing Working with CSS
- Styling Links Working with CSS
- Text Transformation Working with CSS
- Styling Tables Working with CSS
- Working with CSS Display Property
- Display Inline using CSS
- How to create a responsive inline form with CSS?

Advertisements