CSS basic selectors tutorial explains in detail about 3 fundamentals CSS selector: element selector, class selector, and id selector. This tutorial also demonstrates with example code on how to add id and class attribute in the HTML and how to use those defined class and id as selector in CSS.