PDA

View Full Version : Mark Up Validation - help!


annethedonn
14th April 2005, 14:09
Hi

Is anyone able to help me with the following as I don't really understand html and what they're actually saying so I need the idiot's guide to what I need to do - if you like I can fax the page to you as it'll be easy to desypher. I'm trying to validate my webpage on W3C's website.

Below are the results of attempting to parse this document with an SGML parser:

Line 46, column 67: document type does not allow element "a" here; assuming missing "li" start-tag

...p.co.uk/shop/3912/1/?mid=40&amp;url="><img src="http://www.partnershop.co.uk/



Line 46, column 148: required attribute "alt" not specified

...affiliation/1/3/120x600_static.jpg" /></a>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.



Line 46, column 160: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

...1/3/120x600_static.jpg" /></a>

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "

" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").



Line 47, column 11: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

<a href="http://training.freelanceoffice.skillspride.com"><img src="



Line 48, column 13: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag





Line 49, column 7: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

<a href="http://www.paypal.com">images/paypal_logo.gif

You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".



Line 46, column 0: start tag was here

<a href="http://www.partnershop.co.uk/shop/3912/1/?mid=40&amp;url="><img src="ht

Source Listing
Below is the source input I used for this validation:

1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2: <html xmlns="http://www.w3.org/1999/xhtml">
3: <head>
4: <title>Freelance Office Services &amp; Virtual Assistance</title>
5: <meta name="description" content="Virtual Office, office services, business services, training courses, web hosting, domain, virtual office, freelance, employment, administration, secretarial services, support, scanning, photocopying, database, typing services, event coordination, book-keeping" />
6: <meta name="keywords" content="business services, office services, web hosting, training courses, virtual office, Freelance Services, Services, Office, Virtual" />
7: <meta name="robots" content="all" />
8: <meta name="MSSmartTagsPreventParsing" content="true" />
9: <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
10: <link href="style.css" rel="stylesheet" type="text/css" />
11: <style type="text/css">
12: <!--
13: .style1 {color: #000000}
14: -->
15: </style>
16: </head>
17: <body>
18: <p class="hide">Skip Navigation (#content)</p>
19:
20: <div id="container">
21:
22: <div id="logo">
23: <h1>Freelance Office Services &amp; Virtual Assistance Limited</h1>
24: </div>
25:
26:
27: <div id="header">
28:
29: <div id="sidebar">
30: <ul>
31: <span class="style1">Who</span> <span class="style1">Are</span> <span class="style1">We?</span> (index.html)
32: <span class="style1">Our</span> <span class="style1">Services</span> (services.html)
33: <span class="style1">Our</span> <span class="style1">Customers</span> (customers.html)
34: <span class="style1">Private</span> <span class="style1">Area</span> (documents.html)
35: <span class="style1">Contact</span> <span class="style1">Us</span> (enquiries@freelanceofficeservices.co.uk)
36: [/list]
37: </div>
38:
39: images/flos.jpg (http://www.freelanceofficeservices.co.uk/services.html)
40: </div>
41:
42:
43: <div id="links">
44: <ul>
45:
46: http://www.partnershop.co.uk/img/affiliation/1/3/120x600_static.jpg (http://www.partnershop.co.uk/shop/3912/1/?mid=40&amp;url=)
47: images/skillspride_logo.jpg (http://training.freelanceoffice.skillspride.com)
48:
49: images/paypal_logo.gif (http://www.paypal.com)
50: [/list]
51: </div>
52:
53:
54: <div id="content">
55: <h2>Freelance Office Services &amp; Virtual Assistance</h2>
56:

Our Business Services company is young and diverse and because we offer a bespoke Virtual Assistance &amp; On Site Services program we adapt to the needs of our customers, both inside &amp; outside of the UK. We are also resellers for Lycos web hosting services &amp; Skillspride training courses.</p>
57:

How does a Virtual Assistant benefit my business?</p>
58:

&quot;A Virtual Assistant concentrates on the tasks you don't have time for!</p>
59:

A Virtual Assistant is available 24/7 and on your terms! </p>
60:

Our prices ARE NEGOTIABLE and we offer a 30% discount to ALL new customers in the UK &amp; 25% outside of the UK.&quot; </p>
61:

What does it save me?</p>
62:

&quot;Maternity costs, holiday pay, sick pay, pension, training costs, other expenses such as equipment and stationery, office space, refreshments and general running costs.&quot;</p>
63:

How does your business benefit working parents? </p>
64:

&quot;Increasingly it is becoming difficult for mothers to justify returning to work due to financial constraints and impracticality. With childcare being so expensive and the lack of crèches in the workplace, one parent will opt to stay at home. My business helps parents wanting to work suitable hours from home and gives them quality time with their children.&quot;</p>
65:

</p>
66: </div>
67:
68:
69: <div id="footer">
70:

Company Registered in England &amp; Wales No. 5302138. VAT No. 838 6814 85

71: Freelance Office Services &amp; Virtual Assistance Limited - registered office 41 Queens Road, Farnborough, Hampshire GU14 6JP

72: Tel/Fax: 01252 372824 | Terms &amp; Conditions/Privacy Policy (TC%20for%20website%20users.doc)</p>
73: </div>
74: <a href="TC%20for%20website%20users.doc">
75:
76: </a>
77: <div align="center"></div>
78: <div align="center"></div>
79: <div align="center"></div>
80: <div align="center"></div>
81: </div>
82:
83: </body>
84: </html>

Webstuff
14th April 2005, 15:31
Replace line 46 with


http://www.partnershop.co.uk/img/affiliation/1/3/120x600_static.jpg (http://www.partnershop.co.uk/shop/3912/1/?mid=40&amp;url=)


Then see what problems you get...

annethedonn
14th April 2005, 15:42
Thanks for that. I've replaced the code and it all works perfectly - it seems to have rectified all the lines???!!! Fantastic! Let me know if you need any help with any virtual assistance.

I love this forum!

Webstuff
14th April 2005, 15:47
Its no problem. Just so you know, the "CE Rentals" picture on your "customers" page isn't currently showing up.

annethedonn
14th April 2005, 16:04
Hi, yes, I've just noticed. It was working fine yesterday and I haven't changed anything so I'm not sure why that's happening. I have uploaded the whole site again and no change. Can't think why it has disappeared.

Webstuff
14th April 2005, 16:08
Change the image source from

images/cerentallogo.jpg

to

images/CErentallogo.jpg

and it'll work.

annethedonn
14th April 2005, 16:13
you know I just looked at that and thought would it really make a difference and I guess it does. But it was working yesterday! I've just changed it and hey presto! You're a legend!

Thanks again!

kyber
14th April 2005, 17:20
Windows historically does not care about differences between upper and lower case in filenames, just about all other operating systems on the planet do (as do most password schemes). It is a little harder to make the os not care and MS did it for the convenience of the masses.

Stuart

Webstuff
14th April 2005, 17:23
Although once your sites on the web, its up to the server. You could ask for "index.htm", and it might give you "buymenow.asp". Out of interest, does anyone use a windows server here?

microbe
15th April 2005, 01:15
A good place to go for HTML Help (http://www.htmlhelp.com).

They have an explanation of how to use the alt attribute http://www.htmlhelp.com/feature/art3.htm