Sometimes in my current project I have HTML just by itself. Well, I mean, obviously its enclosed by its parent element but.. well let me just use a code example.
<input name="search" type="text" />
<input value="Search" type="submit" /> |
<a href="test.php">Test</a>
In this case the ” | ” is by itself. At this point some might say to use a vertical divider CSS class but this is not the only case. Sometimes I might have something like ” by ” not wrapped in a class. Is this ok? Should all things be wrapped in a CSS class, even if said class is empty and requires no styling? I suppose it future-proofs it in case it may one day need styling, but for now it is just CSS bloat.
That is perfectly fine. HTML is just markup, you don’t have to wrap everything inside a tag.