[Solved] tags with class in html [closed]


since the B tag is semantically meaningless in HTML5 (look it up), i don’t mind “abusing” it for on-screen purely-presentational formatting of existing content:

  <style>
    b{ font-weight: normal; font-family:...; color:...;...}
  </style>


  normal text <b> math text </b> normal text

this reduces your overhead from

  "<span class="mymath"></span>" 

to

  "<b></b>"

which is quite a bit shorter.

technically, you can even make up your own tags, and as long as you patch them into your HTML5 shim for IE, the CSS will still “take” on the tags. This just fine when javascript marksup an existing document on-the-fly. Just don’t publish such malarkey unless you want the validation mob surrounding your house with pitchforks!

solved tags with class in html [closed]