Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

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 ...
user avatar
  • 21.5k
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" ...
user avatar
  • 4,619
3 votes
Accepted

Are there any problems with pages from the same site using different doctypes?

There is clearly no problem about it. Every request returns one document that has its own independent doctype. This is not affecting any other sites. According to https://stackoverflow.com/questions/...
user avatar
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 ...
user avatar
  • 21.5k
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 ...
user avatar
  • 114
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 ...
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 ....
user avatar
  • 41k
1 vote
Accepted

Is it good to have HTML tags between anchor tags?

It's completely OK to have HTML tags inside anchor tags when defining a clickable image in your webpage. The HTML code will be similar to the following: <a href="http://example.com/path/to/link"&...
user avatar
1 vote

How to properly/semantically markup a scientific publication list on a simple XHTML website?

Note: This snippet on its own is not doing what you want because you didn’t specify any vocabulary. Here in my answer I’ll use the schema: prefix as specified in the RDFa Core Initial Context. (Not ...
user avatar
  • 21.5k
1 vote
Accepted

What is the correct DTD for Schema DATA placement in XHTML pages?

The data-* attributes are defined for (X)HTML5 only. The Microdata attributes (itemscope, itemprop, …) are defined for (X)HTML5 only. So when you switch to (X)HTML5, you can use both of these. If ...
user avatar
  • 21.5k

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