- 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 the element with id="tutorials" with CSS
To select all the elements with id=”tutorials”, you can try to run the following code.
Use the #id CSS selector to achieve this,
Example
<!DOCTYPE html> <html> <head> <style> #tutorials { border: 3px solid red; } </style> </head> <body> <h1>Tutorialspoint</h1> <h2>Learning</h2> <p id = "tutorials">Tutorials on web dev, programming, database, networking, etc.</p> <p>Every tutorials has lessons with illustrations and figures.</p> </body> </html>
Advertisements