Question:

W3 HTML Validater Question

by  |  earlier

0 LIKES UnLike

Hi,

I put my website in the w3 html validator thing, and i got some errors that i am starting to fix.

There is one, though, that i am somewhat confused about.

It's the following error:

Line 30, Column 37: end tag for "br" omitted, but OMITTAG NO was specified.

Start Today!! </h1> <br>✉

First off, end tag for <br>?? as far as i know, <br> has no end tag in html. Could somebody please enlighten me on this error, and how to fix it??

And second,"but OMITTAG NO was specified." What does this mean? can anybody please explain?

Thanks guys, i appreciate it.

 Tags:

   Report

3 ANSWERS


  1. If you are coding a page to XHTML 1.0 Standards, ALL tags that don&#039;t have closing tags must be closed by a space and slash:
    or &lt;img style=&quot;width: XXpx; height: YYpx; border: 0;&quot; src=&quot;&quot; alt=&quot;&quot; /&gt;.

    Ron


  2. all tags without a closing tag have to be used like this:

    &lt;input type=&quot;text&quot; /&gt;

    It will not effect the html.

  3. The validator is basing it&#039;s errors on the XHTML standard, which is reall the correct thing. In XHTML, any tag without a closing tag has to have a space-forward slash to close it properly.

    So, make the &lt;br&gt; tag
    and the errors should go away.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions