W3C Validation - Wordpress DOC Type - css

i submitted the following site for validation, and received this error:
Website Link
Error:
No DOCTYPE found! Checking with default XHTML 1.0 Transitional Document Type.
No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or that it is not using the correct syntax.
The document was checked using a default "fallback" Document Type Definition that closely resembles “XHTML 1.0 Transitional”.
I have tried changing the DOC type to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
however it still picks up the error?
Any advice would be greatly appreciated, thank you

I can't see a doc type at the top of your source code. I have added one and manually validated the code through the W3 checker and it passed without warning to related to the doc type.
This is the doc type I added
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Related

Website W3C validator shows "Mismatch between Public and System identifiers in the DOCTYPE declaration", what to do?

I'm trying to validate my website Hybrid.cz in the W3C validator. Unfortunately, it keeps showing the same errors because of the "Mismatch between Public and System identifiers in the DOCTYPE declaration". It says:
This document uses an inconsistent DOCTYPE declaration. The System
Identifier w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd declares the
XHTML 1.0 Transitional document type, but the associated Public
Identifier -//W3C//DTD XHTML+RDFa 1.0 Transitional//EN does not match
this document type.
The recommended Public Identifier for
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd is -//W3C//DTD XHTML 1.0
Transitional//EN.
My DOCTYPE is:
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML+RDFa 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
I'm not really experienced in DOCTYPES. But I want to be able to use RDFa attributes within the site. What should I do?
You find a DTD which supports the mixture of XML languages you want to use, then you look up the correct Doctype for it.
Searching turns up the XHTML+RDFa 1.1 - Second Edition specification.
This shows the Doctype to be:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">

How to change Doctype and Content-Type of a Meteor-App

I need to change the doctype and the content-type of a meteor-app to get CE-HTML-related things working.
Meteor works fine on CE-HTML-devices like Set-Top-Boxes. But without setting the correct doctype and content-type of the main request, some CE-HTML-based extensions won't work properly.
Thx,
Joerg
I'm assuming you mean you want to add these to the top of your app.html:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ce-html-1.0-transitional.dtd">
What you want to do is find
~/.meteor/tools/latest/tools/app.html.in
and edit it to add your doctype and content-type.
Note: this is a hack. It will change the doctype and content type for all of your Meteor apps. Whenever you launch your Meteor app or bundle it, this template is used.

ASP.NET 404 Response Text Chinese-like

When loading a page containing references to non-existing URL's using tags, I see a strange text reply from the server.
The server does return status code 404 as expected, but it also includes a text response with chinese-like characters.
Is the server infected, or is the error message just in a different language than english ... ?
If infected, how can I find out where?
Here is an example of the text replies. It seems that the reply is identical for each 404 error, although a part of it changes when a different filetype is not found.
㰡䑏䍔奐䔠桴浬⁐啂䱉䌠∭⼯圳䌯⽄呄⁘䡔䵌‱⸰⁓瑲楣琯⽅丢•桴瑰㨯⽷睷⹷㌮潲术呒⽸桴浬ㄯ䑔䐯硨瑭氱⵳瑲楣琮摴搢㸍਼桴浬⁸浬湳㴢桴瑰㨯⽷睷⹷㌮潲术ㄹ㤹⽸桴浬∾ഊ㱨敡搾ഊ㱭整愠桴瑰ⵥ煵楶㴢䍯湴敮琭呹灥∠捯湴敮琽≴數琯桴浬㬠捨慲獥琽楳漭㠸㔹ⴱ∯㸍਼瑩瑬放㐰㐠ⴠ䙩汥爠摩牥捴潲礠湯琠景畮搮㰯瑩瑬放ഊ㱳瑹汥⁴祰攽≴數琯捳猢㸍਼ℭⴍ੢潤祻浡牧楮㨰㭦潮琭獩穥㨮㝥活景湴ⵦ慭楬示噥牤慮愬⁁物慬Ⱐ䡥汶整楣愬⁳慮猭獥物昻...
You have a character encoding issue. It is a ASCII file that is being interpretted as a 2byte character encoding and thus you are getting the strange characters.
To translate it I copied the text to notepad. Saved it as Unicode-Big Endian and then used a hex editor to strip the first two characters (that tell it that it is unicode). Opening it again gave me:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <title>404 - File or directory not found.</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;
You would need to look into things to see if it is declaring the wrong content type in an HTML header (the content type in the meta tag looks correct) or something else is causing it problems.

XHTML & CKEditor question

Does CKEditor output data xhtml compliant?
Probably not.
Try running the output through something like HTMLPurifier.
http://htmlpurifier.org/
Added bonus of clean content, especially if user generated.
CKEditor is itself not XHTML compliant, and can not be served on an XHTML page (with the XHTML mime type application/xhtml+xml)
https://dev.ckeditor.com/ticket/2807
https://dev.ckeditor.com/ticket/4576
https://dev.ckeditor.com/ticket/7849

ASP.NET and diacritics

I intend to create asp.net pages using Visual Studio 2008. Preferably, the pages should be fully compliant with XHTML standard. How should I include the diacritics into the page content (no need to use diacritics in URLs)? Should I use character references (the ones with "&"), or just writing them directly form the keyboard?
Thank you.
You will need to ensure the correct character set encoding for the page, UTF-8 usually covers most western alphabets and UTF-16 for double byte characters required by languages that use ideograms.
In the HEAD element of the page you will need some form of the following tag;
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
You will also need to ensure you have the correct DOCTYPE specified;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This is well covered by the W3C Character Sets Tutorial

Resources