Jump to content

Recommended Posts

        <link href="style.css" rel="stylesheet" type="text/css">

</head>
<body>
<center>
      <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="720"  height="500" >

	  <th width="720" height="107" valign="top">
         <img border="0" src="images/top_logo.png"><br>
         |<a href="index.php">Home</a> | <a href="reg.php">Register</a> | <a href="rules.php">Rules</a> | <a href="pass.php">Password</a> | <a href="story.php">Story line</a>| </th>


<tr>

    <th width="403" height="450" bgcolor="#111111" scope="row">
<form method="post">
<p align="center">
<span class="style2">Enter Email:</span> <br>
  <input type="text" name="email" width="120" height="15">
  <br>
  <span class="style2">Enter Password:</span><br>
  <input type="password" name="password" width="120" height="15">
  <br>
  <br>
  <input name="Submit" type="submit" value="Submit">
    </p>
    <font color="white">
<p align="center"><?php if(!empty($msg)) {echo $msg;}?></p>
<p align="center">
  </div>
  </font>
  <br />
<br />
<br />
      <strong>Messages:</strong>

    <div align="center"><?php include "game_news.php" ?></div>
</td></th>
  </tr>


</table>
  


</center>

</body>
</html>

 

Thats just a Table that stuffs up

Alright, i can tell that you are a little bit new to this so i have some tips for you

 

1). Indent your code at every opening tag.

2). everything in a table must be within <tr> tags

3). <center> has been deprecated, user <div align=center>

4). always make your code XHTML compliant

 

<div align=center>

      <table border=1 cellpadding=0 cellspacing=0 style="border-collapse: collapse; border-color: #111111; width: 720; height: 500;">

<tr>

<td width="720" height="107" valign="top">

<img border="0" src="images/top_logo.png">

<br />

        | <a href="index.php">Home</a>

| <a href="reg.php">Register</a>

| <a href="rules.php">Rules</a>

| <a href="pass.php">Password</a>

| <a href="story.php">Story line</a>|

</td>

</tr>

<tr>

<td width="403" height="450" bgcolor="#111111" scope="row">

<form method="post">

<div align="center">

<span class="style2">Enter Email:</span>

<br />

<input type="text" name="email" width="120" height="15" />

<br />

<span class="style2">Enter Password:</span>

<br />

<input type="password" name="password" width="120" height="15" />

<br />

<br />

<input name="Submit" type="submit" value="Submit" />

</div>

</form>

<span style="color: #ffffff; text-align: center;"><?php if(isset($msg)) { echo $msg; }?></span>

  <br />

<br />

<br />

<strong>Messages:</strong>

<div align="center"><?php include "game_news.php" ?></div>

</td>

</tr>

</table>

</div>

4). always make your code XHTML compliant

 

There is no reason to do do this, or to use XHTML.

 

XHTML is useful because it allows easy integration of XML, which is very useful and the future of database applications in web sites.  Secondly, it is much cleaner and the search engines prefer the code to content ratio.  I recently redesigned a website in xhtml/css and saw it jump to the top ten in Google with in a month. 

4). always make your code XHTML compliant

 

There is no reason to do do this, or to use XHTML.

 

Yes and no. XHTML is not intented for use with just html/css and no xhtml. If you validate xhtml w/ out xml there is a warning that pops out.

 

As mentioned before, there is nothing wrong in using it as it makes future changes easier. XHHTML is often preferred by professionals - so why not jump on the band wagon?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.