You can add custom attributes to your elements at will. But that will make your document invalid.
In HTML 5 you will have the opportunity to use custom data attributes prefixed with data-
.
More Related Contents:
- Trouble with image
- Difference between and
- Is it necessary to write HEAD, BODY and HTML tags?
- Do I use , , or for SVG files?
- flex-grow not sizing flex items as expected
- Responsive image map
- How to make a vertical line in HTML
- How to display an unordered list in two columns?
- Difference in applying CSS to html, body, and the universal selector *?
- HTML5 Canvas and Anti-aliasing [duplicate]
- How to stream audio/video files such as MP3, MP4, AVI, etc using a Servlet
- Transform: translate(-50%, -50%)
- How to create a curve between two gradient using CSS?
- How to allow to accept only image files?
- Is it bad to use uppercase letters for html tags?
- How should I choose between GET and POST methods in HTML forms?
- Does a name attribute have to be unique in a HTML document?
- How to set an image’s width and height without stretching it?
- HTML class attribute with spaces, it is a W3C valid class?
- How to set placeholder value using CSS?
- Bash script to convert from HTML entities to characters
- Changing the highlight color when selecting text in an HTML text input
- Regex to match all HTML tags except and
- How to add button inside an input [closed]
- Progress Bar with HTML and CSS
- scrollable?
- How to make a flex item not fill the height of the flex container? [duplicate]
- Complete list of reasons why a css file might not be working
- What is HTML’s tag default display type?
- How to successfully embed images in HTML for display in webmail clients?