STYLES can be inserted into three locations:
Inline, Embedded, and External.
Inline Style Sheets
You can place a style tag directly in a HTML Tag.
This is called Inline. Inline styles will override
ones placed elsewhere. Here's an example of an
Inline style:
<H1 STYLE = 'Color: Red'> My Heading </H1>
To place a style in a HTML tag, do the following:
Type the Tag you want to change
Next, type a space and then the word STYLE
Type an equals sign ( = ) after the word STYLE
Type a double quote mark
Type the Property followed by a colon
Type the Value
Type the another double quote mark
Type the right angle bracket ( > ) of the HTML
tag
Embedded Style Sheets
Embedded styles go in the HEAD section of your
HTML page. When you embed a style in the HEAD
section, you use the two tags to tell the browser
where the style starts and ends. You can add a
TYPE attribute, if you want. But modern browsers
don't need it.
Inline, Embedded, and External.
Inline Style Sheets
You can place a style tag directly in a HTML Tag.
This is called Inline. Inline styles will override
ones placed elsewhere. Here's an example of an
Inline style:
<H1 STYLE = 'Color: Red'> My Heading </H1>
To place a style in a HTML tag, do the following:
Type the Tag you want to change
Next, type a space and then the word STYLE
Type an equals sign ( = ) after the word STYLE
Type a double quote mark
Type the Property followed by a colon
Type the Value
Type the another double quote mark
Type the right angle bracket ( > ) of the HTML
tag
Embedded Style Sheets
Embedded styles go in the HEAD section of your
HTML page. When you embed a style in the HEAD
section, you use the two tags to tell the browser
where the style starts and ends. You can add a
TYPE attribute, if you want. But modern browsers
don't need it.
No comments:
Post a Comment