Some tags used to control the way the text looks. Tags are statements made within the < character and the > character.
Some tags set a condition that is terminated with the end tag statement as: < / character and the > character.
The signifance of the tag is that it begins with the less than symbol and ends with the greater than symbol.
The tag is never shown in the HTML display, but the effects of the tag are displayed.
Some of the tags that affect text are demonstrated in this example. Refer to the source file to see how the HTML is displayed.
A Horizontal Ruling that spans the page is created with the HR tag.
Different font sizes can be made using the H tag numbered 1 through 6
H1 character size tag
H2 character size tag
H3 character size tag
H4 character size tag
H5 character size tag
H6 character size tag
Text can be margin justified or centered
Normally the text is alligned to the left margin
But it may be aligned to the Right margin
or it may be aligned to the center
Text need not be normal as this line is.
it may be italicized
or it may be underlined
The text mey be bold
or it may be a combination of all of them
Different Fonts may be used if they are supported by your browser
This is the default font your browser is using.
This is arial font declared with the font face tag.
Courier new is handy because characters are equal spaced. Numbers line up vertically on multiple lines.
The font is returned to default after having closed the /font tag......
The font color is black over white by default. Individual words may be changed using the font tag.
I can change the text color to
red, or
green, or
blue, or
any combination of these colors for any given portion of the text.
The color is defined by three, two hexidecimal digit numbers in the red, green, blue format with the # sign preceeding the number. The first two digits are for the red component followed by the green component, followed by the blue component.
The color #CD853F is CD parts red, 85 parts green and 3f parts blue and makes a nice brown color.
There are a lot of web pages that display the 256 times 256 times 256 different colors this RGB color scheme can produce. You may wish to try some different colors using the FONT tag yourself.
Handling Some Special Characters
Seperating modules with line feeds is a good way to create source code that is easy to view and edit. The requirement for a br tag makes this easy. Line feeds in the source code don't show in the HTML display but they seperate sections of the source code nicely.
Another resource is comment statements that show in the source code but do not show in the HTML display.
There are two tags that permit this nicely. The exclaimation mark tag and the p tag.
<! This text is visible in the source code, but it will not show in the HTML display >
<p> This comment statement wouldn't show in the HTML display either </p>
I can put these statements into my source code for my own purposes but they won't show in the display as long as they are tagged properly.
Multiple spaces display as a single space in the display.
  in the source code results in a space in the HTML display.
xx       xx
        in the source code would result in        
xx         xx
        in the display.
Three characters that get swallowed by the browser because they are part of tags are the less than, greater than and ampersand characters . They can be displayed useing the ampersand, number sign and ascii decimal equivelant of the character to display the character.
< posts the <
> posts the >
& posts the &
All of the printable ascii characters can be posted using the ascii decimal equivelant numbers 33 through 126.
Make an HTML file using the &# (number) statement to see the characters that can be produced with this tag.
Summary
You may wish to display and copy the PAGE SOURCE code for this presentation and copy it to your working folder. Make a copy of it and change the source code and open it with the browser to see the effects of using these various tags and arguments on the final browser display.
These are only a few of the many tags that control the text in an HTML document. However, they are enough to create a very professional web page.
Most browsers have the ability to create web pages. Our method will ensure better control because it is not limited to the functions the browser provides. Additionally, our method permits creating the source code in such a way that it is easier to edit. The browsers use code that is not easy to follow and laid out in such a way that its difficult to change in many cases.
The main objective is familiarity with the options available and to enjoy creating your web page the way you want it to be.
Oh yeh... here is example of more arguments to the HR tag.