Solved

XHTML 1.1 and TARGET atribute redeclaring

Posted on 2003-11-30
2
334 Views
Last Modified: 2013-12-16
check out this site (BETA!!!) - http://www.primacas.cz/tmp - and look in the top of it. you'll see a "]>" written here...
that's a remain of

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/DTD/xhtml11.dtd" [<!ATTLIST a target CDATA #IMPLIED>]>

that I use for specifying that I need to use TARGET attribute for <a> tag.

anyone any tip on why are the last two characters of DOCTYPE ignored and how to get rid of it?
0
Comment
Question by:3CEO
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 125 total points
ID: 9851961
I don't see that effect, but I would imagine that its a side effect of using a browser which doesn't support XHTML properly. You are sending the page with the wrong content type, XHTML 1.1 should not be served as text/html, it should be served as application/xhtml+xml and may be served as application/xml.

Frankly, if you "need" to use the target attribute (which you don't unless you are trying to force new windows on users or use frames - both bad ideas), then you should be using HTML 4.01 Transitional (or maybe XHTML 1.0 Transitional while following the Appendix C compatability guidelines).
0
 

Author Comment

by:3CEO
ID: 9852422
sorry, the code in question is already gone... but these tips of yours should be the solution... I might just forget the target attribute and work with what I've been given :) you've got 125 points...
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application.cfc - what is the order of events? 4 30
The Best Website Creation Tools 14 55
Removing HTML elements using javascript 4 45
ASP server side get value 15 23
Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question