doctype

How do I place a DIV tag image on the very top of the page in HTML5?

Hello there. I'm trying to put an x-repeat "grid" of images by using background-image in CSS, then using the id in a DIV tag. My intention is to put a sort of "panel", then always extends to the very top of the page, and loops with repeat-x. It works just fine without a DOCTYPE, but when I put the clean in the code, it pushes the image...

Whats happening to my HTML?

I am making changes to my website, and I just noticed that things look different. In IE, the content doesnt center, theres a margin on my content, and the font looks bigger in chrome.. I ran it through Yahoo's HTML validator and the error I get is line 1 - Error: character "" not allowed in prolog. I believe that there may be some sort...

Loading not-so-well-formed XML into XDocument (multiple DTD)

I have got a problem handling data which is almost well-formed XHTML document except for it has multiple DTD declarations in the beginning: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!DOCTYPE HTML PUBLIC "-//W3C...

Setting a Global Doctype

Is it possible using PHP (I was thinking may the phpinfo file or a php.ini file) or an .htaccess file to set a doctype for an entire subdirectory? Basically, in a nutshell, I'm using a software that uses XSL templates to output data to a set of HTML files. Modifying the xsl:output tag to include the doctype breaks the template and ther...

JQuery form validator that is W3C Valid

Im doing some form validation on a website and I've tried to use JQuery Validator and it works find but isn't valid as it uses custom attributes. I've tried every which way to make it valid but it seems besides some other custom javascript, which is not an option, it isn't valid. Has anyone come across one that is valid? Or some other w...

Javascript scrolling, XHTML Doctype, IE6 - IE8 and a coronary

I've been working for hours on this and I can't figure it out. I've got a setup that pulls some coordinate data into javascript and parses it into an interactive map (using canvas {and excanvas for IE6 users}) on the browser for the user. Everything is working fine except for one problem: when hovering on the map after scrolling down th...

Is it possible to include a DOCTYPE declaration in an XML file and have the parser remove it while working?

Or perhaps have the parser just ignore the DOCTYPE tag in some fashion? I have XML files being used as "!ENTITY"s that also themselves need to have "!ENTITY"s and I have included the nested ones in the top-level file, but Visual Studio calls out my references to those in the 2nd-level files as not defined. Thanks! ...

Divs, flash and doctype :(

I have a web-site, that uses colorbox, it also has flash header. Everything works fine in both ff and ie. Before ive started to use colorbox, i had little div that covered small part of flash header for menu purposes. Now, since im using colorbox, i had to declare doctype, and set wmode on flash to 'opaque', in order everything to work...

Why does Opera parse my web page as XML?

I just tried viewing my website http://www.logmytime.de/ in Opera (version 10.50) it gives me an "xml parsing failed error" and refuses to display the web page. I can choose to "Reparse the document as HTML" and then the page works fine, but that's hardly a solution to my problem. The weird thing is that the error still occurs after s...

HTML Doctype Setting / IE Quirks Mode

I'm working within the parameters of an un-reachable developer, whom has created an html generation system for our products.. Whenever a new page is generated he places: <!-- updated page at 05/MAY/2010 02:58.58 --> <!-- You must use the template manager to modify the formatting of this page. --> resulting in my code looking like: <...

What is the use of DTD in HTML?

Hello, Could anyone specify what is the need and use of the Document Type Declaration in HTML pages. What is the advantages of it? I searched through the Net and found the results to be little bit confusing. Please someone highlight. ...

Processing an XML file with public doctype

Hi, I'm trying to process an SVG file with XSLT. I am having behaviors I don't understand, that involves the doctype declaration. Here are two tests I've done. The first one gives me the expected result and the second gives me a result I don't understand. (tested with saxon and xalan). Stylesheet used for the two tests : <?xml versio...

Tilde not recognised in XML public identifier

Hi everyone I found an interesting bug and wanted to know you think. Brief background: I've written a custom DTD and an example XML file (both UTF-8). I have now implemented a SAX parser in Java which I want to test. I got a SAXException complaining "An invalid XML character (Unicode: 0x7e) was found in the public identifier". Now, ...

Selecting a DOCTYPE for HTML 5 + all browsers

Hi. I'm using some HTML5 features on a web page and wondered what the best DOCTYPE is. Currently, this is the DOCTYPE and XMLNS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; Should I use the new HTML 5 DOCTYP...

iframe 100% height causing vertical scrollbar

I'm trying to layout a design that has a fixed height header at the top of the screen, and then an iframe below taking up the remaining space. The solution I came up with is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xh...

using C# WriteDocType() to generate Apple Property List-compliant XML

I'm trying to produce an XmlDocument which has a DocType as specified in Apple's Property List (P-List) format, which should look like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> The code I have at the momen...

Ensuring strict mode in IE 8

I'm apparently triggering quirks mode (or at least IE 7 standards mode) even though I've added the strict doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; and the IE compatibility list meta: <meta http-equiv="X-UA-Compatible" content="IE=8" /> I've looked at the Developer Tools...

Doctype, HTML 5

Hi, i have two questions: 1) was HTML5 released and if yes, when? 2) is doctype HTML 5 in use? or is it better to use one of these: - HTML 4.01 Strict, - HTML 4.01 Transitional, - HTML 4.01 Frameset, - XHTML 1.0 Strict, - XHTML 1.0 Transitional, - XHTML 1.0 Frameset, - XHTML 1.1 ...

Is it possible to get IE7 out of quicks mode without using a DOCTYPE?

In this particular situation, I do not have a choice about the DOCTYPE. I cannot use one. It's a weird situation, but it is what it is. We have some CSS which uses child selectors ("p > a > span", etc.). These worked in IE7, even though we didn't have a DOCTYPE...and then they suddenly stopped working. Something we did caused IE7 to...

How to position a div at the bottom of the viewport in standard and in quirks mode ??

Hi, I need to position a div to the bottom of my viewport. I start using position:fixed; bottom:0px; and that work just fine. But the thing that I'm working on gets injected via javascript in different pages. And some of the pages doesn't have a doctype defined, so in IE gets rendered like quircks mode, so the div doesn't get positioned...