What is an attribute in HTML?
skothari1910simmi:
it is a word used inside a tag to specify additional information
Answers
Answered by
12
attribute is an element in HTML coding which gives more information like start tags <html>
Answered by
5
An attribute in html provides additional information about the tag.
Examples
<a href="google.com"> - In <a> tag, href is an attribute
<input type="text" name="firstname"> - In <input> tag, type and name are attribute
<img src="/images/sample.png"> - In <img> tag, src is an attribute
Examples
<a href="google.com"> - In <a> tag, href is an attribute
<input type="text" name="firstname"> - In <input> tag, type and name are attribute
<img src="/images/sample.png"> - In <img> tag, src is an attribute
Similar questions
Computer Science,
10 months ago
Science,
10 months ago
Chemistry,
1 year ago
English,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago