Interactive HTML + JavaScript Vocabulary
Word Bank
| HTML | CSS | JavaScript |
| element | tag | attribute |
| DOM | event | event listener |
| input | textarea | select |
| class | id |
Fill In the Blanks
- is the structure of a web page.
- controls how a web page looks.
- makes a web page interactive.
- A is a single piece of HTML, like a
pordiv. - A is the name of an HTML element, like
porh1. - An gives extra information, like
id="title". - The is the browser’s model of the page.
- An is something that happens, like a click.
- An is code that runs when an event happens.
- An collects short text from a user.
Quick Checks
- Circle the HTML input types we used:
input/textarea/select/img - Match the role (left side) to the language (right side):
- Structure
- Style
- Behavior
- HTML
- CSS
- JavaScript
Stretch: DOM Detective
Find and circle the mistake in this code:
<label for="message">Message</label>
<input id="messageText">
<script>
const message = document.querySelector("message");
</script>
Hint: Check the input type and the selector.