The Task

Reading from the DOM

  1. Read the 'Orange' <p> tag into a var (not a const) called orange
  2. Read the <input> tag into a var (not a const) called input
<html>
<head>
<style>
.apple {
color: green;
}
.orange {
color: orange;
}
</style>
</head>
<body>
<div>
<p class="apple">Apple</p>
<p class="orange">Orange</p>
<input id="input1" placeholder="Input" />
</div>
<script>
// Vanilla Javascript code goes here!!
</script>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Get Help

The tasks need a laptop / computer. Please reload the page on a larger device.