From the course: HTML Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

HTML attributes

HTML attributes

- So far we've just been looking at the basics of an HTML element. The simple version. Like the paragraph element, but HTML does have a bit more complexity than this. More power that can be added to any element through what's called an attribute. We did look at one attribute so far, When learning about the time element. Some attributes only work on certain elements, like the day time attribute. We only use it on the time element. Other attributes work on several of the elements, but not all of them. We'll get into some examples of those when we learn about images and video. Lets look at a few global attributes. Global Attributes are attributes in HTML that will work on any element. I'm going to cover four of the most useful global attributes. The most commonly used attribute is the class attribute. It gives us a way to attach a reusable name to any element. So, we can address that name in our CSS and apply styling…

Contents