HTML Tags and Attributes?

  • Tags define elements in HTML (e.g., <p> for paragraph).
  • Attributes give extra information to tags (e.g., src in <img>).

✔ Example:

<img src="photo.jpg" alt="Profile Photo" width="200">
  • <img> → tag
  • src, alt, width → attributes

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *