1) HTML & CSS: Checkpoint 1-10

Description

Quiz on 1) HTML & CSS: Checkpoint 1-10, created by Sanny Lin on 24/03/2016.
Sanny Lin
Quiz by Sanny Lin, updated more than 1 year ago
Sanny Lin
Created by Sanny Lin over 8 years ago
103
1

Resource summary

Question 1

Question
We indent nested HTML code because... (select all that apply)
Answer
  • it improves readability
  • it establishes a hierarchy
  • it's an HTML5 requirement
  • the browser requires it to render HTML properly

Question 2

Question
Fill in the missing attributes: <link [blank_start]rel[blank_end]="stylesheet" [blank_start]type[blank_end]="text/css" [blank_start]href[blank_end]="mystyle.css">
Answer
  • rel
  • type
  • href

Question 3

Question
What CSS property would you use to change the color of some text?
Answer
  • color
  • font-color
  • text-color
  • word-color

Question 4

Question
What are the four layers, in order, of the CSS box model? (1 is inner-most layer and 4 is outer-most)
Answer
  • 1. Content 2. Padding 3. Border 4. Margin
  • 1. Content 2. Border 3. Padding 4. Margin
  • 1. Content 2. Margin 3. Border 4. Padding
  • 1. Content 2. Padding 3. Margin 4. Border

Question 5

Question
The CSS selector pattern `element element` is known as what type of selector? For example: `.navbar .logo` or `div p`
Answer
  • descendant selector
  • child selector
  • sibling selector
  • ancestor selector

Question 6

Question
In CSS, the asterisk symbol (*) is known as the __________ selector.
Answer
  • universal
  • compass
  • wild card
  • catch-all

Question 7

Question
What is the correct way to begin a media query?: __________ (min-width: 640px) { /* Style information will go here */ }
Answer
  • @media
  • media
  • .media
  • &media

Question 8

Question
Select all the CSS values you can use to make the color of some text white.
Answer
  • white
  • rgb(255,255,255)
  • #FFFFFF
  • rgba(255,255,255,0)

Question 9

Question
What tag is used to create an item within a table row, i.e. a table cell?
Answer
  • <td>
  • <tr>
  • <th>
  • <tc>

Question 10

Question
The CSS `border` property can be used to set the values for one or more of the following individual properties? (select all that apply)
Answer
  • border-width
  • border-style
  • border-color
  • border-size
Show full summary Hide full summary

Similar

What was the Cold War?
Emily Tisch
Chemistry (C1)
Phobae-Cat Doobi
Revision Timetable
katy.lay
anatomy of the moving body: Skeletal system
Rupa Kleyn
GCSE Computing : OCR Computing Course Revision
RoryOMoore
AQA Biology B2 Questions
Sian Griffiths
GCSE Computing: Hardware
Yasmin F
Geometry Vocabulary
patticlj
DNA Replication
Laura Badger
Higher Politics Essay Notes
Daniel Cormack
ASSD & PSBD QUESTION 2018 200
Dhiraj Tamang