January 1, 201115 yr Author ok thanks for that also somone told be that in XHTML you can't use the following. Is that true and why is that. <center> <font> <iframe> <menu> <s> <strike> <u>
January 1, 201115 yr ok thanks for that also somone told be that in XHTML you can't use the following. Is that true and why is that. <center> <font> <iframe> <menu> <s> <strike> <u> Most of those tags should never be used inside HTML whatever the version, apart from <iframe>. They are presentational tags and these things should be left to CSS to sort out. But i must say throughout the five years of using HTML, i have never came across the <menu> tag or the <u> tag. What are they? Edited January 1, 201115 yr by neilp
January 1, 201115 yr Most of those tags should never be used inside HTML whatever the version, apart from <iframe>. They are presentational tags and these things should be left to CSS to sort out. But i must say throughout the five years of using HTML, i have never came across the <menu> tag or the <u> tag. What are they? <menu> is new on me, but <u> underlines the contents. Usage: <u>I am underlined.</u> Instead, these days we'd use <span style="text-decoration: underline;">I am underlined</span> because there just wasn't enough typing before (¬_¬) Edited January 1, 201115 yr by Skateside
January 1, 201115 yr Regarding HTML or XHTML, read this:- http://dev.w3.org/html5/spec/Overview.html especially item 1,6 where it says The first such concrete syntax is the HTML syntax. This is the format suggested for most authors. It is compatible with most legacy Web browsers. If a document is transmitted with an HTML MIME type, such as text/html, then it will be processed as an HTML document by Web browsers. This specification defines version 5 of the HTML syntax, known as "HTML5". The second concrete syntax is the XHTML syntax, which is an application of XML. When a document is transmitted with an XML MIME type, such as application/xhtml+xml, then it is treated as an XML document by Web browsers, to be parsed by an XML processor. Authors are reminded that the processing for XML and HTML differs; in particular, even minor syntax errors will prevent a document labeled as XML from being rendered fully, whereas they would be ignored in the HTML syntax. This specification defines version 5 of the XHTML syntax, known as "XHTML5". In other words, if you write the code in the way XHTML should be written, with lower case tags and closing some tags like hr br input meta etc.tags /> instead of only > but then use the meta tag content="text/html then that's tag soup because you are writing code as XHTML but asking the browser to process it as HTML. If you write code as XHTML and use the meta tag content="application/xhtml+xml that is pure XML and IE6 won't process it and the slightest error will make the page completely blank. Many people are using XHTML 1.0 doctype with content="text/html which is tag soup and that's OK at present but the people who wrote the standards are developing HTML5 and XHTML2 and want to make them entirely separate in future so they recommend the HTML syntax for most authors (ie for normal websites) and have XHTML with content="application/xhtml+xml for XML based languages like SVG and MathML.
January 1, 201115 yr The menu tag was another type of list. It should not be used any more UNLESS you are using html5. In HTML 4 spec it was depreciated but was brought back in html5 to list out form controls. <menu> <li>red</li> <li>blue</li> <li>pink</li> </menu> I left out a little because it's a pain to write code on an iPad but you gut the idea i think. Just imagine a form control in there like a check box or something.
Create an account or sign in to comment