|
Adding Your Own Style Grammar needs structure and finessing this structure adds style to your writing. HTML makes it easy to add style to your creations. This section will provide you with information on horizontal rules, headings and other text styles. Horizontal RulesThe <HR> horizontal rule tag creates a line which can be used to break up space on your page. The <HR> horizontal rule tag has three principal attributes:
HeadingsThe heading tag allows you to add headings and subheadings to your page. The headings tag has six sizes:
Headings can be aligned left, right or center with the align attribute. Left is the default alignment. Here's how <H3 align=center> Center Heading </H3> appears in your browser: Center HeadingDIVUse the center align attribute, within the <DIV> tag to center text, graphics, or tables. Here's how <DIV align="center">This is centered text.</DIV> would appear in your browser: This is centered text.
STRONGThe <STRONG> strong or bold tag makes text darker and thicker. Here's how <STRONG>This is bold text </STRONG> would appear in your browser:
ITALICSThe <I> italics makes text italic. A similar tag, <ADDRESS> also
makes text italic and is generally used to provide contact information at the end of a
page. This is italics FontThe <FONT> font tag can be used to change the size, or style. The font tag is deprecated (meaning that it is not recommended by the W3C any longer) but it still works in most browsers. The font tag has three main attributes:
Nesting TagsYou can also use multiple tags and attributes together to get different effects. When nesting tags, be sure to close the tags in the same order that you opened them.
|