Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

XHTML 1.1 and TARGET atribute redeclaring

Posted on 2003-11-30
2
Medium Priority
?
356 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 250 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

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