What does this code do?
p{
color: white;
}
turns the color of all paragraphs connected to this CSS page to white
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>
What are the three text aligns you can have in CSS.
left, right, center
How do you get a link to open in a new tab?
<a href="link name" target="_blank"></a>
How do you change the text alignment in CSS?
p{
text-align: center;
}
Would this code work correctly?
<p style='color:green;'>This is a new paragraph that should be green</p>
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
What is wrong with this code?
h1{
color: red
}
there is no semi-colon. It should be color: red;
Name the headings from largest text to smallest text
h1, h2, h3, h4, h5, h6
What is a tag that has no ending tags called?
an empty tag (like <br>)
Is this code correct?
<head>
<title>New HTML Page</title>
<style>
p{
color:green;
}
</style>
</head>
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>
What does this code do?
a {
color: blue;
}
turns all the links connected to this CSS sheet blue
write the code for a div tag that has a name of introduction
<div id="introduction">
other code
</div>
How do you create a table in HTML?
<table>
<tr>
<th>Person 1</th>
</tr>
<tr>
<td>Sara</td>
</tr>
</table>
In what part of your HTML code do you link a CSS Style sheet?
The head section
Write the code to link an image in HTML.
a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank"><img src="https://content.codecademy.com/courses/web-101/web101-image_brownbear.jpg" alt="Image of a Brown Bear" /></a>
What is wrong with this code?
p{
color white;
}
there is no colon. It should be color: white;
How do you create a form in HTML?
<form>
</form>
What are the three types of ways you can add CSS to your code?
External, Internal, and Inline
<link href="style.css" rel="stylesheet>
Write out how you should set up an html document.
<!DOCTYPE html>
<html>
<head>
<title>Title Goes Here</title>
</head>
<body>
</body>
</html>
Is this code correct?
<h2>{
color: purple;
}
no there should be no <> around the h2
What tag do we know that does not have a closing tag and what does it do?
<br> tag which creates a line break
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>