CSS Selectors

Home Forums Coding CSS CSS Selectors

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  brewout110155 3 years, 4 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #214

    brewout110155
    Keymaster

    CSS selectors allow you to select and manipulate HTML element(s).

    CSS selectors are used to “find” (or select) HTML elements based on their id, classes, types, attributes, values of attributes and much more.

    The element Selector
    The element selector selects elements based on the element name.

    You can select all

    elements on a page like this: (all

    elements will be center-aligned, with a red text color)

    p{
    text-align:center;
    color:red;
    }
    

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.