Jump to content

Web page


Guest Mitch2052

Recommended Posts

Guest Mitch2052

HI ,I am trying to write a web page. My page has a few tables on it . I ran it through a htlm tidy to check it and it said I could not use <br> in a table. Does this matter? Thanks

Link to comment
Share on other sites

HI ,I am trying to write a web page.  My page has a few tables on it . I ran it through a htlm tidy to check it and it said I could not use <br> in a table. Does this matter? Thanks

You can use them in a table but the tag should now look like <br /> and it must be within the <td>and</td>I have attached the code which i ran through the W3 Validator with a strict DTD and was told This Page Is Valid XHTML 1.0 Strict! So you can definently use <br /> within a table.
<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">     <head><title></title></head><body><p>Hello World from an XHTML File.</p><table><tr><td><br /><br /><br /><br />1</td></tr></table></body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...