Question

Kindly assist in fixing the error i got when I pasted my codes to validate it....

Kindly assist in fixing the error i got when I pasted my codes to validate it. The error is in bold.

Error: Table column 2 established by element th has no cells beginning in it.

From line 53, column 25; to line 55, column 40

<tr>

<th colspan="2">

<!DOCTYPE HTML>

<html lang="en"><!-- language is English-->
  
<head>
  
<meta charset="utf-8"/>
  
<title>DA Website</title>
  
<link rel="stylesheet" type="text/css" href="styles.css" />
  
</head>
  
<body>
  
<div id="wrapper">
  
<!-- start html block -->
  
<header>
  
DA Website
  
<img src="DA%20LOGO2.PNG" alt="DA Logo" height="200" width="250"><!--companylogo-->
  
</header>
  
<nav>
  
<ul>
  
<li><a href="index.html">Home</a></li><!-- this link is referring to the home page-->
  
<li><a href="about.html">About Us</a></li><!-- this link is referring to the about page-->
  
<li><a href="services.html">Services</a></li><!-- this link is referring to the service page-->
  
<li><a href="gallery.html">Gallery</a></li><!-- this link is referring to the gallery page-->
  
<li><a href="contact.html">Contact Us</a></li><!-- this link is referring to the contact page-->
  
</ul>
  
</nav>
  
<section class="content">
  
<h1 style="text-align:center">ABC</h1>
  
<table style="margin: 0 auto;">
  
<tr>
  
<th colspan="2">
  
<div class="headline">Contact Us</div>
  
</th>
  
</tr>
  
<tr>
  
<td colspan="2">
  
<div class="body-text">
  
Please contact us through our email
  
</div>
  
</td>
  
</tr>
  
<tr>
  
<td colspan="2">
  
<div class="body-text">
  
<img src="DA%[email protected]" alt="DA @gm" height="150" width="200">
  
</div>
  
</td>
  
</tr>
  
<tr>
  
<td colspan="2">
  
<div class="body-text">
  
You can visit our store located at 12 DA.
  
Or, call us at -----
  
</div>
  
</td>
  
</tr>
  
<tr>
  
<td colspan="2">
  
<div class="body-text">
  
<audio controls>
  
<source src="contact%20ringing.ogg" type="audio/ogg">
  
Your browser does not support the audio element.
  
</audio>
  
</div>
  
</td>   
  
</tr>
  
</table>
  
</section>
  
<footer><!--footer is a component of a page-->
  
Copyright©2019 DA
  
</footer>
  
<!-- end html block -->
  
</div>
  
</body>

</html>

0 0
Add a comment Improve this question Transcribed image text
Answer #1

You are getting this error " Table column 2 established by element th has no cells beginning in it. " because you gave "colspan="2 " this mean in table column should be stretch across 2 column in the table (means when you gave 2 colspan then their should be 2 column in a cell ) , in your code . But the table you created doesnt have more then 2 column in single cell or row , that is why the error is coming . So to resolve this error make your table with 2 column each and then make use of colspan as 2. Your table has been designed for only single column.

<!DOCTYPE HTML>

<html lang="en">

<!-- language is English-->

<head>

<meta charset="utf-8" />

<title>DA Website</title>

<link rel="stylesheet" type="text/css" href="styles.css" />

</head>

<body>

<div id="wrapper">

<!-- start html block -->

<header>

DA Website

<img src="DA%20LOGO2.PNG" alt="DA Logo" height="200" width="250">

<!--companylogo-->

</header>

<nav>

<ul>

<li><a href="index.html">Home</a></li><!-- this link is referring to the home page-->

<li><a href="about.html">About Us</a></li><!-- this link is referring to the about page-->

<li><a href="services.html">Services</a></li><!-- this link is referring to the service page-->

<li><a href="gallery.html">Gallery</a></li><!-- this link is referring to the gallery page-->

<li><a href="contact.html">Contact Us</a></li><!-- this link is referring to the contact page-->

</ul>

</nav>

<section class="content">

<h1 style="text-align:center">ABC</h1>

<table style="margin: 0 auto;">

<tr style="display:none">

<td>

</td>

<td>

</td>

</tr>

<tr>

<th colspan="2">

<div class="headline">Contact Us</div>

</th>

</tr>

<tr>

<td colspan="2">

<div class="body-text">

Please contact us through our email

</div>

</td>

</tr>

<tr>

<td colspan="2">

<div class="body-text">

<img src="DA%[email protected]" alt="DA @gm" height="150" width="200">

</div>

</td>

</tr>

<tr>

<td colspan="2">

<div class="body-text">

You can visit our store located at 12 DA.

Or, call us at -----

</div>

</td>

</tr>

<tr>

<td colspan="2">

<div class="body-text">

<audio controls>

<source src="contact%20ringing.ogg" type="audio/ogg">

Your browser does not support the audio element.

</audio>

</div>

</td>

</tr>

</table>

</section>

<footer>

<!--footer is a component of a page-->

Copyright©2019 DA

</footer>

<!-- end html block -->

</div>

</body>

</html>

Add a comment
Know the answer?
Add Answer to:
Kindly assist in fixing the error i got when I pasted my codes to validate it....
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I cant seem to get the CSS at the bottom of this HTML to work. <!doctype...

    I cant seem to get the CSS at the bottom of this HTML to work. <!doctype html> <html lang="en"> <head> <!--Madison McCuiston--> <meta charset="utf-8"> <title>Amelie Boulangerie</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="wrapper"> <header>Amelie Boulangerie</header> <!-- change this to header tag --> <nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="pastries.html">Pastries</a></li> <li><a href="events.html">Events</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> <main> <H2>Experience the Difference</H2> <p><span class="bakery">Amelie Boulangerie</span> is the master of flavor combinations.The jewel-colored macarons come in the most tempting of flavors. Experience the difference...

  • Hello Ive been tryting to add the CDN of jquery to my html code and I...

    Hello Ive been tryting to add the CDN of jquery to my html code and I keep getting an error Need help with this : ​​ Navigate to www.code.jquery.com in your Chrome browser. On this page, you'll find different stable versions of jQuery. Select uncompressed for jQuery Core 3.3.1. Copy the <script> tag that is given to you. In store_hours.html, paste that tag directly above your body's closing tag. This is the jQuery CDN. After you paste this code into...

  • I know there are a couple of answers to this question already but they don't match...

    I know there are a couple of answers to this question already but they don't match the sample code we where given. Overview Images, both static and dynamic, appear on most Web sites. There are many different features and functionalities that we can add through the use of JavaScript, including preloading, rollovers, and cycling banner ads. In this assignment, you will work with JavaScript, images, events, and manipulating the DOM to create an interactive image gallery. Hint: Preloading your images...

  • I need help incorporating javascript into my page. The Lessons page has a message box (not...

    I need help incorporating javascript into my page. The Lessons page has a message box (not an alert box) that becomes visible/invisible when the mouse is moved over/off the small, red hyperlink on the last line that says, "note." The note is 10pt, red, and italic. The message box contains the text, "Students who pre-pay for the entire term will have the registration fee waved." It is 150px wide, with an "azure" background and a black border. It has 5px...

  • This assignment require using different Bootstrap classes for styling. I have used some "class=" (bootstrap) in...

    This assignment require using different Bootstrap classes for styling. I have used some "class=" (bootstrap) in code, but they don't work. In HTML, we need to add < link > to display bootstrap, but I don't know what to do in PHP. <?php $servername = "fdb29.awardspace.net"; $username = "3515976_assignment9"; $password = "Becky516."; $database = "3515976_assignment9"; $port = "3306"; // Create connection $dbconn = mysqli_connect($servername, $username, $password, $database, $port); if($dbconn){ }else{ die("Connection Failed: ".mysqli_connect_error()); } $myQuery = "SELECT p_name, p_desc, p_img,...

  • Please edit and add all the code needed to make the images side by side and to put the buttons in...

    Please edit and add all the code needed to make the images side by side and to put the buttons in the middle of the images. Thank you index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8">    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Untitled Document</title> <!-- Bootstrap -->    <link href="css/bootstrap-4.0.0.css" rel="stylesheet">    <link href="style.css" rel="stylesheet" type="text/css">    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <header>    <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="#">Lakeside Resort Spot</a>        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent1" aria-controls="navbarSupportedContent1" aria-expanded="false" aria-label="Toggle navigation">...

  • Hello, I was wondering if you could possibly think of ways to improve my home page then I would l...

    Hello, I was wondering if you could possibly think of ways to improve my home page then I would like you to do so. I know it could be better. Thank you. index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Untitled Document</title> <!-- Bootstrap --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <!-- Latest compiled JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> <link href="style.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <header> <nav class="navbar...

  • Form for a user to enter billing and shipping information. A checkbox that when clicked copies...

    Form for a user to enter billing and shipping information. A checkbox that when clicked copies all of the billing information to the shipping information. A submit button that, when clicked, will make sure that all text fields have had data entered into them. Create your own validation in for the fields, No automatic browser validation. JavaScript/HTML <!DOCTYPE html> <html lang="en"> <head> </head> <body>    <div class="container">       <header>          <h1>                      </h1>       </header>       <nav>          <ul>...

  • <!DOCTYPE html> <html> <head> <title>Products</title> <style> .heading { text-align: center; font-size: 40px; } #menu { text-align:...

    <!DOCTYPE html> <html> <head> <title>Products</title> <style> .heading { text-align: center; font-size: 40px; } #menu { text-align: center; } #menu li { display: inline; font-size: 26px; margin-left: 20px; } .container{ overflow: hidden; margin: 30px; } img { float: left; width: 40vh; height: 40vh; margin-left: 10%; } table { float: right; margin-right: 10%; } table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { font-size: 26px; padding: 10px; text-align: left; } a { color: black; } a:visted {...

  • As part of this assignment we are using the base Gallery HTML and writing JavaScript code...

    As part of this assignment we are using the base Gallery HTML and writing JavaScript code that will: 1) preload the images provided to us, 2) Create rollover functionality for each of the thumbnails in your image gallery 3) Use appropriate images found in the images folder. 4) Write developer comments to describe the variables being declared and explain the functions and logical blocks of JavaScript code pertaining to the gallery. I know it has to be an external JS...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT