Attributes provide additional information about an element. They are always specified in the start tag.
It is recommended quote attribute values to a single or double quotes.
<h2 id="myidvalue">My header</h2> <img src="/images/myimage.jpg" alt="Here must be 'myimage.jpg'. " > <p style="color:red; text-align: center;" >red paragraph</p> <table class="w-100 table-bordered"> ...
Below are the most important attributes.
Specifies a unique id for the element. Must contain at least one character. Must not contain any space characters. |
Specifies one or more class names separated by space for an element. Naming rules:
|style||Specifies an inline style for an element. More details about css rules see CSS.|
Advisory information related to the element it belongs to. May contain several lines, each U+000A (LF) character represents a line break.
Typical uses is as tooltip: