Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email to link in html/css template

Status
Not open for further replies.

madrik79

Technical User
Nov 1, 2011
1
0
0
GB
hi guys i have tried for the last 48 hours to get this to show up correctly

<p><a>Is your PC/Laptop not booting up, random blue screens, noisy, running slower than normal, We can help you can either contact us on 07872 or email us at <a href="mailto:support@test.co.uk">support@test.co.uk</a></p>

when its set like this text is the correct size but i get these errors when trying to validate it

Error end tag for X omitted, but OMITTAG NO was specified



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

Line 47, column 250: end tag for "a" omitted, but OMITTAG NO was specified

…="mailto:support@test.co.uk">support@test.co.uk</a></p>

Error document type does not allow element X here; missing one of Y start-tag



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 "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Line 47, column 212: document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag

…="mailto:support@test.co.uk">support@test.co.uk</a></p>

please tell me what i've done wrong

 
You haven an opening <a> tag that you never close:

Code:
<p>[COLOR=white red]<a>[/color]Is your PC/Laptop not booting up, random blue screens, noisy, running slower than normal, We can help you can either contact us on 07872  or email us at <a href="mailto:support@test.co.uk">support@test.co.uk</a></p>
Unless you are using in-page anchors, I don't think you want the <a> tag there.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Also - just from a standards point of view. Having a floating email in your content is not suggested.

Forms are the way to go for contact.

Darryn Cooke
| Marketing and Creative Services
 
There's no "likely" about it :) it about as sure as death or taxes :D

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top