![]() ![]() To the group, the selector’s user can make use of a comma and separate each selectorĥ. To have them together grouped and minimize the code is a better option. Grouping Selectors: There are times when elements have same style definitions. With this, if the user wants that only specific elements are to be used then only those can be specified by a class.Ĥ. To make use of elements in a specific class a period (.) character is used. Class Selector: To select a particular class attribute the class selector is used to select the elements from that class. In order to select an element with a particular id, ‘#’ is used and this is followed by the id of that element.ģ. It is used to select one unique element and this element should be unique for that page. ID Selector: The id selector can use the id of an attribute of HTML element and help in selecting a particular element. Every declaration should include a property name with its value and these separated by colons.Ģ. The declaration block can contain one or more declarations which can be separated by semicolons. The selector is used to point to the HTML element which user would like to style. The CSS rule set consists of a selector and a declaration block. CSS Syntax: There are a set of rules which need to be followed in CSS Command. Web development, programming languages, Software testing & othersġ. ![]() Start Your Free Software Development Course
0 Comments
Leave a Reply. |