Need help, who knows HTML tags?

The result looks like the image in the book. But when i validate it www.validator.w3.org then there are many mistakes. Dont know what to do, what to change, this is new to me. I am beginner. Please, help.
It says, there is about 30 mistakes.
_____________________
</head>
<body>
<h1>Lists</h1>
<p>
Here is text</p>
<ol>
<li>Population in Africa in 2006
<li>Population of Asia in 2006
<li>Population of Europe in 2006
</ol>
<p>Another text. </p>
<ul>
<li>Number of internet users in Africa
<li>Number of internet users in Asia
<li>Number of internet users in Europe
<li>Delightful Internet tid-bits
</ul>
<p><b>As Internet use expands worldwide</b>, the United States said Wednesday it will give other governments and the private sector a greater oversight role in an organization whose decisions affect how computers relay traffic such as e-mail and Twitter posts.
</p>
</body>

This validated "strict"…

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=us-ascii">
<meta name="description" content="">
<meta name="keywords" content="">
</head>
<body>
<h1>Lists</h1>
<p>Here is text</p>
<ol>
<li>Population in Africa in 2006</li>
<li>Population of Asia in 2006</li>
<li>Population of Europe in 2006</li>
</ol>
<p>Another text.</p>
<ul>
<li>Number of internet users in Africa</li>
<li>Number of internet users in Asia</li>
<li>Number of internet users in Europe</li>
<li>Delightful Internet tid-bits</li>
</ul>
<p><b>As Internet use expands worldwide</b>, the United States
said Wednesday it will give other governments and the private
sector a greater oversight role in an organization whose
decisions affect how computers relay traffic such as e-mail and
Twitter posts.</p>
</body></html>

Ron

5 Responses to “Need help, who knows HTML tags?”

  1. Matt E says:

    I ran it on my computer and it looks fine. What were the errors? HTML doesn’t really have errors. It will run no matter what, it may just look messed up.
    References :

  2. no1home2day says:

    It’s been awhile since I’ve done any HTML. Now it’s all VB, but I’ll give it a shot.

    I notice first that each <li> does not have a corresponding </li>. I can’t remember if lists require a closing tag, but I’m fairly certain they do.

    That’s all *I* can see. I’m looking for other problems, but I don’t see anything.

    No, wait - the new HTML requires that <p> does NOT have a matching </p>, but that it be included as <p/>. But that would only account for 10 errors, certainly not 30.

    Good luck. Maybe someone else can spot some of the others.
    References :

  3. yanhurhill says:

    You need to declare the docutype

    To me it looks like it is done in

    HTML 4.01 Transitional

    You should add this to the top of your document above the <head> tag.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Declaring the docutype will help solve your problems.
    References :
    w3.org

  4. Nisovin says:

    1. Every <li> requires a closing </li>.

    2. You aren’t allowed to put any of these tags directly in the <body>, they must be enclosed in a containing element, such as a <div></div>.

    3. You’re missing the <html> </html> tags surrounding the document.

    4. You’re missing an opening <head> tag.

    5. You’re missing a document title in the <title></title> tags, which should be in the head.

    6. You’re missing the document type declaration.

    That’s what I see at first glance. Your paragraph tags are fine.

    Edit: I love it when people go on thumb-down sprees.
    References :

  5. Ron says:

    This validated "strict"…

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html><head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=us-ascii">
    <meta name="description" content="">
    <meta name="keywords" content="">
    </head>
    <body>
    <h1>Lists</h1>
    <p>Here is text</p>
    <ol>
    <li>Population in Africa in 2006</li>
    <li>Population of Asia in 2006</li>
    <li>Population of Europe in 2006</li>
    </ol>
    <p>Another text.</p>
    <ul>
    <li>Number of internet users in Africa</li>
    <li>Number of internet users in Asia</li>
    <li>Number of internet users in Europe</li>
    <li>Delightful Internet tid-bits</li>
    </ul>
    <p><b>As Internet use expands worldwide</b>, the United States
    said Wednesday it will give other governments and the private
    sector a greater oversight role in an organization whose
    decisions affect how computers relay traffic such as e-mail and
    Twitter posts.</p>
    </body></html>

    Ron
    References :

Leave a Reply

Posted on October 19th, 2009 by admin and filed under Twitter Traffic |
|