Interview Question

What are element selectors?

An element selector styles elements by tag name.

💡 Concept ✅ Quick Revision 🎨 CSS

Answer

An element selector matches elements by their type name. • The selector `p` matches paragraph elements. • Type selectors have lower specificity than class and ID selectors. • They are useful for document-wide element defaults.

💡 Simple Example

p { max-inline-size: 65ch; }

⚡ Quick Revision

An element selector styles elements by tag name.