FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is generally any single line of CSS that appears between the curly braces, whether shorthand or longhand.
A
Keyword
B
Declaration
C
Value
D
Boogers
Explanation: 

Detailed explanation-1: -A declaration is generally any single line of CSS that appears between the curly braces, whether shorthand or longhand. A property is what appears before the colon in any line of CSS. In the example below, the word “width” is the property.

Detailed explanation-2: -A CSS declaration block is an ordered collection of CSS properties and values. It is represented in the DOM as a CSSStyleDeclaration . Each property and value pairing is known as a CSS declaration.

Detailed explanation-3: -Each declaration includes a CSS property name and a value, separated by a colon. Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.

Detailed explanation-4: -Understanding CSS Syntax in the document. The selector specifies which element or elements in the HTML page the CSS rule applies to. Whereas, the declarations within the block determines how the elements are formatted on a webpage.

Detailed explanation-5: -A CSS rule consists of two main parts: selector (’h1’) and declaration (’color: red’). In HTML, element names are case-insensitive so ‘h1’ works just as well as ‘H1’. The declaration has two parts: property name (’color’) and property value (’red’).

There is 1 question to complete.