Category: 8. HTML Attributes

  • HTML id Attribute

    The id attribute is used to define a unique identifier for an HTML element. It is commonly used to point to a style in a style sheet, as well as anchor links and targets for scripts. The id value is case-sensitive and should be unique within the HTML document. This attribute can be used by CSS and…

  • HTML Class Attribute

    The HTML class attribute is used to specify one or more class names for an element. Commonly, the class attribute points to a class in a style sheet. The class name is case sensitive. This attribute can also be used by JavaScript via the HTML DOM to make certain changes to HTML elements with a specified class name. In HTML5, you can…

  • Deprecated HTML Attributes

    The attributes presented below are deprecated, i.e., they are no longer used in the mentioned tags and are replaced by other attributes that you can find in the “Alternate” section of the table. Attributes Description Deprecated in Alternate align Specifies the alignment of the element <caption>, <img>, <table>, <hr>, <div>, <h1>-<h6>, <p> CSS text-align, float and vertical-align properties alink Specifies the color of an active link…