CO2 + SO4-2
3x2 - 2y-1/2 = 4z
With the HTML introduced by NetScape and HTML 3.0, you have some more options for formatting your text. Specifically, you can have different sized text as well as different colored text. When used judiciously, the text formatting can enhance the layout of a web page. When used with abandon, it can produce web pages that look like noise.
You can also now create superscript and subscripts used in mathematical expressions, chemical formulas, or as footnote markers.
In this lesson we will introduce you to these text features with some examples that you will use to modify your Volcano Web pages. You may want to first refer to the font test page to determine if your web browser supports the tags used in this lesson.
Note: If a web browser does not support the <font> tags, you may want to try the HTML 3.0 tags:The format for the font size tag is:<BIG>...</BIG> <SMALL>...</SMALL>which gives you less font sizes to work with but can still be useful for those browsers.
<font size=N>blah blah blah</font>where N=1 to 7. The font tag may be used in conjunction with other style tags (lesson 5) or inside header tags (lesson 3)
The other method for using the font tag is to provide a relative size change:
<font size=+1>blah blah blah</font> <font size=-2>blah blah blah</font>i.e. where the +N or -N value provides the offset from the current font size. This is used with another tag:
<basefont size=5>which changes the base font size from its default value of 3 to some other value. You might do this in a web page that will mostly have text of a larger or smaller than standard font size. That way, if you need to adjust small portions of the page, you can use the relative font size tags shown above.
The power of using relative font size tags (i.e. size=+2) over absolute size tags (i.e. size=5) is that we could easily shift the size of ALL text in that page by changing one instance of the <basefont> tag.
Note: The <basefont> tag has no closing tag- it continues to be the base font size until another <basefont> tag occurs.We will first use the font size tag to modify the title in our opening page:
Change the line that reads:
<h1>Volcano Web</h1>to:
<p> <B><font size=+4>V</font><font size=+3>OLCANO WEB</font></B>Look carefully what we have done- the first V is now increased in size by 4 units above the base value, and the other letters (now capitalized) are increased 3 units above base value. This provides the layout style of SMALL CAPS. Also note that we have added a <b>...</b> tag to make the title stand out. And finally, because we are not using a header tag that carries a line break by default, we had to add a <p> tag above the title to force it to appear on a new line (we do not need one after because the next HTML is a <BLOCKQUOTE> that carries its own line break- see lesson 13)
<B><I><font size=+1>"Nature raves savagely, threatening the lands"</font></I></B><br>
<h3>blah blah blah</h3>with:
<p> <font size=+1><B>blah blah blah</B></font><br>Note that the <p> tag forces a one line break with preceding text above and the <br> tag forces a line break (no white space) to subsequent text.
Can you see the difference between using the <font> tags and the <hN> tags for section titles? The formatting differences may be subtle, but it does offer you, the HTML author, alternatives for your web page design. Just remember that if a reader's browser does not support font size tags, they will see all the text as the standard size.
<h3>...</h3> | <p><b><font size=+1> ...</font></b><br> |
---|---|
...before the next great innovation
that rocked the world of rotten milk.
History of Longhorn CheeseLonghorn cheese was first discovered by Alister Longhorn in 1754 when he... |
...before the next great innovation
that rocked the world of rotten milk.
History of Longhorn Cheese
|
We will not go crazy with the color tags, but as an example, we will change the color of the VOLCANO WEB text we worked on above for the cover page. If you recall, we set the text color for the text of this page to yellow and we will override that color just for the title text:
<B><font size=+4 color=#FF66FF>V</font> <font size=+3 color=#DD0055>OLCANO WEB</font></B>
NOTE: The size and color attributes can reside together in a <font> tag. The effect here makes the "V" a brighter violet color and one size larger than the other letters.
The HTML format for these tags is:
superscript | <sup>...</sup> | |
subscript | <sub>...</sub> |
We will now use these tags for our Introduction page:
Volcanoes were important contributors to the early earth atmosphere by releasing gases such as nitrogen (N<sub>2</sub>), carbon dioxide (CO<sub>2</sub>), and ammonia (NH<sub>4</sub>).
Note that volcanic eruptions that occurred before historic times were several orders of magnitude larger (more than 1000 km<sup>3</sup> in erupted volume) than ones observed by humans.
Volume in km^3to
Volume in km<sup>3</sup>
... and after Linberger and Gordon's 1963 study12 on the effects of temperature on cheese maturation, Gange and Walters (1964)13 as well as Colby (1969)14 reached the same conclusion.blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
12.Linberger and Gordon's experiments were controversial because of their radical techniques of temperature control.
13.Gange and Walters actually did not reach the same conclusion until their results had been verified by J.D. Smith. For more information see, Cheese Abtracts 1964, pp.234-239
14.Colby never recieved enough recongition for his pioneering work in the cheese field
The Internet Connection at MCLI is
Alan Levine --}
Comments to levine@maricopa.edu
URL: http://www.mcli.dist.maricopa.edu/tut/tut18.htm