Rebecca Walton
Quiz por , criado 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
Criado por Rebecca Walton mais de 4 anos atrás
Fechar

Chapter 2: Cascading Style Sheets

Questão 1 de 31

1

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

Selecione uma das seguintes:

  • title .... content

  • formatting .... appearance

  • content ... appearance

  • appearance....content

Explicação

Questão 2 de 31

1

A CSS definition includes three parts:

Selecione uma das seguintes:

  • a selector, a property and a value

  • alignment, color, and value

  • red, green and blue

  • selector, color, and value

Explicação

Questão 3 de 31

1

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

Selecione uma das seguintes:

  • <style> and </style>

  • <css> and </css>

  • <head> and </head>

  • <body> and </body>

Explicação

Questão 4 de 31

1

Which of the following measurements is a relative one?

Selecione uma das seguintes:

  • % and px

  • em and in

  • px and in

  • % and em

Explicação

Questão 5 de 31

1

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

Selecione uma das seguintes:

  • numbering

  • class

  • different

  • special

Explicação

Questão 6 de 31

1

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

Selecione uma das seguintes:

  • all h1{background-color:red;}

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

  • h1{background-color:red;}

  • background-color{h1:red;}

Explicação

Questão 7 de 31

1

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

Selecione uma das seguintes:

  • myColor

  • #myColor

  • .myColor

  • *myColor

Explicação

Questão 8 de 31

1

How do you apply CSS to a group of selectors?

Selecione uma das seguintes:

  • separate each selector with space

  • separate each selector with a dot

  • separate each selector with a comma

  • separate each selector with an asterisk

Explicação

Questão 9 de 31

1

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

Selecione uma das seguintes:

  • div, p

  • div p

  • div.p

  • div#p

Explicação

Questão 10 de 31

1

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

Selecione uma das seguintes:

  • div, p

  • div p

  • div. p

  • div>p

Explicação

Questão 11 de 31

1

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

Selecione uma das seguintes:

  • embedded

  • external

  • inline

  • all of the above

Explicação

Questão 12 de 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"/>

Selecione uma das seguintes:

  • <head>

  • <body>

  • <p>

  • specific location where the element is

Explicação

Questão 13 de 31

1

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

Selecione uma das seguintes:

  • embedded

  • external

  • inline

  • browser default

Explicação

Questão 14 de 31

1

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

Selecione uma das seguintes:

  • <style> and </style>

  • <css> and </css>

  • <definition> and </definition>

  • <cssDefinition> and </cssDefinition>

Explicação

Questão 15 de 31

1

Which HTML attribute is used to define inline styles?

Selecione uma das seguintes:

  • style

  • css

  • inline

  • inlinestyle

Explicação

Questão 16 de 31

1

CSS inheritance means ______.

Selecione uma das seguintes:

  • 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,

Explicação

Questão 17 de 31

1

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

Selecione uma das seguintes:

  • /*This is a line of comment

  • <?This is a line of comment

  • <?This is a line of comment?>

  • /*This is a line of comment*/

Explicação

Questão 18 de 31

1

In CSS color, the RGB stands for ______________?

Selecione uma das seguintes:

  • a really good background

  • red gray blue

  • red green blue

  • red green black

Explicação

Questão 19 de 31

1

Which of the following is NOT a valid RGB color?

Selecione uma das seguintes:

  • #ff0000

  • #f00

  • rgb (256,0,0)

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

Explicação

Questão 20 de 31

1

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

Selecione uma das seguintes:

  • text-color

  • font-color

  • foreground-color

  • color

Explicação

Questão 21 de 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:

Selecione uma das seguintes:

  • embedded, external, and inline

  • inline, embedded, and external

  • embedded, inline, and external

  • external, embedded, and inline

Explicação

Questão 22 de 31

1

Which CSS property determines the text size?

Selecione uma das seguintes:

  • text-size

  • font-size

  • text-style

  • font-style

Explicação

Questão 23 de 31

1

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

Selecione uma das seguintes:

  • p{font-size:bold;}

  • p{font-style:bold;}

  • p{text-size:bold;}

  • p{font-weight:bold;}

Explicação

Questão 24 de 31

1

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

Selecione uma das seguintes:

  • a{underline: none;}

  • a{text-underline: none;}

  • a{text-decoration: none;}

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

Explicação

Questão 25 de 31

1

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

Selecione uma das seguintes:

  • p{case: uppercase;}

  • p{case: first-letter;}

  • p{text-transform: uppercase;}

  • p{text-transform: capitalize;}

Explicação

Questão 26 de 31

1

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

Selecione uma das seguintes:

  • font

  • font-family

  • text

  • both A) and B)

Explicação

Questão 27 de 31

1

How do you display a border for all paragraphs?

Selecione uma das seguintes:

  • p{border: solid 1px red;}

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

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

  • p{display:solid 1px red;}

Explicação

Questão 28 de 31

1

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

Selecione uma das seguintes:

  • margin-left

  • indent

  • padding-left

  • space-left

Explicação

Questão 29 de 31

1

CSS padding property allows negative value

Selecione uma das seguintes:

  • true

  • false

Explicação

Questão 30 de 31

1

How do you make a list without its bullet points?

Selecione uma das seguintes:

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

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

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

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

Explicação

Questão 31 de 31

1

What is the default value of the position property?

Selecione uma das seguintes:

  • absolute

  • relative

  • fixed

  • static

Explicação