Attributes in HTML
HTML elements can have attributes. Web page customization begins with HTML attributes. Attributes are responsible for customizing HTML elements and provide additional information about the contents of an element. While processing an HTML tag, the web browser looks to these attributes as guides for the construction of web elements. Without any attribute values specified, the browser will render the element using the default settings. Attributes are always specified in the start tag of the element and are made up of two parts - Name and Value - separated by an equals sign as shown in the following example for the <a> element.
Usage Recommendations
- Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.
- Attribute names and attribute values are case-insensitive. However, recommended way is to use lowercase.
Learn the HTML5 language in this tutorial series. These tutorials are designed for new programmers to provide them thorough knowledge of full stack web development.