CSS Selectors

Home Forums Coding CSS CSS Selectors

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #214
    nehajain
    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.