Full-stack Web Technologies

CHAPTER 6
GlobalAttributes

Certain attributes can be used with any HTML element: id, class, style, title, contenteditable. (The full list.)

AttributeDescription
idUnique identifier. For CSS and in-page links.
classFor targeting CSS groups of elements
styleInline-styles, with higher priority than stylesheets
titleFor tooltips
contenteditableFor making things editable