When writing in HTML, the
Example code
Required attributes
In an HTML tag, attributes dictate certain aspects of an HTML element. Attributes are made up of a name and value pair. All HTML tags support standard attributes. The following table shows attributes that have to be used with the
The
- Example code
- Required attributes
- Optional attributes
- Compatibility
- Related information
Optional attributes
An optional attribute is one that is used in addition to those listed above, but is not required for the
Compatibility
*Until it is removed in a future version of HTML
Browser, Code, Compatibility, Container tag, CSS, Java, JavaScript, URL, Web design terms
Related information
- What is the difference between Java and JavaScript?
- How to disable or uninstall Java.
- How to write a JavaScript.
- HTML and web design help and support.