Attributes
In the previous lesson, we learned how to create textual content for a web page. In this lesson, we will look at more advanced elements. However, before we can start using these elements, we need to learn another concept in HTML - attributes.
Attributes provide additional information about HTML elements. Attributes are inserted into the opening tag of an HTML element in the following way:
In the image, you can see an attribute named id
with the value title
. The id
attribute has multiple uses, but for now, it is enough to know that it is used for element identification.
Instructions
Add an attribute named id
with the value title
to the h1
element with the content Domestic Cat
.
Start programming for free
1/10