DEV Community

Joel Diharce
Joel Diharce

Posted on

Attributes, a mystery...

Attributes are a major part of HTML... D:

They give extra information about an element that the encoder uses to do things in a specific way. They don't seem to need their own tags to do this either. :D

Apparently, you just add them in within other tags.

The first example we're given is:

<p lang="en-US">Things to do today</p>
Enter fullscreen mode Exit fullscreen mode

The attribute is the lang='en-US" within the p tag. Broken down, attributes are given a name and a value (<p name="value">)

In this video, this is all we're given. This is fine, because we're told we will learn more about this soon. :D Onward!!

Top comments (0)