- Using inline styles
- Using an embedded style sheet
- Using an external (linked) style sheet
Using Inline Styles
Inline styles are style definitions that are applied to the style property of a particular HTML element, and are placed directly inside the element on which it has to be implemented. Inline styles are used when one wants to apply one-time formatting to an HTML element.
To use inline styles in a Web page, use the style attribute in the relevant HTML tag. For example, if the text of a paragraph has to be displayed in italicized and Arial font, then the style for the tag will be as shown in the following markup.
No comments:
Post a Comment