PeterBubresko Posted September 3 Share Posted September 3 I couldn't find a separate forum topic for XHTML, so I'm posting here on HTML. I "think" I have over time allowed myself to be tricked into believing, and therefore misunderstood, where and when I should use <HEADER></HEADER> in XHTML. As before and always, there are as many answers as there are questions on the internet. I have been using this error for a long time. I thought it should only be used between <head> and </head> So in one last attempt, I hope to get more unanimous answers here that lead me out of the vicious circle. Now and where is it correct to use <HEADER> and </HEADER> in XHTML? Should those tags be used on one or more elements arbitrarily between the <body> tags, and in which places/tags should they be used. Quote Link to comment https://forums.phpfreaks.com/topic/323858-xhtml-question-i-am-unsure-of/ Share on other sites More sharing options...
Solution requinix Posted September 4 Solution Share Posted September 4 XHTML? No, this is just regular HTML... <header> elements are HTML 5 replacements to writing stuff like <div class="header">, which means things like browsers and screen readers can more accurately understand the nature of a page. That means they're geared towards content, not metadata. Which means they belong in the document body. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header 1 Quote Link to comment https://forums.phpfreaks.com/topic/323858-xhtml-question-i-am-unsure-of/#findComment-1634642 Share on other sites More sharing options...
PeterBubresko Posted September 4 Author Share Posted September 4 17 hours ago, requinix said: XHTML? No, this is just regular HTML... This was more clearifying. Thank you for the answer. Quote Link to comment https://forums.phpfreaks.com/topic/323858-xhtml-question-i-am-unsure-of/#findComment-1634753 Share on other sites More sharing options...
maxxd Posted September 5 Share Posted September 5 XHTML was a thing quite some time ago. Modern HTML has the semantic benefits that XHTML (as I understood it at the time) claimed to have, while not being as strict in terms of some of the usage. You'll also find modern HTML referred to as HTML5, though honestly these days I'm not sure if the version number even means anything anymore. 1 Quote Link to comment https://forums.phpfreaks.com/topic/323858-xhtml-question-i-am-unsure-of/#findComment-1634773 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.