COMPUTER FUNDAMENTALS

COMPUTER NETWORKS AND COMMUNICATIONS

INTERNET AND WEB TECHNOLOGIES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If you want to have more than one property for a CSS selector, what character separates them?
A
comma (, )
B
semi-colon (;)
C
colon (:)
D
dash (-)
Explanation: 

Detailed explanation-1: -More than one declaration can be applied per selector when separated by a semicolon (; ), and more than one selector can be assigned per declaration block when the selectors are separated by a comma (, ).

Detailed explanation-2: -A CSS rule set contains one or more selectors and one or more declarations. The selector(s), which in this example is h1, points to an HTML element. The declaration(s), which in this example are color: blue and text-align: center style the element with a property and value.

Detailed explanation-3: -A style rule is made of three parts − Selector-A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> etc. Property-A property is a type of attribute of HTML tag. Put simply, all the HTML attributes are converted into CSS properties.

There is 1 question to complete.