CSS (Fundamentals, Colors, and Styling)

0%

The abbreviation CSS stands for __________

Correct! Wrong!

Explanation:
CSS is a style sheet language which stands for Cascading Style Sheet.

h1 is also known as_______ in CSS.

Correct! Wrong!

Explanation:
HTML element h1 is used in CSS for styling then it is also called a selector. Attributes are the special words which control the element’s behaviour. To show the start and end of HTML element, tag is used.

To embed CSS in an HTML page, which of the following tags is used?

Correct! Wrong!

Explanation:
tag is used to embed CSS in HTML page, while is used to embed JS in HTML.
is HTML5 declaration.

Text, list, box, margin, border, color, and background properties have been introduced by __________.

Correct! Wrong!

Explanation:
CSS is a style sheet language which stands for Cascading Style Sheet. CSS has introduced text, list, box, margin, border, color, and background properties.

Which selector is used to specify a binding rule for a single unique element?

Correct! Wrong!

Explanation:
For binding a particular unique element, id selectors are used. While for group of elements, class selector can be used.

The filter property blurs the images using which of the following elements?

Correct! Wrong!

Explanation:
Blurs an element, for use by the filter property. Accepts a distance measurement within which pixels are randomly scattered. A value of 0 leaves the image as is.

Which of the following functions is used by the filter property to change the brightness of an element's color?

Correct! Wrong!

Explanation:
A value of 100% or decimal value of 1 leaves the image as is, while 0 produces black. Increasing the value from 1 or 100% brightens pixels from their original values.

Which of the following functions is used by the filter property to modify the difference between light and dark values?

Correct! Wrong!

Explanation:
A value of 100% or a decimal value of 1 leaves the image as is, while 0 results in black. Increasing the value past 1 or 100% produces more dramatically stratified areas of light and dark

Which of the following functions flips the colors of an element so that the filter property can use it?

Correct! Wrong!

Explanation:
A decimal value between 0 and 1 or percentage up to 100% controls the extent of the color-negative effect, with 0.5 or 50% producing gray.

For use by the filter property, which of the following functions applies a saturation effect to an element's color, making it appear more or less vivid?

Correct! Wrong!

Explanation:
A decimal value of 1 or percentage of 100% keeps the image as is, while increasing the amount produces more dramatically stratified hues.

Which of the following are Webkit's CSS Extension Prefixes?

Correct! Wrong!

Explanation:
Browser sometimes adds prefixes to non-standard CSS properties. CSS Extension prefix for Webkit is -webkit which is supported by almost all ios browsers. -o is used by opera where as -moz is used by firefox browser.

What CSS property is the equivalent of the attribute?

Correct! Wrong!

Explanation:
The attribute in html aligns the text in center. In CSS, this is equivalent to align property which can align text to right, left or center as per the value. Margin property sets the margin for an element. Color property is used to set/assign colour to element. Font property is for increasing/decreasing the font of text.

Which CSS property is the same as the attribute?

Correct! Wrong!

Explanation:
Both font-style and font-family are for styling the text. They show text in different kinds of styles. Color is for setting/assigning colour to text or element. The font-size property in CSS is equivalent to attribute . Both of them either increase/decrease the font of text.

To give a line above the text, which of the following CSS properties is used?

Correct! Wrong!

Explanation:
Text-decoration is a CSS property used to decorate the text. The text-decoration property takes many values such as overline, underline, line-through, none, inherit, etc. Overline gives a line over the text. Underline value is used to add line under the text. None value defines a normal text. When one wants to give a line through the text, line-through value for text-property can be used.

On February 25, 2004, _________ was designated as a Candidate Recommendation, but on June 13, 2005, it was reverted to a Working Draft for further evaluation.

Correct! Wrong!

Explanation:
CSS level 2 revision 1, often referred to as “CSS 2.1”, fixes errors in CSS 2, removes poorly supported or not fully interoperable features and adds already implemented browser extensions to the specification. To comply with the W3C Process for standardizing technical specifications, CSS 2.1 went back and forth between Working Draft status and Candidate Recommendation status for many years. CSS 2.1 first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.

___________ has a grammar, but it is not defined with a document type definition like regular (X)HTML.

Correct! Wrong!

Explanation:
CSS 2.1 has a grammar (www.w3.org/TR/CSS21/grammar.html) but unlike traditional (X)HTML it is not defined with a document type definition. Instead the CSS specification is a combination of prose and a grammar that could be used to build a simple parser.

CSS properties for manipulating the position of "ruby," which are little annotations on top of or next to words that are particularly common in Chinese and Japanese, are described in ___________ .

Correct! Wrong!

Explanation:
Align is used to align the content either left, right or center. Ruby describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese. They are often used to give the pronunciation or meaning of difficult ideograms. Text-align is for aligning the text either left, right or in center.

We don't have to reapply style information throughout the document or to external documents when using Inline Style.

Correct! Wrong!

Explanation:
In inline style, properties are confined with a particular element to which it is applied. It won’t be applied to other element of the same type. We need to reapply style information throughout the document whenever it is necessary.

Which of the following tags should be used to link information inside?

Correct! Wrong!

Explanation:
Linked information regarding CSS like external CSS document information is always placed in tag. tag contains the body of the document.

Which of the following measurements is used to define a measurement in relation to the x-height of a font?

Correct! Wrong!

Explanation:
Defines a measurement relative to the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each em unit would be 12pt, thus 2em would be 24pt.

Which of the following measurements is a percentage measurement?

Correct! Wrong!

Explanation:
Defines a measurement as a percentage. Percentages are denoted by a number followed by the % symbol and are always relative to another value such as length. Quite often they are used to specify some value relative to an inherited value from a parent element.

Which of the following CSS3 Color Feature adds an alpha channel value to specify the color's opacity, similar to RGB color?

Correct! Wrong!

Explanation:
An RGBa is specified via a function style rgba(r,g,b,a) value, where colors r, g, and b are specified as a decimal value from 0 to 255 or a percentage from 0 to 100%, and the alpha channel value for defining opacity is a number between 0 (fully transparent) and 1 (fully opaque). Values outside this range will be rounded up or down to fit the closest value.

Under CSS 2.1, which of the following Color Formats has 17 defined colors?

Correct! Wrong!

Explanation:
maroon (#800000) red (#ff0000)
orange (#ffA500) yellow (#ffff00)
olive (#808000) purple (#800080)
fuchsia (#ff00ff ) white (#ffffff)
lime (#00ff00) green (#008000)
navy (#000080) blue (#0000ff)
aqua (#00ffff) teal (#008080)
black (#000000) silver (#c0c0c0) gray (#808080)
Other color keywords may be commonly used but are ad hoc in their definition.

Which of the six-digit hexadecimal formats used by CSS is the same as the color defined in (X) HTML?

Correct! Wrong!

Explanation:
The format specifies color as #rrggbb, where rr is the amount of red, gg the amount of green, and bb the amount of blue, all specified in a hexadecimal value ranging from 00 to FF.

Which of the following Color Formats is a CSS color? Which of the following color formats can be defined with the keyword rgb, followed by three numbers between 0 and 255, enclosed in parentheses and separated by commas, with no spaces between them?

Correct! Wrong!

Explanation:
RGB color values can also be defined using percentages. The format is the same, except that the numbers are replaced by percentage values between 0% and 100%.

Premium Tests $49/mo
FREE April-2024