Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Can i use <hr> tag immediate after <table >tag ?



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
Swarup Saha



Joined: 05 Mar 2008
Posts: 3
Location: Kolkata

PostPosted: Wed Mar 05, 2008 10:33 pm    Post subject: Can i use <hr> tag immediate after <table >tag ? Reply with quote

I tried the following..it compiles ok...But is that syntactically correct? Rolling Eyes
<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
View user's profile Send private message Yahoo Messenger
dflynn
500+ Club


Joined: 03 Oct 2007
Posts: 588
Location: Guelph, Canada

PostPosted: Thu Mar 06, 2008 1:54 am    Post subject: Re: Can i use <hr> tag immediate after <table >tag ? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 629
Location: Cebu City Philippines

PostPosted: Thu Mar 06, 2008 2:32 am    Post subject: Re: Can i use <hr> tag immediate after <table >tag ? Reply with quote

No, not really syntactically correct Rolling Eyes

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 Very Happy
Back to top
View user's profile Send private message Yahoo Messenger
Swarup Saha



Joined: 05 Mar 2008
Posts: 3
Location: Kolkata

PostPosted: Thu Mar 06, 2008 4:13 pm    Post subject: Re: Can i use <hr> tag immediate after <table >tag ? Reply with quote

Thanks Rangana... Very Happy
Back to top
View user's profile Send private message Yahoo Messenger
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 629
Location: Cebu City Philippines

PostPosted: Fri Mar 07, 2008 1:15 am    Post subject: Re: Can i use <hr> tag immediate after <table >tag ? Reply with quote

NO problem, You're welcome Wink
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap