Rebecca Walton
Quiz von , erstellt am more than 1 year ago

Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.

31
0
0
Rebecca Walton
Erstellt von Rebecca Walton vor mehr als 4 Jahre
Schließen

Chapter 2: Cascading Style Sheets

Frage 1 von 31

1

An HTML element defines the _____of a document while the CSS determines the ____

Wähle eine der folgenden:

  • title .... content

  • formatting .... appearance

  • content ... appearance

  • appearance....content

Erklärung

Frage 2 von 31

1

A CSS definition includes three parts:

Wähle eine der folgenden:

  • a selector, a property and a value

  • alignment, color, and value

  • red, green and blue

  • selector, color, and value

Erklärung

Frage 3 von 31

1

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

Wähle eine der folgenden:

  • <style> and </style>

  • <css> and </css>

  • <head> and </head>

  • <body> and </body>

Erklärung

Frage 4 von 31

1

Which of the following measurements is a relative one?

Wähle eine der folgenden:

  • % and px

  • em and in

  • px and in

  • % and em

Erklärung

Frage 5 von 31

1

If you want to define different styles for the same selector and use them in different places, you can use ____ selector.

Wähle eine der folgenden:

  • numbering

  • class

  • different

  • special

Erklärung

Frage 6 von 31

1

How do you add a background color of red to all h1 elements?

Wähle eine der folgenden:

  • all h1{background-color:red;}

  • h1.all{background-color:red;}

  • h1{background-color:red;}

  • background-color{h1:red;}

Erklärung

Frage 7 von 31

1

How do you select an element with id "myColor"?

Wähle eine der folgenden:

  • myColor

  • #myColor

  • .myColor

  • *myColor

Erklärung

Frage 8 von 31

1

How do you apply CSS to a group of selectors?

Wähle eine der folgenden:

  • separate each selector with space

  • separate each selector with a dot

  • separate each selector with a comma

  • separate each selector with an asterisk

Erklärung

Frage 9 von 31

1

How do you select all p elements inside a div element?

Wähle eine der folgenden:

  • div, p

  • div p

  • div.p

  • div#p

Erklärung

Frage 10 von 31

1

How do you select all p elements as a child of a div element?

Wähle eine der folgenden:

  • div, p

  • div p

  • div. p

  • div>p

Erklärung

Frage 11 von 31

1

Which of the following CSS will override the browser default style?

Wähle eine der folgenden:

  • embedded

  • external

  • inline

  • all of the above

Erklärung

Frage 12 von 31

1

Suppose you have a linked style sheet file named "lesson1.css" that is saved in the same folder as you HTML document. In order to apply the style to the HTML document, you need to insert the following line of code in the _________ section of an HTML file:
<link href="lesson1.css" type="text/css" rel="stylesheet"/>

Wähle eine der folgenden:

  • <head>

  • <body>

  • <p>

  • specific location where the element is

Erklärung

Frage 13 von 31

1

Suppose you want to apply CSS to more than one Web pages, you probably will use _____CSS

Wähle eine der folgenden:

  • embedded

  • external

  • inline

  • browser default

Erklärung

Frage 14 von 31

1

If you use the embedded style, all the CSS definitions should be included inside_______ element.

Wähle eine der folgenden:

  • <style> and </style>

  • <css> and </css>

  • <definition> and </definition>

  • <cssDefinition> and </cssDefinition>

Erklärung

Frage 15 von 31

1

Which HTML attribute is used to define inline styles?

Wähle eine der folgenden:

  • style

  • css

  • inline

  • inlinestyle

Erklärung

Frage 16 von 31

1

CSS inheritance means ______.

Wähle eine der folgenden:

  • if you apply a property to one element, the property will apply to all related elements.

  • if you apply a property to one element, the property will apply to all nested elements.

  • if you apply a property to one element, the property will apply to all related elements with some exceptions.

  • CSS is not object-oriented, and thus no such thing as inheritance,

Erklärung

Frage 17 von 31

1

Which of the following is a correct way to comment out a line of CSS Code?

Wähle eine der folgenden:

  • /*This is a line of comment

  • <?This is a line of comment

  • <?This is a line of comment?>

  • /*This is a line of comment*/

Erklärung

Frage 18 von 31

1

In CSS color, the RGB stands for ______________?

Wähle eine der folgenden:

  • a really good background

  • red gray blue

  • red green blue

  • red green black

Erklärung

Frage 19 von 31

1

Which of the following is NOT a valid RGB color?

Wähle eine der folgenden:

  • #ff0000

  • #f00

  • rgb (256,0,0)

  • rgb(100%,0%,0%)

Erklärung

Frage 20 von 31

1

Which CSS property is used to change the text color of an element?

Wähle eine der folgenden:

  • text-color

  • font-color

  • foreground-color

  • color

Erklärung

Frage 21 von 31

1

CSS can be specified in three ways. When more than one style information is specified for an HTML element, these styles cascade into a new style sheet by following the cascading order. From highest priority to the lowest priority orders are:

Wähle eine der folgenden:

  • embedded, external, and inline

  • inline, embedded, and external

  • embedded, inline, and external

  • external, embedded, and inline

Erklärung

Frage 22 von 31

1

Which CSS property determines the text size?

Wähle eine der folgenden:

  • text-size

  • font-size

  • text-style

  • font-style

Erklärung

Frage 23 von 31

1

What is the CSS definition for making all the <p> elements bold?

Wähle eine der folgenden:

  • p{font-size:bold;}

  • p{font-style:bold;}

  • p{text-size:bold;}

  • p{font-weight:bold;}

Erklärung

Frage 24 von 31

1

What is the CSS definition for displaying hyperlink without an underline?

Wähle eine der folgenden:

  • a{underline: none;}

  • a{text-underline: none;}

  • a{text-decoration: none;}

  • a{text-decoration: no-underline;}

Erklärung

Frage 25 von 31

1

How do you make each word in a paragraph start with a capital letter?

Wähle eine der folgenden:

  • p{case: uppercase;}

  • p{case: first-letter;}

  • p{text-transform: uppercase;}

  • p{text-transform: capitalize;}

Erklärung

Frage 26 von 31

1

Which CSS property is used to change the font of an element?

Wähle eine der folgenden:

  • font

  • font-family

  • text

  • both A) and B)

Erklärung

Frage 27 von 31

1

How do you display a border for all paragraphs?

Wähle eine der folgenden:

  • p{border: solid 1px red;}

  • p{border-style: solid 1px red;}

  • p{border-visible: solid 1px red;}

  • p{display:solid 1px red;}

Erklärung

Frage 28 von 31

1

Which CSS property is used to change the left margin of an element?

Wähle eine der folgenden:

  • margin-left

  • indent

  • padding-left

  • space-left

Erklärung

Frage 29 von 31

1

CSS padding property allows negative value

Wähle eine der folgenden:

  • true

  • false

Erklärung

Frage 30 von 31

1

How do you make a list without its bullet points?

Wähle eine der folgenden:

  • ul{list-style-type:none;}

  • li{list-style-type:none;}

  • ul{list-style-type:disappear;}

  • li{list-style-type:disappear;}

Erklärung

Frage 31 von 31

1

What is the default value of the position property?

Wähle eine der folgenden:

  • absolute

  • relative

  • fixed

  • static

Erklärung