Chapter 2: Cascading Style Sheets

Beschreibung

Sanchez, L. (2017). Web Programming with HTML, CSS, Bootstrap, JavaScript, JQuery, PHP, and MySQL . CreateSpace Independent Publishing Platform.
Rebecca Walton
Quiz von Rebecca Walton, aktualisiert more than 1 year ago
Rebecca Walton
Erstellt von Rebecca Walton vor etwa 4 Jahre
31
0

Zusammenfassung der Ressource

Frage 1

Frage
An HTML element defines the _____of a document while the CSS determines the ____
Antworten
  • title .... content
  • formatting .... appearance
  • content ... appearance
  • appearance....content

Frage 2

Frage
A CSS definition includes three parts:
Antworten
  • a selector, a property and a value
  • alignment, color, and value
  • red, green and blue
  • selector, color, and value

Frage 3

Frage
Where in an HTML document is the correct place to refer to an external style sheet?
Antworten
  • <style> and </style>
  • <css> and </css>
  • <head> and </head>
  • <body> and </body>

Frage 4

Frage
Which of the following measurements is a relative one?
Antworten
  • % and px
  • em and in
  • px and in
  • % and em

Frage 5

Frage
If you want to define different styles for the same selector and use them in different places, you can use ____ selector.
Antworten
  • numbering
  • class
  • different
  • special

Frage 6

Frage
How do you add a background color of red to all h1 elements?
Antworten
  • all h1{background-color:red;}
  • h1.all{background-color:red;}
  • h1{background-color:red;}
  • background-color{h1:red;}

Frage 7

Frage
How do you select an element with id "myColor"?
Antworten
  • myColor
  • #myColor
  • .myColor
  • *myColor

Frage 8

Frage
How do you apply CSS to a group of selectors?
Antworten
  • separate each selector with space
  • separate each selector with a dot
  • separate each selector with a comma
  • separate each selector with an asterisk

Frage 9

Frage
How do you select all p elements inside a div element?
Antworten
  • div, p
  • div p
  • div.p
  • div#p

Frage 10

Frage
How do you select all p elements as a child of a div element?
Antworten
  • div, p
  • div p
  • div. p
  • div>p

Frage 11

Frage
Which of the following CSS will override the browser default style?
Antworten
  • embedded
  • external
  • inline
  • all of the above

Frage 12

Frage
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"/>
Antworten
  • <head>
  • <body>
  • <p>
  • specific location where the element is

Frage 13

Frage
Suppose you want to apply CSS to more than one Web pages, you probably will use _____CSS
Antworten
  • embedded
  • external
  • inline
  • browser default

Frage 14

Frage
If you use the embedded style, all the CSS definitions should be included inside_______ element.
Antworten
  • <style> and </style>
  • <css> and </css>
  • <definition> and </definition>
  • <cssDefinition> and </cssDefinition>

Frage 15

Frage
Which HTML attribute is used to define inline styles?
Antworten
  • style
  • css
  • inline
  • inlinestyle

Frage 16

Frage
CSS inheritance means ______.
Antworten
  • 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,

Frage 17

Frage
Which of the following is a correct way to comment out a line of CSS Code?
Antworten
  • /*This is a line of comment
  • <?This is a line of comment
  • <?This is a line of comment?>
  • /*This is a line of comment*/

Frage 18

Frage
In CSS color, the RGB stands for ______________?
Antworten
  • a really good background
  • red gray blue
  • red green blue
  • red green black

Frage 19

Frage
Which of the following is NOT a valid RGB color?
Antworten
  • #ff0000
  • #f00
  • rgb (256,0,0)
  • rgb(100%,0%,0%)

Frage 20

Frage
Which CSS property is used to change the text color of an element?
Antworten
  • text-color
  • font-color
  • foreground-color
  • color

Frage 21

Frage
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:
Antworten
  • embedded, external, and inline
  • inline, embedded, and external
  • embedded, inline, and external
  • external, embedded, and inline

Frage 22

Frage
Which CSS property determines the text size?
Antworten
  • text-size
  • font-size
  • text-style
  • font-style

Frage 23

Frage
What is the CSS definition for making all the <p> elements bold?
Antworten
  • p{font-size:bold;}
  • p{font-style:bold;}
  • p{text-size:bold;}
  • p{font-weight:bold;}

Frage 24

Frage
What is the CSS definition for displaying hyperlink without an underline?
Antworten
  • a{underline: none;}
  • a{text-underline: none;}
  • a{text-decoration: none;}
  • a{text-decoration: no-underline;}

Frage 25

Frage
How do you make each word in a paragraph start with a capital letter?
Antworten
  • p{case: uppercase;}
  • p{case: first-letter;}
  • p{text-transform: uppercase;}
  • p{text-transform: capitalize;}

Frage 26

Frage
Which CSS property is used to change the font of an element?
Antworten
  • font
  • font-family
  • text
  • both A) and B)

Frage 27

Frage
How do you display a border for all paragraphs?
Antworten
  • p{border: solid 1px red;}
  • p{border-style: solid 1px red;}
  • p{border-visible: solid 1px red;}
  • p{display:solid 1px red;}

Frage 28

Frage
Which CSS property is used to change the left margin of an element?
Antworten
  • margin-left
  • indent
  • padding-left
  • space-left

Frage 29

Frage
CSS padding property allows negative value
Antworten
  • true
  • false

Frage 30

Frage
How do you make a list without its bullet points?
Antworten
  • ul{list-style-type:none;}
  • li{list-style-type:none;}
  • ul{list-style-type:disappear;}
  • li{list-style-type:disappear;}

Frage 31

Frage
What is the default value of the position property?
Antworten
  • absolute
  • relative
  • fixed
  • static
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr