Text
Now that you know something about the structure of html, it's time to introduce you to some commands you can put to use. This section will go into detail about dealing with text and changing them to your liking.
• If you do nothing with the text, they will generally result in 3 pt Times New Roman style in black. If you decide to do otherwise, here's where to start. Before the text you want on the site, put the font element. <font> . Now, you can expand upon it to your liking.
• Inside the font element, there are three different attributes to choose from. They are font face, size, and color. Here are some examples
<font size='1'> This is size 1.
<font size='2'> This is size 2.
<font size='3'> This is size 3.
<font size='4'> This is size 4.
<font size='5'> This is size 5.
<font size='6'> This is size 6.
<font size='7'> This is size 7.
• Now, for some face changes. Say, Times New Roman is too boring for you and you want to explore. Well, here are some compatible fonts that should be available on most computers.
<font face='Times New Roman'> This is Times New Roman.
<font face='Verdana'> This is Verdana.
<font face='Arial'> This is Arial.
<font face='Arial Black'> This is Arial Black.
<font face='Arial Narrow'> This is Arial Narrow.
<font face='Arial Rounded MT Bold'> This is Arial Rounded MT Bold.
<font face='Book Antiqua'> This is Book Antiqua.
<font face='Bookman Old Style'> This is Bookman Old Style.
<font face='Century Gothic'> This is Century Gothic.
<font face='Century Schoolbook'> This is Century Schoolbook.
<font face='Courier'> This is Courier.
<font face='Courier New'> This is Courier New.
<font face='Garamond'> This is Garamond.
MACINTOSH COMPATIBLE FONTS
<font face='Chicago'> This is Chicago.
<font face='Courier'> This is Courier.
<font face='Geneva'> This is Geneva.
<font face='Helvetica'> This is Helvetica.
<font face='Monaco'> This is Monaco.
<font face='New York'> This is New York.
<font face='Palatino'> This is Palatino.
<font face='Times'> This is Times.
IF INTERNET EXPLORER IS PRESENT ON YOUR COMPUTER, THESE FONTS ARE AS WELL.
<font face='Arial Black'> This is Arial Black.
<font face='Comic Sans MS'> This is Comic Sans MS.
<font face='Courier New'> This is Courier New.
<font face='Georgia'> This is Georgia.
<font face='Impact'> This is Impact.
<font face='Times New Roman'> This is Times New Roman.
<font face='Trebuchet MS'> This is Trebuchet MS.
<font face='Verdana'> This is Verdana.
<font face='Webdings'>This is Webdings. --> Webdings.
This is code.• I'm sure you've wondered how I get these nice breaks of space between each of these bullets. It is quite simple. I use the paragraph break element, also known as <p>. Beware, this one actually has an end tag </p>. Of course, if you don't want such a big break, there's always the sentence break specified by the <br> element. This is an empty tag which is why it is written as <br /> in XHTML. Since we're talking about spaces at the moment, it's also time to introduce the non-breaking space. This allows you to put spaces where HTML would otherwise just ignore and close. This non-breaking space uses the entity
• If at some point, you don't feel like using all the br's and the p's, there's also a command that shows the text exactly as you have it typed in your html editor. This element is known as the pre element. Look at the example below, actually, it gets it own page since it messes up the table strucure of this page. Click on the link below to see the preformatted text. The only bad thing about this command is that it renders your text to a code looking text and not the one you have specified.
• Now, on to headers and such. Headers are commonly used to separate sections of text ranging from most important to least. Take a look; there are six different headers.
<h1> This is header 1. </h1>
<text align='center'>Your text</text>
<ul>
<li>Element One</li>
<li>Element Two</li>
<li>Element Three</li>
</ul>
• Here's a numbered list. You can specify what kinds of numerals you would like to use in style sheets. Here's an example of a numbered list below:
<ol>
<li>Element One</li>
<li>Element Two</li>
<li>Element Three</li>
</ol>
• Now, definition lists are quite different from the previous two lists. They include the dl element, the dt term, and the dd description. Here's an example below of a defintion list:
<dl>
<dt>Sailor Moon</dt>
<dd>Also known as Tsukino Usagi.</dd>
</dl>
<dl>
<dt>Sailor Mercury</dt>
<dd>Also known as Mizuno Ami.</dd>
</dl>
• Not that bad, right? Now, I'm sure you know that you can put lists in lists. Want to see what I mean? Take a look:
<ul>
<li>Element One</li>
<ul>
<li>Attribute One</li>
<li>Attribute Two</li>
</ul>
<li>Element Two</li>
<li>Element Three</li>
</ul>
• You can also mix up different kinds of lists like an ordered list and an unordered list:
<ul>
<li>Element One</li>
<ol>
<li>Attribute One</li>
<li>Attribute Two</li>
</ol>
<li>Element Two</li>
<li>Element Three</li>
</ul>
• Here's the last thing I will cover, horizontal rules. Horizontal rules are used as dividers to separate text. The hr element has the attributes align, noshade, size, and width. The align attribute uses the same values as the regular text align. The noshade attribute signifies whether you want the horizontal rule to be shaded. The size attribute decides how tall you want the rule to be in pixels and the width attribute is specified in pixels or percentages.
• Ok, it's time to take a break. You've learned much about text, and it's time to put it to use. Try something on your website and see what happens. Then when you're ready, come back and start the links section.