HTML 4, HTML 5, XHTML, MIME types – the definitive resource

Contents. Terminology Languages and Serializations Specifications Browser Parsers and Content (MIME) Types Browser Support Validators and Document Type Definitions Quirks, Limited Quirks, and Standards modes. Terminology One of the difficulties of describing this is clearly that the terminology within the official specifications has changed over the years, since HTML was first introduced. What follows below … Read more

HTML5 syntax – HTML vs XHTML

The advantage of XHTML syntax is that it is XML. It can be easily parsed, understood and manipulated. The HTML syntax is a lot harder for clients to work with. Nonsense! The HTML5 spec defines how to parse HTML in a way that is relatively easy to implement, and off-the-shelf parsers are being developed that … Read more

how to set background image in submit button?

The way I usually do it, is with the following css: div#submitForm input { background: url(“../images/buttonbg.png”) no-repeat scroll 0 0 transparent; color: #000000; cursor: pointer; font-weight: bold; height: 20px; padding-bottom: 2px; width: 75px; } and the markup: <div id=”submitForm”> <input type=”submit” value=”Submit” name=”submit”> </div> If things look different in the various browsers I implore you … Read more

How to prevent CSS caching on a web page?

You can append a random query parameter to the stylesheet url (for example via javascript or server side code). It will not change the css file that is being loaded, but it will prevent caching, because the browser detects a different url and will not load the cached stylesheet. <link rel=”stylesheet” type=”text/css” href=”http://mysite/style.css?id=1234″>

What’s the need for XHTML?

Because it is valid XML. That helps a lot since you can use a lot of tools originally designed for XML, such as XML parsers, XSLT, XPath, XQuery, … Normal HTML is a SGML dialect and that is not parsable without knowledge of the schema. <ul> <li>one <li>two <li>three </ul> is correct HTML but not … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)