Select Page
Notifications
Clear all

Optional Closing Tags in HTML

(@Anonymous)
New Member

Has anyone written a book and had it published? We were thinking about it and wanted to get some tips about how to proceed. Any help would be great. Thanks

Quote
Posted : 17/03/2007 12:19 pm
(@Anonymous)
New Member

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 concerned that something, somewhere would not parse the document correctly if I removed the closing element.

Are my concerns unfounded?
_________________
Charity Fund Raising Idea Best Self Cert Mortgages

Quote
Topic starter Posted : 25/04/2008 10:53 am
(@Anonymous)
New Member

Re: Optional Closing Tags in HTML

I agree with your assessment why take the chance? I do not think by removing the tags you are going to gain anything.

ReplyQuote
Posted : 02/08/2008 10:51 am
(@Anonymous)
New Member

Re: Optional Closing Tags in HTML

Although the tags are optional, the elements are not. Remember that an element is part of the document structure, and that tags are the markup declarations to create the document structure. Where the start tag, end tag, or start and end tag can be unambiguously determined, snowman figurines translation agency UK HTML allows these tags to be optional in the markup, but the elements will appear in the document structure. In the above example, I've included a closing tag for the paragraph, but this is optional in HTML as the end of a paragraph can be unambiguously determined.

ReplyQuote
Posted : 24/07/2009 10:12 am
Share: