Positioning with the CSS ID Attribute

Learn about the ID selector of the CSS.

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
}

Get hands-on with 1200+ tech skills courses.