HTML elements has several attributes that can be added to almost any HTML elements in included in the
<body>..</body>
element of a web page.
id | to attach unique identifier to the element - unique identifiers for the element (id="id1") |
class | to assign a class to the element - space separated identifiers (eg: class="class1 class2..") |
style | to assign style to an element - sequence of styles (style="font-style:bold") |
title | to assign a tooltip to the element - double quoted string (title="click here") |
lang | to define the language for the content of the element - double quoted language identifier (lang="en") |
dir | to defrine a rendering direction of the content for the element- "ltr" (left to right), "rtl" (for right to left) |