Welcome Guest! (App Version 3.1)

websitnero logo name

Basic Selectors

Basic Selectors in CSS

This page contains the most basic selectors in CSS. Universal selector, Element Selector, Attribute Selector, Id Selector and Class Selector are included in this list.

Look at the table below and the linked examples to have a better understanding:

Basic Selectors
1Universal Selector*Selects all the elements on a web page (including html and body)
2Element SelectorESelects all the elements of the same type as in selector
3Attribute SelectorattrSelects all the elements having the same attribute as in selector
4Id Selector#idSelects an element with same id as in selector (one page can have only one unique id per element)
5Class Selector.classSelects all the elements having the same class as in selector
WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.