From what I’ve read, the correct way to start an HTML5 page is:
<!DOCTYPE html>
<html>
With nothing more in those lines. Is this true? (I’m asking because Visual Studio has more than that.)
(Also, I’m wondering if HTML5 is really the current standard or should I be using XHTML5 or some other version.)
According to the HTML living standard and the W3C spec, the doctype is the required preamble but required for legacy reasons. I quote:
And
<html></html>for a valid documentIt is not the current standard IMHO because it is not finished yet. But this article explains very well 10 reasons for using it now.