Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
DogFood


What is grouping in CSS3 and how to use that?
Question Posted on 20 Jul 2021

Home >> WEB >> Styling With CSS3 >> What is grouping in CSS3 and how to use that?




What is grouping in CSS3 and how to use that?
We can say that grouping in CSS is used to reduce code redudancy or we can say Grouping in CSS3 is an example of reusability when we have to apply same style on multiple elements in HTML. Here by using only a single declartion statement we can use that for multiple control or tags of HTML. For example we will have to apply same font size and color to different headings we use this grouping. We will below take example of both grouping and non-grouping example.

(1)Non Grouping Example:- In below example we have create a CSS for h1,h2,h3 differently and all the values are same.


CSS3 NonGrouping
(2)Grouping Example:- Here in single line we have apply css to all h1,h2,h3

CSS3 Grouping
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
The ________ operator is used for combining multiple media features together into a single media query.
Tag which provides a way to add a hook to a part of a text or part of a document is?
Inline CSS uses which attribute of the HTML element?
Which of these is not merit of external style sheet?
A responsive grid-view often has __________






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |