Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

XHTML 1.1 and TARGET atribute redeclaring

Posted on 2003-11-30
2
Medium Priority
?
352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

715 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