+ 1

HTML how to write it correctly (conventions)

Hello. Is it a good idea to write html 5 with xml syntax ? (like a XHTML using new elements of html5). Is it hepful for compatibility and to make the code cleaner ?

18th Jul 2018, 6:09 AM
DDD
DDD - avatar
2 Answers
+ 2
if you first of all want to have a markup that fits conventions, test it in the validator. that's the main parameter in respect of compatibility/conventions. clean code shouldn't be an issue with the markup. https://validator.w3.org/
18th Jul 2018, 7:45 AM
wenz
wenz - avatar
+ 1
Thank you.
18th Jul 2018, 1:15 PM
DDD
DDD - avatar