Interview Question

What are attributes in HTML?

Attributes add extra settings or information to HTML elements.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

HTML attributes give extra information to an element. • They are written inside the opening tag. • Most attributes use a name and value. • They can set a link, image source, class, ID, or behavior.

💡 Simple Example

<a href="contact.html" target="_blank">Contact</a>

⚡ Quick Revision

Attributes add extra settings or information to HTML elements.