Compare Revisions

Using data-* attributes

Revision 461039:

Revision 461039 by teoli on

Revision 461041:

Revision 461041 by groovecoder on

Title:
Using data-* attributes
Using data-* attributes
Slug:
Web/Guide/HTML/Using_data_attributes
Web/Guide/HTML/Using_data_attributes
Tags:
"HTML","HTML5"
"HTML","HTML5"
Content:

Revision 461039
Revision 461041
n16    <div class="wp_syntax">n16    <pre class="brush: html">
17      <table>17&lt;article
18        <tbody>18  id="electriccars"
19          <tr>19  data-columns="3"
20            <td class="code">20  data-indexnumber="12314"
21              <pre class="xml" style="font-family:monospace;">21  data-parent="cars"&gt;
22<span style="color: #009900;"><span style="color: #000000; font-w
>eight: bold;">&lt;article</span> </span> 
23<span style="color: #009900;">  <span style="color: #000066;">id<
>/span>=<span style="color: #ff0000;">"electriccars"</span></span> 
24<span style="color: #009900;">  <span style="color: #000066;">dat
>a-columns</span>=<span style="color: #ff0000;">"3"</span> </span> 
25<span style="color: #009900;">  <span style="color: #000066;">dat
>a-indexnumber</span>=<span style="color: #ff0000;">"12314"</span> 
> </span> 
26<span style="color: #009900;">  <span style="color: #000066;">dat
>a-parent</span>=<span style="color: #ff0000;">"cars"</span><span  
>style="color: #000000; font-weight: bold;">&gt;</span></span> 
n28<span style="color: #009900;"><span style="color: #000000; font-wn23&lt;/article&gt;
>eight: bold;">&lt;/article<span style="color: #000000; font-weigh 
>t: bold;">&gt;</span></span></span> 
t30            </td>t
31          </tr>
32        </tbody>
33      </table>
34    </div>

Back to History