| View previous topic :: View next topic |
| Author |
Message |
Swarup Saha
Joined: 05 Mar 2008 Posts: 3 Location: Kolkata
|
Posted: Wed Mar 05, 2008 10:33 pm Post subject: Can i use <hr> tag immediate after <table >tag ? |
|
|
I tried the following..it compiles ok...But is that syntactically correct?
<table align="center" width='60%' cellspacing="0" cellpadding="0" >
<hr>
<tr>
<td width='10%' bgcolor='#007cc3'>
<img src="./login_logo.gif">
</td>
<td width='40%' bgcolor='#007cc3'><br>
<H3 class="Title">Reset Merchant Password<h3>
</td>
<td align='right' width='10%' bgcolor='#007cc3'>
<br><br><br><br>
<form name="logout_form" method="post" action="#"><input type="image" src="./Log_Out.gif" alt="Log Out" name="logout" onClick="return signout();"></form>
</td>
</tr>
</table> |
|
| Back to top |
|
 |
|
|
dflynn 500+ Club

Joined: 03 Oct 2007 Posts: 588 Location: Guelph, Canada
|
Posted: Thu Mar 06, 2008 1:54 am Post subject: Re: Can i use <hr> tag immediate after <table >tag ? |
|
|
I don't understand why you would put it there? it doesn't do anything and isn't being displayed.
HTML is forgiving in the sense that you can mix up tags and it doesnt mess up the output. but that <hr> tag doesn't seem to add anything to the table so why not take it out. |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
Posted: Thu Mar 06, 2008 2:32 am Post subject: Re: Can i use <hr> tag immediate after <table >tag ? |
|
|
No, not really syntactically correct
Always remember that the basic format of a table is
| Code: |
<table>
<tr>
<td></td>
</tr>
</table>
|
If you want <hr> tag to be placed above the table, then you can use it above the <table> tag, or inside a <td> tag. Anywhere you want.
...and ideally, layout using table is not good. If you can replace it with divs...then much better.
Hope make some sense  |
|
| Back to top |
|
 |
Swarup Saha
Joined: 05 Mar 2008 Posts: 3 Location: Kolkata
|
Posted: Thu Mar 06, 2008 4:13 pm Post subject: Re: Can i use <hr> tag immediate after <table >tag ? |
|
|
Thanks Rangana...  |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
Posted: Fri Mar 07, 2008 1:15 am Post subject: Re: Can i use <hr> tag immediate after <table >tag ? |
|
|
NO problem, You're welcome  |
|
| Back to top |
|
 |
|