In HTML5, is it OK to use CSS to define your own tags? I know it can generally be looked on as bad practice, but why? And why isn't there an XHTML5 that developers can use?
EDIT===========================================================EDIT Someone asked how one would define their own tags, so here is an example. Say I wanted to move text to the right by 10 pixels. I have several options:
<li>
ectmoveright
, and put in my CSS: moveright {margin-left:10px;}
In most cases, I would use the div
with the class, but if I have to do it many times, I may want to use the last option, to save myself the typing. So, in short laziness. And, someone who loves HTML5, XML, and CSS3!