Help - Search - Members - Calendar
Full Version: Help with html, space in between buttons and banner
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
stc23
How do i get rid of the space?


All of the pages have the same code, but for some reason some pages have a space and other pages dont.



This is the code:

CODE
<html>
<head>
<title>About Us</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="504" height="562" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  </tr>
  <div align="center">
  <tr>
    <body background="Hands.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <td width="605" height="233" bordercolor="#FF6600">
    <img src="pic.gif" alt="Community of Hope" width="504" height="233" border="0" align="top"></td>
  </tr>
  <tr>
    <td height="310" bordercolor="#FF6600" bgcolor="#FFFFFF">
      <blockquote>
        
    <center>    
<a href="coh.html"><img src="home.png"></a>
<a href="aboutus.html"><img src="aboutus.png" /></a>
<a href="findaboxnearyou.html"><img src="newsandevents.png" /></a>
<a href="whattodonate.html"><img src="whattodonate.png" /></a>
<a href="photogallery.html"><img src="photogallery.png" /></a>
<a href="contactus.html"><img src="contactus.png" /></a>
</center>
<p><font color="#FF6600" size="+2"><strong>About Us</strong>
            </font></p>
          <p><A href="aboutcommunityofhope.html">About Community of Hope (COHSI)</A></p>
          <p><A href="ourpurpose.html">Our Purpose</a></p>
          <p><A href="missionstatement.html">Mission Statement</a></p>
          <p><A href="vision.html">Vision</a></p>

      
      </blockquote>
  </tr>

  <tr>
    <td height="19" bordercolor="#FF6600" bgcolor="#FF6600">
<div align="center"><font color="#FFFFFF" size="-2"></font></div></td>
  </tr>
</table>


<map name="Map">
  <area shape="rect" coords="149,217,240,229" href="#">
  <area shape="rect" coords="246,218,315,228" href="#">

  <area shape="rect" coords="36,218,143,228" href="#">
</map>
</body>
</html>
Darin McGrew
I recommend that you start by fixing the markup errors reported by our online validator. See the URL at the bottom of the page.

Then post the URL of a sample document that demonstrates the problem.
stc23
this is what i am getting

CODE
    * Line 1, character 1:

      <html>
      ^

      Error: missing document type declaration; assuming HTML 4.01 Transitional
    * Line 8, character 27:

      <table width="504" height="562" border="0" align="center" ce ...
                                ^

      Error: there is no attribute HEIGHT for this element (in this HTML version)
    * Line 10, character 7:

        </tr>
            ^

      Error: missing a required sub-element of TR
    * Line 11, character 22:

        <div align="center">
                           ^

      Error: element DIV not allowed here; check which elements this element may be contained within
    * Line 12, character 6:

        <tr>
           ^

      Error: element TR not allowed here; check which elements this element may be contained within
    * Line 13, character 45:

      ... round="Hands.gif" leftmargin="0" topmargin="0" marginwidth=" ...
                                       ^

      Error: there is no attribute LEFTMARGIN for this element (in this HTML version)
    * Line 13, character 59:

      ... if" leftmargin="0" topmargin="0" marginwidth="0" marginheigh ...
                                       ^

      Error: there is no attribute TOPMARGIN for this element (in this HTML version)
    * Line 13, character 75:

      ... 0" topmargin="0" marginwidth="0" marginheight="0">
                                       ^

      Error: there is no attribute MARGINWIDTH for this element (in this HTML version)
    * Line 13, character 92:

      ... marginwidth="0" marginheight="0">
                                       ^

      Error: there is no attribute MARGINHEIGHT for this element (in this HTML version)
    * Line 13, character 95:

      ... ginwidth="0" marginheight="0">
                                       ^

      Error: element BODY not allowed here; check which elements this element may be contained within
    * Line 14, character 43:

      ... 05" height="233" bordercolor="#FF6600">
                                       ^

      Error: there is no attribute BORDERCOLOR for this element (in this HTML version)
    * Line 17, character 6:

        <tr>
           ^

      Error: element TR not allowed here; check which elements this element may be contained within
    * Line 22, character 39:

      ... coh.html"><img src="home.png"></a>
                                       ^

      Error: required attribute ALT not specified
    * Line 23, character 47:

      ... html"><img src="aboutus.png" /></a>
                                       ^

      Warning: net-enabling start-tag; possibly missing required quotes around an attribute value
    * Line 23, character 47:

      ... html"><img src="aboutus.png" /></a>
                                       ^

      Error: required attribute ALT not specified
    * Line 24, character 61:

      ... <img src="newsandevents.png" /></a>
                                       ^

      Warning: net-enabling start-tag; possibly missing required quotes around an attribute value
    * Line 24, character 61:

      ... <img src="newsandevents.png" /></a>
                                       ^

      Error: required attribute ALT not specified
    * Line 25, character 57:

      ... ><img src="whattodonate.png" /></a>
                                       ^

      Warning: net-enabling start-tag; possibly missing required quotes around an attribute value
    * Line 25, character 57:

      ... ><img src="whattodonate.png" /></a>
                                       ^

      Error: required attribute ALT not specified
    * Line 26, character 57:

      ... ><img src="photogallery.png" /></a>
                                       ^

      Warning: net-enabling start-tag; possibly missing required quotes around an attribute value
    * Line 26, character 57:

      ... ><img src="photogallery.png" /></a>
                                       ^

      Error: required attribute ALT not specified
    * Line 27, character 51:

      ... ml"><img src="contactus.png" /></a>
                                       ^

      Warning: net-enabling start-tag; possibly missing required quotes around an attribute value
    * Line 27, character 51:

      ... ml"><img src="contactus.png" /></a>
                                       ^

      Error: required attribute ALT not specified
    * Line 40, character 6:

        <tr>
           ^

      Error: element TR not allowed here; check which elements this element may be contained within
    * Line 44, character 8:

      </table>
             ^

      Error: end tag for DIV omitted; possible causes include a missing end tag, improper nesting of elements, or use of an element where it is not allowed
    * Line 11, character 3:

        <div align="center">
        ^

      start tag was here
    * Line 48, character 55:

      ... ds="149,217,240,229" href="#">
                                       ^

      Error: required attribute ALT not specified
    * Line 49, character 55:

      ... ds="246,218,315,228" href="#">
                                       ^

      Error: required attribute ALT not specified
    * Line 51, character 54:

      ... rds="36,218,143,228" href="#">
                                       ^

      Error: required attribute ALT not specified
Darin McGrew
CODE
Error: missing document type declaration; assuming HTML 4.01 Transitional
See the FAQ entry What is a DOCTYPE? Which one do I use?

CODE
Error: there is no attribute [...] for this element (in this HTML version)
You're using non-standard presentational markup. Use CSS instead.

CODE
Error: missing a required sub-element of TR
A tr element must contain one or more th or td elements. Just delete the empty tr element.

CODE
Error: element DIV not allowed here; check which elements this element may be contained within
Error: element TR not allowed here; check which elements this element may be contained within
You can't have loose content in a table element. It can contain tr elements, and those can contain th and/or td elements, but all content must be inside a th or td element.

(Another approach is to put the entire table inside the div.)

CODE


[code]Error: element BODY not allowed here; check which elements this element may be contained within
You can have only one body element. Just delete the second one.

CODE
Error: required attribute ALT not specified
It's missing, and it's especially critical for navigation-link images. See Use of ALT texts in IMGs.

CODE
Warning: net-enabling start-tag; possibly missing required quotes around an attribute value
You're mixing HTML and XHTML syntax. Don't use
CODE
<img src=... alt=... />
syntax in an HTML document. Just use
CODE
<img src=... alt=...>
instead.

CODE
Error: end tag for DIV omitted; possible causes include a missing end tag, improper nesting of elements, or use of an element where it is not allowed
You don't have a closing </div> tag.
stc23
im new to html, so can you explain it a little more?
Darin McGrew
Please see the FAQ entry Where can I learn about HTML?
Andrews
sorry dear i have no idea about this coding...........
ur coding is easy but i dont think so that their should be any problem or error occur ..
Frederiek
Aren't you posting this in the wrong thread, Pandy?
pandy
I have no idea what you are talking about. biggrin.gif

(Thanks! happy.gif )
Frederiek
I was joking. happy.gif And I said thanks. tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.