Wasn’t sure how to express this but what I mean is having things like <h1>My name is</h1>Radu as opposed to <h1>My name is</h1><p>Radu</p>. Obviously not the best usage of the h1 element but I think that can be excused. So, should all HTML be wrapped by the appropriate tags?
Wasn’t sure how to express this but what I mean is having things like
Share
No, it’s not really good practice. In practice, it probably won’t hurt, but it’s technically “wrong”, since the HTML spec doesn’t permit naked text in the body. Browsers will forgive you and generally wrap them up in some other element (if you inspect the DOM tree using Firebug or something).
In XHTML it is completely forbidden.