473,395 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error with Markup validation

Hello,

I'm getting 2 errors when I enter my html code in w3c markup validation.

These are the errors:

# Line 89, Column 17: document type does not allow element "DIV" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag

<div class="img"><span class="c5"><a href="http://i9.photobucket.com/albums/a87…

# Error Line 90, Column 22: document type does not allow element "DIV" here; missing one of "OBJECT", "MAP", "BUTTON" start-tag

<div class="desc c12"><span class="c6"><strong>CV (klik erop om te vergroten)</…

---------

This is my html code (whole file):

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <html>
  3. <head>
  4. <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org">
  5. <title>Portfolio Niek Hoekzema</title>
  6. <meta http-equiv="X-UA-Compatible" content="IE=8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=7">
  8. <style type="text/css">
  9. a { text-decoration:none; }
  10. </style>
  11.  
  12. <style type="text/css">
  13. body{background:white  }
  14. </style>
  15.  
  16. <style type="text/css">
  17.  
  18. a:active, a:link, a:visited { color: black }
  19. a:hover { color: black }
  20.  
  21. </style>
  22.  
  23. <style type="text/css">
  24.  div.c14 {text-align: left}
  25.  div.c13 {text-align: center}
  26.  div.c12 {text-align: justify}
  27.  h2.c11 {background-color: white; color: black; font-family: arial; margin-left: auto; margin-right: auto; width: 450px}
  28.  span.c10 {color: black; font-family: arial; font-size: 70%}
  29.  span.c9 {color: black; font-family: arial; font-size: 120%}
  30.  div.c8 {position: absolute;}
  31.  p.c7 {width: 400px; background-color: white; margin-left: auto; margin-right: auto;}
  32.  span.c6 {color: black; font-family: arial; font-size: 80%}
  33.  span.c5 {color: black; font-family: arial; font-size: 150%}
  34.  h1.c4 {color: black; font-family: arial; font-size: 150%}
  35.  span.c3 {color: black; font-family: arial; font-size: 200%}
  36.  table.c2 {background-color: black}
  37.  div.c1  {
  38. color : black;
  39. font-family : arial;
  40. font-size : 150%;
  41. left : 674px;
  42. position : absolute;
  43. text-align : left;
  44. top : 34px;
  45. z-index : 99;
  46. </style>
  47. </head>
  48. <body>
  49. <div class="c1"><img src="http://i9.photobucket.com/albums/a87/hexucrates/tengu.gif" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
  50. <table class="c2" width="100%" border="0" cellspacing="0" cellpadding="0">
  51. <tr>
  52. <td align="center"></td>
  53. </tr>
  54. </table>
  55. <div class="c14" id="wrap">
  56. <div class="header">
  57. <div class="title">
  58. <h1 class="c4"><a href="http://www.soma-natesa.nl/niek/portfoliohome2.html"><span class="c3">Portfolio</span></a></h1>
  59. <span class="c5">Niek Hoekzema</span></div>
  60. <div class="nav">
  61. <ul>
  62. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfoliohome2.html"><span class="c6"><strong>Home</strong></span></a></span></li>
  63. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfoliobio2.html"><span class="c6">Biografie en CV</span></a></span></li>
  64. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfoliohobbys2.html"><span class="c6">Mijn Hobby's</span></a></span></li>
  65. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfolio2.html"><span class="c6">Portfolio</span></a></span></li>
  66. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfoliomotivatie2.html"><span class="c6">Motivatie</span></a></span></li>
  67. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfoliolinks2.html"><span class="c6">Links</span></a></span></li>
  68. <li><span class="c5"><a href="http://www.soma-natesa.nl/niek/portfoliositemap2.html"><span class="c6">Sitemap</span></a></span></li>
  69. </ul>
  70. </div>
  71. <div class="clear"></div>
  72. </div>
  73. <div class="pagewrapper innerpagewrapper">
  74. <div class="page content c13">
  75. <p class="c7"></p>
  76. <div id="home" class="c8"></div>
  77. <span class="c5"><span class="c9"><strong>BIOGRAFIE &amp; CV</strong></span> <span class="c6"><br></span></span>
  78. <div class="c12"><span class="c5"><br>
  79. <br>
  80. </span>
  81.   <span class="c6"><strong>Biografie</strong><br>
  82. <br>
  83. Mijn naam is Niek Hoekzema, ik ben 22 jaar jong en ik ben momenteel tweedejaarsstudent IDM (Informatiedienstverlening en -management) aan de Hanzehogeschool in Groningen.<br>
  84. <br>
  85. De reden waarom ik heb gekozen voor deze opleiding is omdat ik het leuk vind om nieuwe informatie binnen te krijgen en deze op te zoeken. Ik ben vooral geïnteresseerd in trendontwikkelingen op het gebied van internet, ik spendeer dan ook veel tijd aan het internet. Ik ben er nog niet helemaal zeker van of ik uiteindelijk een IDM-er wil worden, dit omdat ik rechten ook heel interessant vind.<br>
  86. <br>
  87. Voor meer informatie over mij, zie mijn CV hieronder.<br>
  88. <div class="img"><span class="c5"><a href="http://i9.photobucket.com/albums/a87/hexucrates/cv.png"><img src="http://i9.photobucket.com/albums/a87/hexucrates/cvklein.png" alt="CV"></a></span></div>
  89. <div class="desc c12"><span class="c6"><strong>CV (klik erop om te vergroten)</strong></span>
  90. </div></span>
  91. <span class="c5"><br></span></div>
  92. <div class="c13">
  93. <p class="c7"></p>
  94. <div class="c12">
  95. <div style ="background-color: white;text-align:center;"><span class="c5"><br>
  96.         <br>
  97.     </span>
  98.       <span class="c6"><em>-Alle rechten voorbehouden. Deze website wordt het beste bekeken met Internet Explorer 8 en een beeldresolutie van 1280x768. Copyright 2010-</em></span><span class="c10"><em><br>
  99.       </em></span></div>
  100. <div style ="background-color: white;text-align:center;">
  101. <p>
  102. <a href="http://jigsaw.w3.org/css-validator/check/referer">
  103.     <img style="border:0;width:88px;height:31px"
  104.         src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
  105.         alt="Valide CSS!" />
  106. </a>
  107. </p>
  108.  
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </body>
  116. </html>
---------

When I try to clean the file my whole layout is [**] up, so any help would be very much appreciated! I'm in a bit of a rush, it's for a school project. Thanks :)
Jun 23 '10 #1

✓ answered by Dormilich

you use a <div> (a block element) (lines 89/90) inside a <span> (an inline element) (line 82)

3 2705
I'm sorry if it's a lot of work, I usually don't validate my files but it's necessary now :/
Jun 23 '10 #2
Dormilich
8,658 Expert Mod 8TB
you use a <div> (a block element) (lines 89/90) inside a <span> (an inline element) (line 82)
Jun 23 '10 #3
Thanks, I switched some tags around and it works! Case closed ;)
Jun 23 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roedy Green | last post by:
I have found lots of tools to; 1. validate CSS 2. validate HTML 3. check HTML links But I have so far found nothing to check cross check the style used in markup with the style sheet to make...
16
by: J. C. Denton | last post by:
I just manually validated alexa's global top 100 sites and find only 2 sites that pass validation. They are http://www.microsoft.com/ http://www.wikipedia.org/ All others should go w3c...
8
by: Tony Williams | last post by:
I have a form where the user inputs a series of figures into a number of controls. After they've input the total (they don't want the program to create the total) there is a check to make sure the...
6
by: Chuck | last post by:
A97. A database has a table: tblA which has a single text field, B. It is a primary field, indexed and no duplicates. It is used as a lookup for table tblC. A form based on tblA is used to add...
0
by: THY | last post by:
Hi, How do we raise an validation fail of a validation inside a sub ? the validation is valid, but I just want to raise the validation fail ... thanks
2
by: Shathish | last post by:
Ha i have this problem with the validation control I have a asp.net page which is used to add and edit projects when i'm adding a project the validation controls are working fin but if i select a...
1
by: bharati webpro | last post by:
I've tried the W3C MarkUp Validation Service for the following web page: www.chempro.in/index.htm The validation shows 143 errors. Can anyone help me to rectify thes errors please. Thanks.
16
by: Tantale | last post by:
I used this serviec to check my webpage http://www.jmrw.com/Abroad/Barcelone/index.htm Made with Dreamweaver 8. The result is 206 errors, most of them "end tag omitted, but OMITTAG NO was...
2
by: Luke Sayaw | last post by:
Hi, Does anyone have an idea of how to set focus to the first control after summary validation occurs. After clicking on the summary validation message box, the focus should be set to the first...
2
by: Luke Sayaw | last post by:
Hi, Does anyone have an idea of how to set focus to the first control after summary validation occurs. After clicking on the summary validation message box, the focus should be set to the first...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.