HTML public attributes are applicable to all HTML elements and are used to set basic characteristics, including: setting unique identifier (id) setting class name (class) setting prompt text (title) inline setting style (style) setting Language code (lang) Set writing direction (dir) Set tab key index (tabindex) Set shortcut key (accesskey) Hidden element (hidden) Allow users to edit content (contenteditable)
HTML public attributes are applicable to all HTML elements and are used to set the basic characteristics of the elements, including:
1. id
2. class
3. title
4. style
5. lang
6. dir
7. tabindex
8. accesskey
9. hidden
10.contenteditable
The above is the detailed content of What are the public attributes of html tags?. For more information, please follow other related articles on the PHP Chinese website!