placeholder image to represent content

2nd Period Mid Term

Quiz by Chad Kailipaka

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
49 questions
Show answers
  • Q1
    Which of the following is a valid HTML tag?
    >h1<
    <h1>
    <>
    h1
    30s
  • Q2
    Which of the following is an example of metadata about a webpage?
    An <h1> tag on the webpage
    All of the above
    The title of the webpage
    The body of the webpage
    30s
  • Q3
    What is the function of the <br> tag?
    Italicize text
    Bold text
    Create a line break on the resulting webpage
    Create a horizontal line on the resulting webpage
    30s
  • Q4
    Which of the following is the correct HTML code to create a hyperlink that (the image) displays and links to google.com?
    Question Image
    <a href="https://google.com"> Click Me </a>
    <a> Click Me </a href="https://google.com">
    Click Me <a>https://google.com</a>
    <a href="Click Me"> https://google.com </a>
    30s
  • Q5
    Which of the following lines of HTML code will insert an image into a webpage?
    <img> https://codehs.com/static/img/logo.png </img>
    <img src="https://codehs.com/static/img/logo.png">
    <img https://codehs.com/static/img/logo.png>
    <img> src="https://codehs.com/static/img/logo.png" </img>
    30s
  • Q6
    Which of the following HTML code snippets would produce the following web page: Apples Bananas Oranges
    <ul> Apples Bananas Oranges </ul>
    <ol> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ol>
    <ol> Apples Bananas Oranges </ol>
    <ul> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ul>
    30s
  • Q7
    Which of the following tags defines a table row?
    <th>
    <table>
    <td>
    <tr>
    30s
  • Q8
    Which of the following tags defines a table header?
    <td>
    <tr>
    <th>
    <table>
    30s
  • Q9
    Which of the following HTML code snippets will generate the following table?
    Question Image
    <table border="1"> <tr> <td>Name</td> <td>Score</td> </tr> <tr> <td>Karel</td> <td>32</td> </tr> </table>
    <table border="1"> <tr> Name Score </tr> <tr> Karel 32 </tr> </table>
    <table border="1"> <tr> <th>Name</th> <th>Score</th> </tr> <tr> <td>Karel</td> <td>32</td> </tr> </table>
    <table border="1"> <th>Name</th> <th>Score</th> <td>Karel</td> <td>32</td> </tr> </table>
    30s
  • Q10
    Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue?
    <h1 style="background-color:blue;">Hello</h1>
    <h1 style="blue">Hello</h1>
    <h1 background-color="blue">Hello</h1>
    <blue> <h1>Hello</h1> </blue>
    30s
  • Q11
    Why do we use CSS?
    All of the above
    HTML wasn’t intended to be able to style web pages, CSS allows us to add style
    Separate the content of a web page from the design of a web page
    Easily modify the look and feel of a web site even at a large scale
    30s
  • Q12
    Which of the following is a valid CSS rule?
    css="color:blue;"
    h1 { color: blue; }
    style="color:blue;"
    h1 { color { blue; } }
    30s
  • Q13
    Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?
    tag="img" { height: 200px; }
    img { height: 200px; }
    <img style="height:200px;">
    <img> { height: 200px; }
    30s
  • Q14
    Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?
    #alert { color: red; }
    .alert { color: red; }
    alert { color: red; }
    class="alert" { color: red; }
    30s
  • Q15
    Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels?
    .logo { font-size: 60px; }
    #logo { font-size: 60px; }
    logo { font-size: 60px; }
    id="logo" { font-size: 60px; }
    30s

Teachers give this quiz to your class