View Full Version : Optional Closing Tags in HTML
paulj
08-22-2007, 02:46 PM
For as long as I've been validating web pages, I never realized that the closing tag was optional in HTML. I feel as if I've missed the boat at times.While I'm all for trimming excess code, I just cannot for the life of me strip out closing tags because they are optional in HTML. I'd be...
Admin
08-22-2007, 03:26 PM
The closing tag is only optional (I think) in HTML3.2 and HTML4. If you use any XHTML version, the all tags must be properly closed.
doctordew
08-22-2007, 04:14 PM
Yeah I've realized that. When I was writing HTML codes at the begining it took me time to realize I hadn't closed a lot of things, and yet they still work. They get caught in the html validaters though.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.