CSS 1
HTML 1
CSS 2
HTML 2
Hard Qs
100

What does this code do?

p{

    color: white;

}

turns the color of all paragraphs connected to this CSS page to white

100

Create an ordered list consisting of blue, black, red, and white

<ol>

    <li>blue</li>

    <li>black</li>

    <li>red</li>

    <li>white</li>

</ol>


100

What are the three text aligns you can have in CSS.

left, right, center

100

How do you get a link to open in a new tab?

<a href="link name" target="_blank"></a>

100

How do you change the text alignment in CSS?

p{

text-align: center;

}

200

Would this code work correctly?

 <p style='color:green;'>This is a new paragraph that should be green</p>

200

Which of these code samples is correct?

<img src="img1.jpg" alt="About me Image" width="350" height="250"/>

or

<img src="img1.jpg" alt="About me Image"  height="250" width="350">

Both are correct

200

What is wrong with this code?

h1{

color: red

}

there is no semi-colon. It should be color: red;

200

Name the headings from largest text to smallest text

h1, h2, h3, h4, h5, h6

200

What is a tag that has no ending tags called?

an empty tag (like <br>)

300

Is this code correct?

<head>

  <title>New HTML Page</title>

  <style>

    p{

      color:green;

    }

  </style>

</head>

300

Write the code to correctly link a video that plays on your HTML page AND has a description in case the video does not load.

<video src="myVideo.mp4"  controls>
  Video not supported
</video>

300

What does this code do?

a {

color: blue;

}

turns all the links connected to this CSS sheet blue

300

write the code for a div tag that has a name of introduction

<div id="introduction">

other code

</div>

300

How do you create a table in HTML?

<table>
  <tr>
    <th>Person 1</th>

  </tr>

  <tr>

    <td>Sara</td>

  </tr>

</table>

400

In what part of your HTML code do you link a CSS Style sheet?

The head section

400

Write the code to link an image in HTML.

400

What is wrong with this code?

p{

color white;

}

there is no colon. It should be color: white;

400

How do you create a form in HTML?

<form>

</form>

400

What are the three types of ways you can add CSS to your code?

External, Internal, and Inline

500
Write out the code to link a css style page to an HTML page.

<link href="style.css" rel="stylesheet>

500

Write out how you should set up an html document.

<!DOCTYPE html>

<html>

  <head>

    <title>Title Goes Here</title>

  </head>

  <body>

 </body>

</html>

500

Is this code correct?

<h2>{

color: purple;

}

no there should be no <> around the h2

500

What tag do we know that does not have a closing tag and what does it do?

<br> tag which creates a line break

500

How do you add emojis to your HTML page?

add in the head section <meta charset="UTF-8">

add the number of the emoji in text tags: 

<p>😀</p>