CSS Fundamentals

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

An HTML tag class attribute specifies the classes to which the tag belongs, with each class name separated by a comma (,)

False

Select the selector name that correctly matches the CSS selector used. .hidden {background- color: yellow;}

class

Of the following, select all valid selector types used in CSS.

class descendant element

Which symbol is known CSS universal selector?

*

What is the proper syntax to declare a CSS variable set to black?

--section-color: black;

Of the following, select all valid pseudo-class selector examples.

:empty :enabled :hover :lang(language)

What selector must a CSS variable be declared in to have global scope?

:root

The child selector, specified by using what symbol between two selectors, matches any elements where the second element is a direct child of the first element?

>

Which of the following is the definition of a CSS declaration?

A CSS property followed by a colon (:) and the property value

CSS style declarations override which setting?

Default browser style declarations.

An inline style uses curly braces ({}).

False

True or false? A CSS variable is defined with two slashes (//) preceding the variable name.

False

Of the following, select the valid ways that we can specify color

Hexadecimal color HSL color value RGB color value RGBA color value

Can Inline styles be used with embedded stylesheets or external stylesheets?

Inline style CAN be used with embedded stylesheets.

Which of the following is the definition of a CSS declaration block?

One or more declarations separated by semicolons (;)

The !important rule may be used on a style declaration to what?

Override other declarations and disregard specificity.

How is an attribute selector created in CSS?

Specified with an attribute name and optional value comparison enclosed in square brackets ([ and ]).

Which of the following is the definition of a CSS selector?

The HTML elements to which the specific style rule applies

A website should use an external stylesheet to create styles that apply to all web pages.

True

The pseudo element selector, specified with two colon characters (::) followed by a pseudo-element, matches parts of elements.

True

True or false? An inline style does not use a selector.

True

True or false? CSS properties float and clear control how text flows around HTML elements, making web pages look like a magazine or newspaper article where the article text wraps around the images on a page.

True

True or false? It is a good practice to place each declaration on a separate line and to add a semicolon to the end of each declaration block, even when a semicolon is not required, so that adding the semicolon is not forgotten later when adding more declarations.

True

True or false? Pseudo-class selectors match elements based on user behavior or meta-information about HTML elements.

True

In CSS, what is inheritance?

When style declarations from a parent element cascade down and are applied to any child elements.

Which CSS selector, specified by using a plus character (+) between two selectors, matches an element that immediately follows another element, where both elements have the same parent?

adjacent sibling

Of the following, select all selectors known as combinators.

adjacent sibling child descendant general sibling

What is the proper syntax to use a CSS variable called --section-color?

color: var(--section-color);

CSS rule consists of which three (3) of the following parts?

declaration declaration block selector

Choose the selector name that correctly matches the CSS selector used. td img { background-color: yellow;}

descendant

Of the following, select the valid ways CSS can be implemented.

embedded external inline

Which CSS selector, specified using a tilde character (~) between two selectors, matches the second element if the second element occurs after the first element and both elements are siblings?

general sibling

Which of the following are valid float property values?

left none right

What is a selector called that includes a comma-delimited list of selectors at the beginning of one CSS rule?

multiple selector


Set pelajaran terkait

Physics 8.01 Quiz-History of Gravitation, Physics 8.04 Quiz-Universal Gravitation, Physics 8.05 Quiz-Einstein and the Gravitational Field

View Set

Biology, 2nd semester exam, cancer

View Set

DIE: Chapter Two Outline: Network Effects: The Power of the Platform

View Set

psychopharmacology exam 1 quizzes, psychopharmacology exam 2 quizzes, psychopharmacology exam 2 vocabulary, psychopharmacology exam 4 quizzes, psychopharmacology exam 3 vocabulary, psychopharmacology exam 3 quizzes

View Set

تلخيص تاريخ الوحده الثامنه

View Set

PSYCH Mental Health Ch. 5, PSYCH Chapter 6, PSYCH Ch 8 Therapeutic Relationships, PSYCH CHAPTER 9

View Set

Quizlet Implied Volatility Basics Must

View Set