HTML5 valid custom tag/element -


how create valid custom tag/element in html5?

example 1:

<customtag attr1="val" attr2="val"> </customtag> 

example 2:

<my:customtag attr1="val" attr2="val"> </my:customtag> <!-- attention colon separator --> 

thanks.

using own made elements not valid html.

from w3c spec:

authors must not use elements, attributes, or attribute values not permitted specification or other applicable specifications, doing makes harder language extended in future.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -