This is a discussion on "Attempt to validate" within the Web Page Design section. This forum, and the thread "Attempt to validate are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Attempt to validate
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Attempt to validate
Ok I have been trying to validate this web template for a while now, and its my first attempt at it. First I got it down to about 2 errors and then when it came to adding a doc type at added about 3million. What doc type do i need?
|
|
|
|
|||
|
Re: Attempt to validate
For a start, you are missing the opening <html> tag! This belongs after your Doctype.
You'd have a better chance of validating if you moved to HTML 4.01. XHTML requires all tags close, and you are not doing this at present. My recommendation:
|
|
|||
|
Re: Attempt to validate
woops. must have accidently removed the html tag when messing around. So whats the first bit of code i need to add (the doc type code)
|
|
|||
|
Re: Attempt to validate
I have updated the file. Can you please tell me how to sort the last 2 errors please
|
|
|||
|
Re: Attempt to validate
Search the forums and you'll find plenty of references. Google is also your friend.
But as a starter, try this: http://www.webforumz.com/vbarticles....e&articleid=29 It's a good article on the whys and wherefores of Doctype declarations. Hope that helps. |
|
|||
|
Re: Attempt to validate
Quote:
Cheers |
|
|||
|
Re: Attempt to validate
Quote:
Last edited by Phixon; Jul 24th, 2007 at 12:42. |
|
|||
|
Re: Attempt to validate
I'm not much good with tables, but...
Try shifting the "height" and "background" attributes into CSS properties. You have:
Last edited by MikeHopley; Jul 24th, 2007 at 12:48. |
|
|||
|
Re: Attempt to validate
Quote:
Error #2. You've set an image (rep_1.jpg) as a background in a TD, then tried to style it with background-repeat without declaring the image in the style. And you don't want it referenced twice. Try style="background: url(images/rep_1.jpg) repeat-x top left" I haven't tested it, but see how it goes. Last edited by matelot; Jul 24th, 2007 at 12:51. |
|
|||
|
Re: Attempt to validate
Every time i remove a height attribute it finds another. Do I just remove all on the page?
|
|
|||
|
Re: Attempt to validate
Quote:
All the <table>, <tr>, and <td> elements, however, need fixing. Either remove the height, or shift it to style="height:100%;" as before. |
|
|||
|
Re: Attempt to validate
Quote:
You'll soon get the hang of it: we've all been through it. |
![]() |
| Tags |
| validator |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My first attempt at web design! | Jingle | Starting Out | 6 | Apr 21st, 2008 15:14 |
| Logo attempt | unitedcraig | Graphics and 3D | 25 | Jan 18th, 2008 22:23 |
| First preloader attempt | Rick | Flash & Multimedia Forum | 5 | Sep 28th, 2007 19:07 |
| Attempt at a logo | pa007 | Graphics and 3D | 7 | Mar 2nd, 2007 12:10 |
| 1st attempt at lip syncing | daygon | Flash & Multimedia Forum | 2 | May 10th, 2006 03:27 |