In Assignment 4 we set up a basic page with
no formatting...let's expand our knowledge.
The <FONT...> tag allows you to do three things: Set the font face, font color, and font size. These are called attributes and they are contained within the opening FONT tag itself.For example: <FONT FACE="Berlin Sans,Arial">Font 1</FONT> looks like: Font 1
Notice there are two fonts listed. The first is the one you hope they have. The second is the alternative font...just in case.
For example: <FONT COLOR="GREEN">Font 2</FONT> looks like: Font 2
The Color can either be one of the 16 predefined colors in HTML or the hexadecimal code for other colors.
For example: <FONT SIZE="+2">Font 3</FONT> looks like: Font 2
Of course, these can be combined within the same tag. Some HTML editors use separate, nested tags, but it is cleaner to use one tag.
For example: <FONT FACE="Berlin Sans,Arial" COLOR="GREEN" SIZE="+2">Font 4</FONT> looks like: Font 4
First we'll talk about Headings. The Heading tags, represented by <H...> allow you to format a heading, in sizes 1-6, which automatically includes a bold type and blank lines above and below the text between the tags.
For example: <H1>Heading 1</H1> through <H6>Heading 6</H6> looks like:Bold, Italic, and Underline are pretty self explanatory. They do exactly what they say and, if you're familiar with a word processor, chances are that you have used each of these often.Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
As you can tell, anything smaller than Heading 3 may not be worth the formatting. Heading tags do prevent you from getting close to the heading line, either from the top or the bottom.
For example: <B>Bold</B> looks like: BoldSuperscript and Subscript will probably be rarely used, but are nice to know.
For example: <I>Italic</I> looks like: Italic
For example: <U>Underline</U> looks like: Underline
For example: <SUP>Superscript</SUP> looks like: SuperscriptCombining formats. Yes, you can combine tags. But you don't really combine them ~ you nest them, like you nest measuring cups. Be careful, though, that you nest & un-nest in the reverse order. Notice in the examples how the outermost tag is the last closed and the innermost is the first closed.
For example: <SUB>Subscript</SUB> looks like: Subscript
For example: <B><I>BoldItalic</I></B> looks like: BoldItalic
For example: <U><B>UnderlineBold</B></U> looks like: UnderlineBold
Paragraph tags do not require a closing tag. When it encounters a <P> tag, it starts a new line and adds just enough space to set it off from the previous line. On the other hand, Break is equivalent to pressing Enter in a word processor and does not add blank space above or below the line.
For example: <P>Paragraph looks like:Paragraph
For example: <BR>Line Break looks like:
Line Break
Now, go forth and create! Assignment
#6
On-Line HTML Tutorials and Tips:
HTML Goodies