1. Create an HTML file called as4.html. In it include the following: an h1 element containing...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create an HTML file called as4.html. In it include the following: an h1 element containing "Assignment 4" an h2 element containing the name of your favourite sport or hobby a p element with a description of the sport or hobby you chose (just a sentence or two) 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: create a variable that contains your name console.log the value of this variable 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. (Use the variable name that you created instead of myName.) document.querySelector('h2').textContent = myName; 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. 5. At the beginning of each file include a comment that includes your name, student number, assignment name, and the date. For example, in the HTML file it would look something like this: 6. Place your files in a folder and zip the entire folder, submit the zip file (it doesn't matter what you name the zip file, Blackboard will rename it anyway). 1. Create an HTML file called as4.html. In it include the following: an h1 element containing "Assignment 4" an h2 element containing the name of your favourite sport or hobby a p element with a description of the sport or hobby you chose (just a sentence or two) 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: create a variable that contains your name console.log the value of this variable 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. (Use the variable name that you created instead of myName.) document.querySelector('h2').textContent = myName; 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. 5. At the beginning of each file include a comment that includes your name, student number, assignment name, and the date. For example, in the HTML file it would look something like this: 6. Place your files in a folder and zip the entire folder, submit the zip file (it doesn't matter what you name the zip file, Blackboard will rename it anyway).
Expert Answer:
Answer rating: 100% (QA)
filename as4html Mohit Tandon 13528 Assignment 4 20240502 HTML HEAD TITLE Assignment4 TITLE body h1 ... View the full answer
Related Book For
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel
Posted Date:
Students also viewed these programming questions
-
lim x-2 x-4x-4
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Linda has d dollars in an account that pays 1.4% interest, compounded weekly. She withdraws w dollars. Express her first weeks interest algebraically.
-
Why is it difficult to evaluate the regulation question?
-
1. Why do you think the practices described in the case led to success for these companies? 2. How do they change the structure of projects so that the likelihood of a positive outcome increases? 3....
-
Backflush costing DMV Company uses backflush costing to account for its manufacturing costs. The trigger points are the purchase of materials, the completion of goods, and the sale of goods. Prepare...
-
1. The following is from Amgens values statement: Our Values form a deeply held belief system that guides our behavior, helps us make the right decisions and builds the framework for our daily...
-
Please solve Find all values of x where the slope of the tangent line to f(2) = 2x- x + 5 is 0. C = Preview
-
Information concerning a product produced by Ender Company appears here: Sales price per unit Variable cost per unit Total annual fixed manufacturing and operating costs $ 166 $ 91 $450,000 Required...
-
What responsibility does the auditor have for communicating internal control structure related matters?
-
What factors affect the size of a companys cash dividend?
-
a. List five steps in completing preliminary planning before specifying the substantive tests to be included in an audit program, b. List six steps in the general framework for specifying substantive...
-
What is the relationship between the acceptable level of detection risk and the extent of substantive tests?
-
How should the auditor's decisions regarding the design of substantive tests to be performed be documented in the working papers?
-
El tenedor de libros de Geronimo Company ha preparado elsiguiente balance general al 31 de julio de 2014.EMPRESA GER?NIMOHOJA DE BALANCEAL 31 DE JULIO DE 2014Dinero$ 69,000Documentos 2 answers
-
Chris Zulliger was a chef at the Plaza Restaurant in the Snowbird Ski Resort in Utah. The restaurant is located at the base of a mountain. As a chef for the Plaza, Zulliger was instructed by his...
-
Below is information from the statement of retained earnings of Mrs. Bells Cookies, Inc. for a recent year. Prepare the statement of retained earnings for Mrs. Bells Cookies in good form. You will...
-
Primorsk Corporation began the year 20x6 with cash of $55,900. In addition to earning a net income of $32,500 and paying a cash dividend of $19,500, Primorsk borrowed $78,000 from the bank and...
-
Saxon wants to know if its profitability performance has increased from 20x6 to 20x7. The company had net income of $24,000 in 20x6 and $25,000 in 20x7. Total assets were $200,000 at the end of 20x5,...
Study smarter with the SolutionInn App