I.T. Skill Areas
Computer Certifications I currently hold
Self-Study Certification Books
News, Web log, Weblog, Blog
Veiled Chameleon Care Sheet
Veiled Chameleon Care Sheet
Frequently Asked Questions
If you like this website or webpage, please link it. I could use the help. Thanks.

April 20, 2005

XHTML Line Breaks

I kept having problems tonight with this error on one of my pages when I tried to get it to validate as XHTML 1.1:

  1. Line 9, column 5: end tag for "br" omitted, but OMITTAG NO was specified


    You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".

  2. Line 9, column 1: start tag was here


  3. Line 9, column 12: end tag for element "br" which is not open


    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

I searched Google all over for the answer to the problem, and I ended up searching through the document type definition (which finding the answer to a problem through is often like trying to find a needled in a hay field). But this time it came easily:

These tags must have nothing in between them. The tags must be empty, like this:


Someone else with the same problem and searching Google just may find it easier now through this page.

Posted by Jeff at April 20, 2005 11:56 AM


IIRC "" is what is normally required for a XHTML line break.

Posted by: Matthew at July 1, 2005 04:23 AM

Opps i meant "<br />".

Posted by: Matthew at July 1, 2005 04:25 AM

Empty elements must either have an end tag or the start tag must end with />. For instance, or .
You can see this information here:

Posted by: ukeyocg at July 29, 2005 08:16 PM

Sorry. Now all the information:
Empty elements must either have an end tag or the start tag must end with />. For instance, or .
You can see this information here:

Posted by: ukeyocg at July 29, 2005 08:18 PM

I googled to find out what the following means from the w3org validator and i came up with your site so am hopeing I you can explain.

Line 1718 column 5: end tag for "dd" omitted, but OMITTAG NO was specified.

I have gotten a number of these and I do not understand as there are never any open tags.

I am trying to run a strict xhtml 1 coded page. I know it would be easier with a less strict, but what is the point.

Posted by: mj at August 17, 2006 11:12 AM

I love this website. It gives Information that is useful and ful and Fun Facts! My classroom 6GN uses this website to complete the follwing homework on their vertabrate project they are supposed to do

Posted by: Jessica at October 25, 2006 05:57 PM

Thank you for helping me fix these errors when trying to validate my website. A google search brought me right here. I'm an old coder and never realized you now have to close the br tag. Even worse, I was following the convention of capitalizing my tags so I could follow them in the code. I didn't know you could not do that anymore either!!

Posted by: Austin at February 3, 2007 08:25 AM

Wow, the only result googling for "set omittag no" that the xhtml validation service bitches about.

This thread doesn't solve it. If you do linebreaks with "" it's html incompatible, since it expects only a for a line break.

Now why won't the official Xhtml site tell us how to specify "OMITTAG NO"? Would appreciate a helpful tip. (But I'm really drawing a pentagram in blood on the floor and chanting evil songs.)

Posted by: maximilion at July 4, 2007 06:23 PM

The answer is already in the comments. Use .

Posted by: Jeff at July 4, 2007 06:27 PM

Funny thing is, this page doesn't validate!

Posted by: Phil at November 6, 2007 08:22 AM

@Phil: That IS hilarious! (I was missing a semicolon in the text.)

Thanks for the heads up. I don't think I've ever edited this page, so that mistake was there for 2.5 years!

Posted by: Jeff at November 6, 2007 10:33 PM

hy people,
I came up with another kind of problemo in validation, acctualy same problem but with tag and says "end tag for X omitted, but OMITTAG NO was specified" "Line 498, column 13: end tag for "tr" omitted, but OMITTAG NO was specified" end when I erase this tag my site go es to the right align, I dont know what sholud I do so if any have answer please help

Posted by: dario at February 13, 2008 01:17 AM

Hi, I'm hoping someone could help me here. While tying to vaildate my html I get a like 37 errors. Most are because I'm trying to center some scripts. like using right before the script. I hvae also tried to use with end tag They do the job but still not with vaildate erros. Can someone tell what I'm doing so wrong.. Thank you...

Posted by: Dominick at September 15, 2008 06:59 AM

thanks that help out fast :)

Posted by: raeed at February 21, 2010 01:03 PM

Thanks Mathew.

Posted by: Gita at July 13, 2010 01:31 AM

Post a comment

Remember personal info?

Comment Spammers: Amazing...there's not any comment nor trackback spam anywhere on this weblog. And yet this weblog receives thousands of spam attempts every week. You'd think that these guys would instead devote their resources to sites where they have a chance.

. Original Copyright, May 2004. All Rights Reserved.