Question: 1. Create an HTML file called as4.html. In it include the following: an h1 element with the name of your favourite food an h2 element
1. Create an HTML file called as4.html. In it include the following: an h1 element with the name of your favourite food
an h2 element with your name in it
a p element with a description of the food you chose
2. Create a JavaScript file named script.js. Associate this file with your HTML file using the best practices taught in class.
3. In the JavaScript file do the following:
console.log your name
include the following code in your JavaScript file. Dont worry about how it works for now, we
will cover this in the next module, but it will replace the text in the h2 element when viewing the webpage.
4. Open your HTML file in a web browser. Check the console for you output and the web page for the replacement text on the page
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
