Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Practical Web Development
  • Table Of Contents Toc
Practical Web Development

Practical Web Development

By : Paul Wellens
3.5 (6)
close
close
Practical Web Development

Practical Web Development

3.5 (6)
By: Paul Wellens

Overview of this book

This book is perfect for beginners who want to get started and learn the web development basics, but also offers experienced developers a web development roadmap that will help them to extend their capabilities.
Table of Contents (17 chapters)
close
close
2
2. HTML
10
10. XML and JSON
16
Index

Selectors

The first part of a CSS rule, the part before the opening curly brace, is the selector, or several selectors separated by commas. A selector represents a collection of elements in the page to which the subsequent rules apply. The simplest selector is a single tag name, such as the one we already used in a previous example. Following is a code snippet as another example:

p {
color:blue;
}

The selector p means all paragraph elements in the entire page. Applying this rule will result in all paragraphs in the entire page being rendered in blue. Similarly, we could use a class name. Refer to the following example:

.blue {
color:blue;
}

The selector .blue represents all the elements in the page that have the class blue, whether they are paragraphs, headings, or so on. Now we can combine the two, as shown here:

p.blue {
color:blue;
}

This selector represents the collection of all paragraph elements on the page with the class set to blue. For those of you that like set theory, this is the intersection...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Practical Web Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon