CSS एलिमेंट टाइप सिलेक्टर का उपयोग किसी प्रकार के सभी एलिमेंट्स को सिलेक्ट करने के लिए किया जाता है। CSS एलिमेंट टाइप सिलेक्टर का सिंटैक्स निम्नलिखित है:
सिंटैक्स
element { /*declarations*/ }उदाहरण
निम्नलिखित उदाहरण CSS एलिमेंट टाइप सिलेक्टर को दर्शाते हैं:
<!DOCTYPE html> <html> <head> <style> li { list-style: none; margin: 5px; border-bottom-style: dotted; } div { box-shadow: inset 0 0 8px plum; padding: 36px; } </style> </head> <body> <div> <pre> \(╪)(╪) /</pre> <ul> <li></li> <li></li> </ul> </div> </body> </html>आउटपुट
यह निम्नलिखित आउटपुट देता है:

उदाहरण
<!DOCTYPE html> <html> <head> <style> li { text-align: center; list-style: none; margin: 5px; padding: 5px; box-shadow: inset 0 0 15px yellowgreen; } div { box-shadow: inset 0 0 8px orange; padding: 36px; width: 30%; border-radius: 50%; } </style> </head> <body> <div> <ul> <li>Hello</li> <li>Guys</li> </ul> </div> </body> </html>आउटपुट
यह निम्नलिखित आउटपुट देता है:
