HTML5: Data Attributes

HTML5 data attributes are a great alternative to classes and rel for storing data in an html tag. Creating a Custom Attribute Data attributes can be placed inside any type of tag and needs to follow the format of data-[desired_attribute]=”[value]” requiring at least one character following the dash.  Let’s look at an example: Let’s say you...
Read More