By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,203 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

Trouble putting text inside table

P: 53
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!

Jan 23 '08 #1
Share this Question
Share on Google+
3 Replies

P: 53
here is my code!

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

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

<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="#welldrilling">Well Drilling</a><br />
<a href="#">Pump and water<br> system install</a><br />
<a href="#">Rock Drilling</a><br />


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


<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>



Jan 23 '08 #2

Expert 5K+
P: 7,435
Here is a properly marked up web page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<style type="text/css">



<!-- Your markup goes here -->


Also, you are trying to use HTML but are using XHTML end tags, "/>". Remove the slash.
Jan 23 '08 #3

just a feeling
P: 87
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,
Jan 23 '08 #4

Post your reply

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