Rabu, 27 November 2024

The Most Common HTML Attributes

These following table is the most common HTML Attributes:
HTML attributes Description Example
id Identifies a HTML element. id="example"
class Assigns an element to one or more classes. class="cars"
style Defines the style of an HTML element (CSS) and can determine the color, font, font size, etc. style="color: blue; font-size: 2em"
title Contains additional information about the content of an element; this is displayed in a tooltip when the mouse hovers over the element. title="exampletext"
lang Determines the language of a document. <html lang="en">
dir Defines the text’s running direction from left to right or vice versa. <html dir="ltr"> example</html>

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts