CSS Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - CSS

Which is the correct CSS syntax?


 

 

 

 



A


Solution:-

The selector points to the HTML element you want to style. The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon.

The CSS Syntax is made up of three parts: 
a selector, 
a property, 
a value

Syntax: selector {property: value}

The CSS properties specify what to style of the targeted HTML elements. 
Here is a CSS rule example: 

div { border-bottom: 1px solid red; font-weight : bold; }?

This example creates a CSS rule that targets all div elements and then sets the CSS properties border-bottom and font-weight for the targeted elements.




Next 4 multiple choice(s)

1

Which HTML attribute is used to define inline styles?

2

Which HTML tag is used to define an internal style sheet?

3

Where in an HTML document is the correct place to refer to an external style sheet?

4

What is the correct HTML for referring to an external style sheet?

Comments