DEV Community

Discussion on: HTML 5 and The Legends of the Elements

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Hey, few corrections (mostly minor):

Almost HTML elements can carry attributes, except for empty elements.

This is not correct I am afraid.

A prime example would be the <img> tag, this is self closing (empty) but must have attributes in order to be valid. Same for <input> etc.

The values of the attributes must be enclosed in quotation marks.

Only strings must be enclosed in quotation marks.

For example <img width=100 height=100 src="..."> is perfectly valid HTML.

However <img width=100px height=100px src="..."> would not be valid HTML.

Other than those minor points a great article, I just thought they were important bits of info given this is marked as #beginners! ❤

Collapse
 
whitehatdevv profile image
Manu Martinez

Thanks you for your minor apportions, we have just updated our post. As you said it's for #beginners, then we should have taken into account that.

Collapse
 
grahamthedev profile image
GrahamTheDev

No problem, always great to see a responsive author who corrects their articles quickly instead of ignoring feedback! ❤

Great article!

Thread Thread
 
whitehatdevv profile image
Manu Martinez

It's really important for us, we learn a lot from comments and contributions. Welcome to my blog and thank you for reading it :)