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 ...
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" ...
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/...
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 ...
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 ...
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 ...
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 ....
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"&...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xhtml × 40html × 16
html5 × 14
seo × 11
doctype × 5
css × 4
markup × 3
url × 2
links × 2
mobile × 2
search-results × 2
hyperlink × 2
xml × 2
css3 × 2
browser-support × 2
standards × 2
w3c-validation × 2
internet-explorer-8 × 2
google × 1
web-crawlers × 1
search-engines × 1
javascript × 1
facebook × 1
performance × 1
microdata × 1