Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Introduction to the HTML Document and Uploading a Picture 2:39
- Editing Your HTML 2 objectives
- HTML Comments and JavaScript 2:08
- Changing Keywords 4 objectives
- Linking an External Style Sheet 2:15
- External Style Sheets 3 questions
- Background Color, Margin, and Padding 1:19
- Background Color, Margin, and Padding 3 objectives
- CSS Selectors 1:30
- CSS Selectors 3 questions
- What's JavaScript? 3:33
- What's JavaScript? 5 questions
- How to Get an Image Respectfully 2:46
- How to Get Images Legally on the Web 3 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In this video you are going to be learning about some new features in HTML and how to upload a picture.
Code for copy/paste:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=0.5, minimal-ui">
<title>Car Sounds</title>
<!--Style Sheet link-->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!--Car image -->
<img src="images/car1.png" class="car" alt="car">
<!--Buttons-->
<a href="javascript:startCar();"><img src="images/key.png" alt="key"></a>
<a href="javascript:honkHorn();"><img src="images/steering-wheel.png" alt="steering wheel"></a>
<a href="javascript:peelOut();"><img src="images/nos.png" alt="nos"></a>
<!--Audio Files-->
<audio id="startCar" src="sounds/startCarA.wav" preload="auto"></audio>
<audio id="honkHorn" src="sounds/honkHorn.wav" preload="auto"></audio>
<audio id="peelOut" src="sounds/peelOut.wav" preload="auto"></audio>
<!--Javascript-->
<script type="text/javascript">
function startCar() {
document.getElementById('startCar').play();
}
function honkHorn() {
document.getElementById('honkHorn').play();
}
function peelOut() {
document.getElementById('peelOut').play();
}
</script>
</body>
</html>
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Daphne Orme
2,275 Points2 Answers
-
PLUS
Ádám Csányi
Courses Plus Student 2,833 Points3 Answers
-
Luca Di Pinto
8,051 Points1 Answer
-
Salim Amin
818 PointsI copy paste the code and got this, what did I do wrong? https://i.gyazo.com/91e62160ea01cbdd8ee318fd29724472.png
Posted by Salim AminSalim Amin
818 Points2 Answers
-
Julie Curry
2,127 Points3 Answers
-
PLUS
Dana Al Taher
Courses Plus Student 9,499 Points1 Answer
-
Feisty Mullah
25,849 Points2 Answers
-
Constance Cooper
1,175 Points1 Answer
-
Tomas Greičiūnas
1,157 Points0 Answers
-
Yongmin Cho
2,081 PointsHi! I'm playing around with workspaces but when I hit preview to see the changes I've made, it doesn't update! Help~
Posted by Yongmin ChoYongmin Cho
2,081 Points3 Answers
-
Steven Bell
852 PointsI understand that charset means character set, but I don't know what the <meta charset="utf-8"> is. What does it mean?
Posted by Steven BellSteven Bell
852 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up