Jump to content

Scaramouche

Members
  • Posts

    1
  • Joined

  • Last visited

Scaramouche's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Question. Why have the <!DOCTYPE html> at the top of an HTML document in HTML5? Before you give the standard answer ("So the document is interpreted as an HTML document."), think about it. All that is, is a line of plain text saying "HTML". The exact same thing happens when you have the <HTML> tag at the top of the html document. The same line of plain text is repeated. The same thing could be achieved by the interpreter reading that <html> tag. Unnecessary duplication should be avoided. Then there's the file extension as well, which once again serves the same purpose. Perhaps in earlier versions of HTML, it actually made a difference, when you had to specify which set of rules you were going by. However, if the move is toward only saying that it is HTML, then it becomes an unnecessary piece of duplication which should be removed entirely.
×
×
  • Create New...