Solved

XHTML 1.1 and TARGET atribute redeclaring

Posted on 2003-11-30
2
320 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
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 …

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now