What are attributes and how do you use them?
Question :
What are attributes and how do you use them?
Each tag can also have additional attributes, which change the way the tag is display.
For example, an <input> tag has a type attribute, which you can use to specify whether it’s a text field, checkbox, radio button or one of many more options.
Attributes are specified directly after the name off the tag, inside the two angled brackets. They should only ever appear in opening tags or in self-closing tags-they can never be in closing tags.
They are followed by an equals sign= and the chosen value in double quotes “. Do not include any spaces before and after the equals sign. Multiple attributes can be defined on a single tag, separated by a space.
<!—Text field -->
<input type=”text”/>
<!—Checkbox -- >
<input type=”checkbox”/>
<!—Radio button -- >
<input type =”radio” value=”on”/>