Jun 18, 2020
HTML5 attributes are help to improve the quality of web development in more easy and simple way. Attributes are only be specified within start tags and must never be used in end tags.
HTML5 attributes are case insensitive and can be written in all uppercase, mixed case or the most common convention is to stick with lowercase.
- contenteditable - Specifies the content of an element is editable or not.
- contextmenu - Specifies a context menu for an element. It will appears when a user right-clicks on the element.
- data-* - Used to store custom data private to the page or application.
- draggable - Specifies an element, which is draggable or not.
- dropzone - Specifies whether the dragged data is copied, moved, or linked, when dropped.
- hidden - Specifies that an element as hidden.
- spellcheck - Specifies the element, which is have to checked spelling and grammar or not.
- translate - Specifies the content of an element, which should be translated or not.