0
It is important????
•Should all the text, elements, tags be in small form or we can also write this in capital character form?? • is this important to use attributes in order in under any tag or element???
2 Réponses
+ 15
⚪ First of all, HTML is a case insentive language so it doesn't matter, you write the tags in any case. eg. : <HTML>, <html>, <HtMl>, all are valid. But it is good practice to type tags in lowercase as if you further learn XML then you have to type all tags in lowercase only as it is a case sensitive language.
⚪ It doesn't matter how you order your attributes while writing the tag, but it is a good practice to carefully maintain the order in you can for better readability and better debugging.
Hope this helps !!!
+ 4
In general, HTML tags are case-insensitive.
Edit: As is mentioned by a user on StackOverflow, Entity names tend to be case-sensitive.
(https://stackoverflow.com/questions/4351857/is-html-case-sensitive)
Secondly, order of attributes within a tag doesn't matter in the least.
Also, do look up these posts:
https://www.sololearn.com/discuss/1728251/?ref=app
https://www.sololearn.com/discuss/361565/?ref=app
https://www.sololearn.com/discuss/1628614/?ref=app