data attribute css

Source: http://www.developphp.com/video/JavaScript/Custom-Data-Attributes-HTML-JavaScript-CSS-TutorialLearn to use custom data attributes. Yup! So now, it should look something like this: See the Pen GpqYXv by Andor Nagy (@andornagy) on CodePen. Leading and trailing spaces are stripped. With data-* attributes, you get that on/off ability plusthe ability to select based on the value it has at the same specificity level. The following example selects all elements with a target attribute: The [attribute="value"] selector is used to select elements with a specified Using data-attributes with JavaScript. How to set the default value for an HTML