Computer Science, asked by Debroop, 1 year ago

What is an attribute in HTML?


skothari1910simmi: it is a word used inside a tag to specify additional information

Answers

Answered by rahulvinay26
12
attribute is an element in HTML coding which gives more information like start tags  <html>

Debroop: thank you
Answered by maryjessicka
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
Similar questions