Trouble putting text inside table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdm2883
    New Member
    • Sep 2007
    • 53

    #1

    Trouble putting text inside table

    i am having trouble put my text by side the links,


    [ ] I want my text here
    [ ]
    [ Table ]
    [ ]
    [ ]

    But my text is here!



    How would i write the code to put my text beside the table?
    I just bought a book a few weeks back tryin to learn on my own if anyone could please help me out!

    Thanks
    David
  • cdm2883
    New Member
    • Sep 2007
    • 53

    #2
    here is my code!
    [html]
    <html>

    <table border="3" bordercolor="re d" style="float: left">

    <td width="120" rowspan="5" valign="top" border="3" bordercolor="re d">

    <h3 style="font-family: sans-serif"><a href="homepage" >Home Page</a></h3>
    <h3 style="margin-bottom: 0; font-family: sans-serif">Links</h3>
    <p style="margin: 25 0 100 15; font-size 0.8em">
    <font size="4">
    <a href="#welldril ling">Well Drilling</a><br />
    <a href="#">Pump and water<br> system install</a><br />
    <a href="#">Rock Drilling</a><br />
    </p>
    </td>
    </table>



    <head>

    <img src="drill.jpg" width="350" height="350" align="right"/>

    </head>


    <body background= "J-water.jpg"; text="000000">


    <p style="text-align: top">
    <font size="5">

    Here is just some sample text to see if
    it will work the way i want it to.</p> </p> I hope this works because i am gettin
    tired of working on this.</p></p> I thought this would be easy.</p>

    </font>
    </p>

    </body>
    </html>
    [/html]

    Thanks
    David
    Last edited by drhowarddrfine; Jan 23 '08, 04:31 AM. Reason: Please use code tags

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      Here is a properly marked up web page:
      [html]
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
      "http://www.w3.org/TR/html4/strict.dtd">
      <html>
      <head>
      <title>Untitled </title>
      <style type="text/css">

      </style>
      </head>

      <body>

      <!-- Your markup goes here -->

      </body>
      </html>
      [/html]

      Also, you are trying to use HTML but are using XHTML end tags, "/>". Remove the slash.

      Comment

      • just a feeling
        New Member
        • Aug 2007
        • 86

        #4
        Hi David,

        Many things wanna say after reading ur code :-

        1- the <body> tag contains all the info that appears inside a browser window - headlines, text, tables and so on. Ur table doesn't appear becuase it's not defined inside the body tag.

        2- <Font> tags are deprecated by W3C ( The institute that defines the web standards ). Try to use Css instead.

        3- It's better to create a Css file and put whatever formatting u want inside it and then link it to ur page. This will arrange ur code and help u fix later problems.

        4- As u are learning, read about the guidlines to design a properly marked up web page that works fine in most browsers and meets the standards. E.g. a missing Document Type Declaration (DDT) in ur html document causes Internet Explorer to go into "quirks" mode which affects your presentation.

        5- Try to validate any web page u design by the W3C validator
        W3C HTML validator

        Anyway, if u use the properly marked up web page drhowarddrfine suggests in the previous reply and place ur code inside the <body> tag, the text will appear beside the table as u want.

        Best of luck,
        Rawan.

        Comment

        Working...