want to learn html

Status
Not open for further replies.

wolvrine

Broken In
<html>
<body bgcolor="#800000">
<title>HTML PAGE </title>
<font face="verdana" size="14" color="#cccccc">
<p align="center">
<body>






Welcome to my HTML page. If you need to learn more about HTML, click
here.
</p>
</font>
</body>
</html>
<p align="center"> and </p>
"align" is a "sub-tag" for

. It is used to specify the alignment of the text within
the new paragraph.


This inserts an image where it is placed.

and
This tag inserts a hyperlink. The link is specified in the "href" section of the link,
and the text directly after the first tag is closed. After you have already typed the text
that you wish to hyperlink and you are ready to end the link, you end the tag, using
</a>.


wait for another
 
OP
wolvrine

wolvrine

Broken In
learn html

<html>
<body bgcolor="#C0C0C0">
<title>New HTML Page</title>
<font face="Verdana" size="15" color="red">
<!- The text here is important ->
<body>
Welcome to my new HTML page. You need no knowledge of HTML
to view this page.



It was made by me,

(Your Name)
</body>
</font>
</html>

Now, lets take it step by step.
<html> and </html>
These tags mark the beginning and the end of an HTML document. These documents end with .html or .htm extensions.

<body bgcolor="#hex or color">
This specifies the page's background color. You can either enter a hexidecimal string
for the color, or thanks to new upgrades in browsers, just specify a color, such as "red".

<title> and </title>
Mark the beginning and the end of the text located at the top of the browser. Any text
is allowed here.

<font face="font" size="size" color="color or #hex"> and </font>
This is to specify the type of font used for the text following it. Note that also you can
write each "sub-tag" such as "face", "size", and "color" as its own tag, like this.
<font face="font> </font>
<font size="size"> </font size>
<font color="color or #hex"> </font color>
But you have to close them individually, so it's quicker to just incorporate them into one
tag.

This is a commentary tag. The text within this tag will not show up on the page, and does
not affect this page as long as you close the comment with --> or --!> (the number of
underscores does not matter). These tags are used to give the reader of the HTML source
accompanying the page he or she is reading some information about the site, such as the
author or date of publication.

<body> and </body>
Mark the beginning of the body of a document. Not necessary, but are often used to organize the document a little better.




A paragraph tag. Each tag inserted creates a new paragraph.



A line break. Each tag inserted automatically puts the next text or image at the next line.
Now that you know some basic tags, lets get on to a script that's a "step" higher.
 

theraven

Technomancer
plz avoid makin multiple posts on same topic
u could very well post the same thing under one topic
topics merged
 

tuxfan

Technomancer
Anyway, the code has errors :roll:

<title> come before <body>
There should be only one <body> tag.

This is just a cursory observation. There could be more errors.

BTW, what is the purpose of this thread? Are you teaching HTML or want to learn HTML?
 
Status
Not open for further replies.
Top Bottom