christian Flores
last year
Christiancountry asked

What is an HTML attribute?

Apekchhya Shrestha
Expert
last year

Good question!

In HTML, attributes modify the behavior, appearance, or function of HTML elements. You’ll see them in various tags like <a>, <input>, <form>, and many others.

For example, in the code <img src="tiger.png">, src is an attribute of the <img> tag. It tells the browser where to find the image file named tiger.png.

As you move forward, our lessons will cover these in more detail. Click the 'Next' button to continue.

Hope this helps! Feel free to ask if you have more questions.

HTML
This question was asked as part of the Learn HTML course.