Question

What is wrong with this code? (5 pts) <html> <body> <h1> Hello world </h1> </body> <head>...

What is wrong with this code? (5 pts)

<html>

<body>

<h1> Hello world </h1>

</body>

<head>

<title>My First Script </title>

</head>

</html>

Homework Answers

Answer #1

There are couple of issues, viz.,

1. DocType is missing. e.g. “<!DOCTYPE html>”.

2 Also consider adding a "lang" attribute to the html start tag to declare the language of this document.

3. Element Head can only be used as the first element in an html element if at all it is present

Better HTML would be

<!DOCTYPE html>

<html lang="en">

<head>

<title>My First Script </title>

</head>

<body>

<h1> Hello world </h1>

</body>
</html>

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
What's wrong with the overall structure of the HTML tags shown below? <html lang="en"> <head> <meta...
What's wrong with the overall structure of the HTML tags shown below? <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="Example Page"> <title>Find the Mistake</title> <body> <h1>Content models</h1> <p> In HTML 4 there were only two main content models, block and inline level elements. <b>Block level</b> elements would stack on top of each other in normal document flow while <b>inline level</b> elements typically appear <em>within</em> the flow of text content.</p> </body> </head> </html> The body section is inside the head section...
The following code shows the head and body sections in an HTML file: <head> <script> function...
The following code shows the head and body sections in an HTML file: <head> <script> function init() { var x, y, z; z = document.getElementById("abc").innerHTML; y = "B"; x = "C"; document.getElementById("abc").innerHTML = x+y+z; } </script> </head> <body onload="init();"> <p id="abc">A</p> </body> What would be displayed on the browser when the above webpage is opened? BC CB or CBA or A or ABC
What is the behavior of the link shown in this HTML code? <body> <h1>An Amazing Link</h1>...
What is the behavior of the link shown in this HTML code? <body> <h1>An Amazing Link</h1> <p>Click here for more information about <a href="../../main/info/aboutLIL.htm" title="Within Site Link">LinkedIn Learning </a></p> </body> A. The link navigates up two folder levels from current position, navigates down two folder levels, then loads aboutLIL.htm B. The link navigates down two folder levels, then loads aboutLIL.htm C. The link navigates up two folder levels from current position, then loads aboutLIL.htm D. The link navigates down two...
!DOCTYPE html html head style /style /head body h1This is a Heading/h1 pThis is a strongparagraph/strong,...
!DOCTYPE html html head style /style /head body h1This is a Heading/h1 pThis is a strongparagraph/strong, with some words more strongimportant/strong than others /p pThis is another paragraph./p ul liApple/li liOrange/li liPear/li /ul table tr thFirstname/th thLastname/th /tr tr tdPeter/td tdGriffin/td /tr tr tdLois/td tdGriffin/td /tr /table /body /html Your tasks for this Critical Thinking activity are: Hide the h1 element. It should not take up any space. Display the list items as inline elements. Display the strong elements as...
<!doctype html> <html lang=”en”>   <head>     <title>Principal Calculation Form</title>     <meta charset="utf-8"/>         
<!doctype html> <html lang=”en”>   <head>     <title>Principal Calculation Form</title>     <meta charset="utf-8"/>                   <script src="code.js"></script>   </head>      <body onload="setFocus();">     <div class="container">                                       <div class="main">                                                                                <form action="#" method="post" name="form_name" id="form_id" class="form_class" >                                                                           <h2>--Principal Loan Form--</h2>                                                                                                                                                      <h5>Disclaimer: This software by no mean will precisely predict your mortgage through your lender company.  This Software will only assume the four items below in order to make an educated guess or prediction to your exact mortgage interests amount and the duration of your loan from your lender. <img...
What is wrong with the following code segment, assumming it compiles correctly? char *a = "Hello";...
What is wrong with the following code segment, assumming it compiles correctly? char *a = "Hello"; char *b = " Mom"; while( *b != '\0' ) { *a = *b; a++; b++; }
Part 1: Create the grid tic-tac-toe gameboard using buttons and iteration. Part 2: Human user gets...
Part 1: Create the grid tic-tac-toe gameboard using buttons and iteration. Part 2: Human user gets to select an open cell on the grid - place an X on that button selected Part 3: Check for a win using DOM iteration - new game option if row or column matching X pattern Part 4: Computer gets to select an open cell on the grid - place an O on that button selected Part 5: Check for a win using DOM...
Problem 4 - 5 Pts] Verilog [Part 4.1 - 5 Pts] What does the Verilog code...
Problem 4 - 5 Pts] Verilog [Part 4.1 - 5 Pts] What does the Verilog code below do? Provide as much detail as possible and provide informative descriptions/labels for the 4 input/outputs. module mystery (W, X, Y, Z); input W, X, Y; output Z; reg [7:0] P; always @ (posedge W or posedge X) begin if (X) P = 8'b00000000; else P = {P[6:0], Y); end assign Z = P[7]; endmodule
[5 pts] An element with no closing tag is called which of the following? an attribute...
[5 pts] An element with no closing tag is called which of the following? an attribute an empty element a Socratic element a hermit element [5 pts] <a href="#info">Click Here</a> The above HTML is an example of which of the following? An external link An internal link An anonymous function A source attribute [5 pts] Which of the following should be primarily responsible for the design and formatting of a Web page? CSS HTML JavaScript XML [5 pts]   The following:...
I am trying to make a contact form to give input on another browser window. I...
I am trying to make a contact form to give input on another browser window. I am only getting the php code. I am trying to figure out why it won't post. Her is my html and php files: <!DOCTYPE html> <html> <head> <title>Contact</title> <link rel="stylesheet" href="main.css"> </head> <body>    <h1>Contact Form</h1> <nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="page2.html">My PodCast</a></li> <li><a href="page3.html">Contact Me</a></li> <li><a href="page4.html">Resources</a></li> <li><a href="addressbook.html">Address Book</a></li> <li>Contact Form</li> </ul> </nav> <center><h2>Please fill out form</h2> <div id='container'> <div id='header'></div> <center><h3>Contact</h3>...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • Do you need continuous water for a boiler/heat exchanger in a distillation column? Is there any...
    asked 36 minutes ago
  • Working at DuPont, you need to transfer a power-law fluid through a horizontal pipeline (ID =...
    asked 46 minutes ago
  • A trucking company determined that the distance traveled per truck per year is normally distributed, with...
    asked 46 minutes ago
  • From the movie Lila, Eight to Thirteen in this week's materials, Identify 2–3 developmental milestones Lila...
    asked 55 minutes ago
  • Design a microcomputer system using a uP 8086 10 Mhz. This system must have a Coprocessor...
    asked 58 minutes ago
  • Rational emotive behavior therapy is based on the ABC theory of personality. Can you think of...
    asked 1 hour ago
  • Walker Enterprises, Inc., uses a job-order costing system and sets a predetermined overhead rate at the...
    asked 2 hours ago
  • Predict the products, including stereochemistry where appropriate, for the m-chloroperoxybenzoic acid epoxidations of the following alkenes:...
    asked 2 hours ago
  • 1) A particle is moving on a curve that has the parametric equations x=-4cost, y=5sint, 0≤?≤2?....
    asked 2 hours ago
  • Assume you are agile enough to run across a horizontal surface at 14.70 m/s, independently of...
    asked 2 hours ago
  • The president of a company must decide which of two actions to take, say whether to...
    asked 2 hours ago
  • What best characterizes the relationship between wage labor and capital? a) Capital produces wage labor b)...
    asked 2 hours ago