Positioning with the CSS ID Attribute
Learn about the ID selector of the CSS.
We'll cover the following...
CSS id
syntax
Similar to the class
attribute, we also have an id
attribute in our HTML.
As we’re already well aware, the class attribute is targeted in CSS like this:
.some-class-name
{
property: value
}
In terms of syntax, the id
attribute is almost identical:
#some-id-name
{
property: value
}
The difference is that we use the #
symbol to signify the id
.
All the other ...
Access this course and 1400+ top-rated courses and projects.