Recommended Articles. Accept. The below example shows three possible values of align attribute: left, center and right. Thetag supports the Global Attributes and the Event Attributes. Here's a table of some other attributes that are readily usable with many of the HTML tags. For example, the paragraph
element in the example carries an attribute whose name is align, which you can use to indicate the alignment of paragraph on the page.
The class attribute is used to associate an element with a style sheet, and specifies the class of element.
All attributes are made up of two parts − a name and a value.
HTML - Body Margins.
Now try to bring your cursor over "Titled Heading Tag Example" and you will see that whatever title you used in your code is coming out as a tooltip of the cursor. leftmargin - Sets a left hand margin for your body element. In the given example, thetag is used with the