Learn Html with Kbdk: What is meant by attribute?
Learn Html with Kbdk: What is meant by attribute?
Attribute - Used to modify the value of the HTML element. Elements will often have multiple attributes.
Attributes provide additional information about HTML elements. Attributes are used to amplify tags. What we mean by amplify is that when a web browser interprets a tag, it will also search for set attributes and then display the element (tags+attributes) in its entirety. At some point you may want to give your body element a background color or perhaps change the width of a table.
All of these things and more can be achieved using Attributes.
- HTML elements can have attributes
- Attributes provide additional information about the element
- Attributes are always specified in the start tag
- Attributes come in name/value pairs like: name="value"