Html5 is case-sensitive and omits slashes that close empty elements. As long as the attribute value does not contain restricted characters such as (> = or space), you can do without quotation marks 1. Html5 is case-sensitive.
This is my
2. Html5 omits the slash that closes the empty element; empty element is an element that does not nest content, for example:
3. Syntax rules for attributes. As long as the attribute value does not contain restricted characters such as (> = or space), you can do not need to add quotation marks.
For example:
It is OK to have only attributes, no names, no attribute values.
PS: If you can do the following, it can basically be considered a good HTML5 style
1. Although, it is optional, not using it only represents a style. However, if used, it will help separate the content of the page from other information, so these three elements should be included.
2. All lowercase labels.
3. Add quotes to the attribute value. The reason for adding quotes is to prevent some low-level mistakes. Sometimes an inadvertent error or an invalid character will destroy the entire page.