Attributes, a mystery...

joeldiharce

Joel Diharce

Posted on September 6, 2022

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!!

💖 💪 🙅 🚩
joeldiharce
Joel Diharce

Posted on September 6, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Basics of Front End Development
webdev Basics of Front End Development

November 24, 2024

HTML Introduction
html HTML Introduction

October 21, 2024

Tailwind css vs Traditional css
tailwindcss Tailwind css vs Traditional css

October 9, 2024

10 CSS Tricks for UI developers
css 10 CSS Tricks for UI developers

November 19, 2024