UrbanPro
true

Learn Web Designing from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What are selectors in CSS?

Vikas
29/12/2016 0 0

Selectors help to select an element to which you want to apply a style. For example below is a simple style called as ‘intro” which applies red color to background of a HTML element.

 
<style>
.intro
{
background-color:red;
}
</style>

To apply the above “intro” style to div we can use the “class” selector as shown in the below figure.

 
<div class="intro">
<p>My name is Shivprasad koirala.</p>
<p>I write interview questions.</p>
</div>
0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

HTML(Hypertext Markup Language) for creating web pages by Kris, konrad, andy
Html stands for Hypertext Markup Language. It's the computer language at the heart of World Wide Web. When creating a website, html is used to put text, pictures, animations, video, sound onto individual...

Tips Web Developers and Designers
Get Educated Build Up Your Font Library Use Dummy Tools Learn Online Pimp Out Photoshop Quickly Generate Complex CSS Code Visually with a CSS Generator Download Free...

Necessity of Theory and Practical in Computer Science.
Upon studying a subject both theory and practical are important. Usually many schools concentrate more on theory and the marks not on the practical. Other and opposite kind of people prefer practical...

Web Technology Tutorial
Web Technology has 2 category Front End (HTML,CSS,JS Etc) Back End/Server Side (PHP,JSP,ASP,ROR Etc) Front End technologies are - HTML, CSS, Bootstrap, Javascript, jQuery etc. Using front end...

Angular Material
What is Angular Material? For developers using AngularJS, Angular Material is both a UI Component framework and a reference implementation of Google's Material Design Specification. This project provides...
X

Looking for Web Designing Classes?

The best tutors for Web Designing Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Web Designing with the Best Tutors

The best Tutors for Web Designing Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more