Confusion between html and xml syntax in documentation #27661
Labels
closed: question
A user misinterpretation or support question. No action required.
Content:Learn
Learning area docs
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics
What specific section or headline is this issue about?
all document
What information was incorrect, unhelpful, or incomplete?
Most examples are phrased with XML syntax for HTML5, but do not contain XML preamble. In addition, nothing is made to warn the reader about the requirement to serve those documents as XML.
What did you expect to see?
Could examples be phrased using html syntax, to avoid ambiguity? Or could there be a section that explains that for self-closing elements (void elements), the two syntaxes are possible?
In pages like:
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled
for example, the two syntaxes coexist, which might give the feeling that something is wrong.
Do you have any supporting links, references, or citations?
Source: https://www.w3.org/TR/html5-diff/#syntax
The text was updated successfully, but these errors were encountered: