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
-
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 do companies, even those with bad news, have an incentive to disclose financial reporting information?
-
Consider the two mutually exclusive investment projects given in Table P7.56 for which MARR = 15%. On the basis of the IRR criterion, which project would be selected under an infinite planning...
-
A bar is \(4 \mathrm{~m}\) long and has a diameter of \(30 \mathrm{~mm}\). Determine the total amount of elastic energy that it can absorb from an impact loading if (a) it is made of steel for which...
-
Jordan Broadcasting Company is going public at $50 net per share to the company. There also are founding stockholders that are selling part of their shares at the same price. Prior to the offering,...
-
(10%) Problem 10: Consider the point charges arranged at the corners and at the center of a square, as depicted in the figure. ab O O qa 090 Og Find the magnitude of the net Coulomb force, in...
-
identify if the relationship represents a function. If it does not, clearly explain why not. 1) Independent Dependent 5 2) Domain 3 Range -1 -5 -5 -6 -3 15553 2543 5555 0226 3) The ordered pairs:...
-
. The rockfill dam is to have the cross-section shown in the figure. The design depth is 10 m. Estimate: (1) the total pressure acting on the dam per unit width and (2) the location of the center of...
-
1. The new Apple app feature that gives users a choice to not be tracked has improved security but makes it harder for companies to advertise. Which is better? To be protected and not tracked, or to...
-
5. Assume that John consume only x and y and his utility is U(x, y) (x - 1)a (y-2)-a. If he has m dollars and faces p and py, obtain his optimal consumption bundle.
-
Two particles of mass m = 1.6 kg and m = 2.8 kg undergo a one-dimensional head-on collision as shown in the figure below. Their initial velocities along x are v = 13 m/s and v21 = -6.5 m/s. The two...
-
2. A force F with a magnitude |F|= 400 N acts on the frame (see figure) such that its components along BA and AC are FBA & F, AC respectively. These forces are directed from B towards A and A towards...
-
Chlorine is a highly reactive liquid, while argon is an inert gas. Explain this difference based on their electron configurations.
-
On the basis of the details of the following fixed asset account, indicate the items to be reported on the statement of cashflows: ACCOUNT Land ACCOUNT NO. Balance Date Item Debit Credit Debit Credit...
-
True or false? Explain: hierarchy reduces complexity because A. It reduces the size of individual modules. B. It cuts down on the number of interconnections between elements. C. It assembles a number...
-
True or false? Explain: modularity reduces complexity because A. It reduces the effect of incommensurate scaling. B. It helps control propagation of effects.
-
Consider the part of the file system naming hierarchy illustrated in the following: a. In the path name and in the figure, identify the context that you should use for that resolution and the context...
Study smarter with the SolutionInn App