- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Role of CSS:lang Selector
Use the CSS :lang selector to style every <p> element with a lang attribute value with CSS. You can try to run the following code to implement the :lang selector
Example
<!DOCTYPE html> <html> <head> <style> p:lang(fr) { background: greeb; } </style> </head> <body> <p>This is my country</p> <p lang = "fr">C'est mon pays</p> <p>French is the language of France</p> </body> </html>
- Related Articles
- Role of CSS :not (selector) Selector
- Role of CSS :focus Selector
- Role of CSS :hover Selector
- Role of CSS :active Selector
- Role of CSS :checked Selector
- Role of CSS: disabled Selector
- Role of CSS :empty Selector
- Role of CSS :enabled Selector
- Role of CSS :invalid Selector
- Role of CSS :link Selector
- Role of CSS :optional Selector
- Role of CSS :required Selector
- Role of CSS :root Selector
- Role of CSS :target Selector
- Role of CSS: valid Selector

Advertisements