English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Attributes are additional information provided by HTML elements, such as width, height, style, etc.
HTML elements can set attributes
Attributes can add additional information to the element
Attributes are generally described in the start tag
Attributes are always named/Value pairs appear in the form, such as: target="_blank".
HTML hyperlinks are defined by the <a> tag, and the address of the hyperlink is specified in the href attribute:
<a href="https://pt.oldtoolbag.com">This is a hyperlink</a>Test and see ‹/›
The attribute value should always be enclosed in quotes.
Double quotes are the most commonly used, but it is also fine to use single quotes.
Tip: In some individual cases, such as attribute values containing double quotes themselves, you must use single quotes, for example: name=&39;John "ShotGun" Nelson&39;
Attributes and attribute values.
However, the World Wide Web Consortium is not sensitive to the case of HTML 4 Recommended in the standard/Attribute value.
While the new version of (X)HTML requires the use of lowercase attributes.
Suggestion: Use lowercase tags consistently
View the complete list of HTML attributes:HTML Tag Reference Manual.
The following lists the attributes applicable to most HTML elements:
Attribute | Description |
class | Define one or more class names (class name from style sheet) |
id | Define the unique id of the element |
style | Define the inline style of the element |
title | Informações adicionais sobre o elemento (usado como barra de ferramentas) |
Mais informações sobre atributos de padrão:Manual de Referência de Atributos de Standard HTML.