Skip to main content
9 votes
Accepted

Are spaces in "href" valid?

In (X)HTML5, the a element’s href attribute […] must have a value that is a valid URL potentially surrounded by spaces. As the anchor suggests, it may contain leading and trailing spaces. The ...
unor's user avatar
  • 21.8k
4 votes

Universal shortened doctype for all mobile devices

The XHTML doctype is for XHTML web pages and, unless you are serving your page as application/xhtml+xml, it ain't XHTML. I'm betting you're not doing that. Writing HTML as XHTML is called "tag soup" ...
Rob's user avatar
  • 4,639
2 votes

Why doesn't <link rel="alternate" ... /> work with <base href="..." /> in structured testing tool?

Unfortunately, your question didn’t include the errors you saw in the SDTT. Both snippets don’t show any warnings/errors now. So I’m not sure what exactly the issue was, but I want to clear something ...
unor's user avatar
  • 21.8k
2 votes

why and where should i write strict code like xhtml

Please, check Joey's answer on this: If your HTML is going to be regularly processed by automated tools instead of being read by humans, then you might want to use XHTML because of its more ...
ribluc's user avatar
  • 124
1 vote

file:///user/home/file.xhtml displays properly but http://website.com/file.xhtml does not

There is a lot of problems with Gedcom file conversion and web hosting. Have you checked your export file sources to see if codes match original source codes? Export done with UT-8 coding? Tried ...
norcal johnny's user avatar
1 vote

file:///user/home/file.xhtml displays properly but http://website.com/file.xhtml does not

... it's showing as Content-Type: text/plain. Providing the file has validated successfully as XHTML/XML then (assuming you are on an Apache web server) you can try adding the following to the ....
MrWhite's user avatar
  • 42.9k

Only top scored, non community-wiki answers of a minimum length are eligible