Forum Moderators: open

Message Too Old, No Replies

td background ....

         

tonyriley

11:28 am on Feb 2, 2004 (gmt 0)

10+ Year Member



Hey all ...

Would just like to ask what I should use in replcement of the background attribute for td which is not vlaid xhtml.

Is the best alternative to use css?

Thanks.

BlobFisk

2:15 pm on Feb 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, CSS is what you need.

tonyriley

2:19 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



Thanks for the reply :)

On the topic of validation, my site validates now in xhtml but I have one problem I cant see around.

I use php include to bring in the different pages upon click with links in the format: "index.php?page=filename".

But when viewing the source, it does act as two different pages in a row, including the doctypes which make the site invalid because there is to doctype tags, two head tags etc ...

Anyway around this?

Thanks

BlobFisk

2:22 pm on Feb 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are going to need to look at your development design model there. If you are including a document into a document, the included file should not have a doctype or <html>/<head>/<body> etc. tags.

tonyriley

2:27 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



Is this the best thing to do in my case?

Im aware urls cannot be posted so I'd appreciate you visiting my profile and checking the site structure out. As would following your advice, and removing the head tags would be search engine friendly and still get spidered?

BlobFisk

3:31 pm on Feb 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The thing to remember with SSIs and validation is that it is the rendered code that should validate and it is the rendered code that should be SE friendly.

I've seen it countless times before on projects where the rendered code will have 2 or 3 sets of body tags etc. because different developers created the pages and all decided to stick in html formatting.

What needs to be done at the beginning of any project is a thorough Information Architecture, which includes include pages. Taking this, a design model will specify what presentation layer code should be in which page (or file) and then duplicate tags are avoided.

You will need to look at your rendered pages (View Source is your friend here!) and then look at the source files and make the necessary corrections.

HTH

AFAIK profile URL's don't show up until after 80 or 100 posts!

tonyriley

10:18 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



Thanks for the reply, although I did have trouble understanding it, lol.

For my site, I have now removed the head, html and body tags leaving only the content which seems to work great .... as all link s are linked as index.php?page=filename.

Surely google will index the url in that format and not the page (domain.com/filename.php) which would not be good as it would return a page with black text and no formatting ....