Skip to main content

Thread: HTML custom tags and attributes


does know if there bad consequence in using custom tags , attributes.
coding application , makes more sense use toolbar or icon instead of div, ul etc...

example, instead of this:
code:
<div class=toobar>    content here  </div>    <ul class="icons s128">    <li class=icon></li>    <li class=icon></li>    <li class=icon></li>    <li class=icon></li>  </ul>
this:
code:
<toobar>    content here  </toolbar>    <icons size=128>    <icon></icon>    <icon></icon>    <icon></icon>    <icon></icon>  </icons>

swap css for:

code:
ul."icons s128" {  }  ul."icons s128" li {  }
so applies every li inside ul.

don't know if it's practice want do, think hiding class references custom tags may lead unexpected behaviours. example, you're updating css element, , changes thing using reference, hidden because of custom tag.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk HTML custom tags and attributes


Ubuntu

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'