- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Selects specific elements like with CSS
To select elements, use the element selector. You can try to run the following code to select <p> elements:
Example
<!DOCTYPE html> <html> <head> <style> p { color: blue; background-color: orange; } </style> </head> <body> <h1>Demo Website</h1> <h2>Learning</h2> <p>Tutorials on web dev, programming, database, networking, etc.</p> <p>Every tutorials has lessons with illustrations and figures.</p> </body> </html>
Advertisements