Problem with image and table

+2 Adi Adams · February 8, 2015

The following is the code I have written:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<title> Tut:1 </title>
<h1>Basic Exercise <hr></h1><p> <h2> Just time passing.</h2>
<table border=1 width="100%" cellpadding="10" cellspacing="5" >
<th colspan="2"><h3>Programming</h3></th>
<tr><td>XHTML</td><td>HTML 5</td></tr>
<p>This is the revision of old html or xhtml.<br> It is just for time pass </p>

<a href=""> Click This link to go to <strong>google</strong>. </a>
<a href="tut2.html"><br><h3>Click here to go to: Second Tut .</h3> </a>
<a href="mailto:" title="Useless">Email.</a>
<a href=""><img src="Networking Poster.jpg" height="150"></a></img>
 Here the table is supposed to be displayed before the image, but the reverse happens! Can anyone explain me why?

Post a Reply


Oldest  Newest  Rating
0 danial saufi · February 8, 2015
first wheres the img tag?
second it is advisable to use html5 since many browser is using it now
third use div with border rather than table
0 Adi Adams · February 8, 2015
<img src="Networking Poster.jpg" height="150"></a></img>
This is the image tag I have used,
and I'm just learning xhtml and css , so this is just an amateur webpage, and thirdly I just want to know why the image comes before the table in this case, as theoretically it should not happen! 
  • 1

HTML / CSS / Web Design


Discuss, share, ask, learn and teach HTML5 and CSS3.