|
Text...
<!doctype html public "-//w3c//dtd html 4.0
transitional//en"> <HTML> <HEAD> <TITLE>This
is info for search
engines</TITLE> <BODY> <h2><strong><center><font color="#CC3366">This Is My
One Line Web Page</font></center></strong>< /FONT>
</h2> </BODY> </html>
Now lets add some text!
First add a <P> (paragraph)
tag to start the first line of text. It goes right after the
</h2> tag. Then just start typing what you want to show up
on your page.
<body>
<html>
<head>
<title></title>
</head>
<body> <h2><center><font
color="#CC3366"> This is my one line web
page</h2></font></br> <BR>
<P>
"Well Bones, do the new medical facilities meet with your approval?" -- Kirk
<FONT face=""Times New Roman color="#993399"></STRONG> <P>
"They do not. It's like working in a damn computer center" -- McCoy (Star Trek)
<FONT face=""Times New Roman color="#000000">
<P>"Spock, will you <em>
<STRONG>please</STRONG>
</I> sit down!" -- Kirk (Star Trek)
<P>"Humour. It is a difficult concept" -- Saavik (Star Trek II)
<P> "Who's been holding up the damn elevator?" -- McCoy (Star Trek II) <P>"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI)
</body> </html>
Notice how the <P> tag moves your text
to a new line. I also used the <em> tag that you learned
earlier.
But I also snuck in another parameter that you
haven't seen before in the <FONT> tag. I changed the
font on you from Verdana to Times New Roman. And I used
<STRONG> instead of <B>. The
result is the same. Remember, there is always more than one way to
do something.
It looks like I changed the size of the
text, but I didn't. The Times New Roman font is just a little bit
smaller that the font Verdana.
I could have changed the size though.
The tag to do this is:
<font face= "Verdana" size=
"3"></STRONG></FONT>
It changes "Hey, Look at
me!" to
"Hey, Look at me!"
I don't know if
you noticed or not, but tags can be in either upper or
lower case.
Font parameters:
SIZE:
size of the font
COLOR:
color of the text
FACE:
set the typestyle for text
POINT-SIZE
WEIGHT
I use lower case in my
web pages because someday I might want to use XML (Extensible Markup
Language). XML is a markup language for documents containing
structured information and requires all tags to be in lower
case.
THERE IS A BETTER
WAY TO DO THE THINGS WE HAVE DONE SO
FAR.
AND THAT IS BY USING HTML AND CSS
TOGETHER
Click here
to learn how use HTML and CSS together
|