Q1. What are Attributes and how do you use them?Each tag has additional attributes that change the way the tag behaves or is displayed. For example, a 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 of the tag, inside the two angled brackets. They should only ever appear in opening tags or in self-closing tags. But, they can never be in closing tags.Example:1 - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login

Q1. What are Attributes and how do you use them?


Each tag has additional attributes that change the way the tag behaves or is displayed. For example, a <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 of the tag, inside the two angled brackets. They should only ever appear in opening tags or in self-closing tags. But, they can never be in closing tags.


Example:1

<!-- Text field -->
<input type="text" />
<!-- Checkbox -->
<input type="checkbox" />
<!-- Radio button -->
<input type="radio" value="on" />

25 May 2020 11:15 AM study24x7 study24x7

Q1. What are Attributes and how do you use them?


Each tag has additional attributes that change the way the tag behaves or is displayed. For example, a <input> tag has a type attribute, which you can use to specify whether it’s a text field, checkbox, radio but...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles