Question: Will give thumbs up for helpful answer 1. Create an HTML file called as4.html. In it include the following: o an h1 element with the
Will give thumbs up for helpful answer

1. Create an HTML file called as4.html. In it include the following: o an h1 element with the name of your favourite food o an h2 element with your name in it o ap 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: o console.log your name o include the following code in your JavaScript file. Don't 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. const el = document.querySelector('h2'); el.textContent = 'Assignment 4'; 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
Get step-by-step solutions from verified subject matter experts
