html - Attribute "data-content-id" inside of a div -


i've div class="contentmiddle">. need give container "data content id".

can this?

<div class="contentmiddle" data-contentid="1">content</div> 

sure!

there no reason can't have class , id on element. can't have more 1 id. that's bit of rule of thumb when comes programming.

check out http://html5doctor.com/html5-custom-data-attributes/ more.

please post link example code if need users dig deeper.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -