What is the Universal Selector? Last Updated : 16 Apr, 2025 Comments Improve Suggest changes Like Article Like Report The Universal selector can be denoted by an asterisk (*), which is a special CSS selector that targets all elements on a web page. It applies a style to every element within the specified scope, making it a powerful but broad-reaching selector.Syntax/* Applying styles to all elements using the universal selector */* { margin: 0; padding: 0; box-sizing: border-box;}/* Applying a border to all elements for illustration purposes */* { border: 1px solid #ccc;}Features:Wildcard Selection: The universal selector selects all HTML elements within its scope.Global Styling: It's commonly used for global styling resets, normalizing default styles, or applying consistent box-sizing.Specificity Considerations: While powerful, the universal selector should be used judiciously to avoid unintended consequences or conflicts with more specific selectors. Comment More infoAdvertise with us Next Article What is the Universal Selector? P pankaj_gupta_gfg Follow Improve Article Tags : Web Technologies CSS CSS-QnA WebTech-FAQs Similar Reads CSS * (Universal) Selector The universal selector (*) applies styles to all elements on a page or within a specified context, regardless of their type, class, or ID. It's commonly used for global resets or universal styling. * { /* styles */}1. Basic Use case of universal selectorThe universal selector applies styles to all e 4 min read What is the use of asterisk (*) selector in CSS ? The asterisk (*) selector in CSS, known as the universal selector, is used to target and apply styles to all elements on a webpage, regardless of their type or hierarchy. It's especially useful for global styling, such as resetting margins or applying uniform properties across the document.For examp 2 min read Semantic-UI List Selection Variation Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website looks more amazing. It uses a class to add CSS to the elements. Semantic-UI list provides us different v 3 min read CSS Selectors CSS Selectors are used to target HTML elements on your pages, allowing you to apply styles based on their ID, class, type attributes, and more. There are mainly 5 types of selectors.Basic CSS Selectors: These are used to target elements by tag, .class, or # ID for fundamental styling needs.Combinato 7 min read Define Selectors in jQuery and What are the types of selectors? Selectors in jQuery: Selectors in jQuery are functions that primarily focus on selecting particular HTML elements and modifying them as per the action they need to perform. These selectors select particular HTML elements as per their name, element type, class, id, attributes or values of attributes, 4 min read Like