Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialWill Ferguson
1,215 PointsI can't get the changes to the car in the work space apply.
When I try to change the color or change the car from car1 to car2 they don't apply. I see no visible change, it's still the original car and original background.
5 Answers
David Tonge
Courses Plus Student 45,640 PointsFixed the formatting for you.
David Tonge
Courses Plus Student 45,640 PointsHey Will,
Could you post the code that you're using?
Will Ferguson
1,215 PointsI'm not sure how.
David Tonge
Courses Plus Student 45,640 PointsThere's a markdown cheatsheet right below the textbox you post your answer/comment in. I'll put the link. Just copy and paste your code here. I'll format it if you can't quite figure it out. https://teamtreehouse.com/community/cheatsheet
Will Ferguson
1,215 Points<!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>
```HTML
Will Ferguson
1,215 PointsI'm not sure why only part of the page posted.