View Single Post
Old 12-08-2013, 09:52 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
What are the page headers?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
Many people are serving with the same MIME type as HTML4. That may be why.


Quote:
Content-Type: text/ html text/ html is called the ?content type? or ?MIME type? of the page. This header is the only thing that determines what a particular resource truly is, and therefore how it should be rendered. Images have their own MIME types (image/ jpeg for JPEG images, image/ png for PNG images, and so on). JavaScript files have their own MIME type. CSS stylesheets have their own MIME type. Everything has its own MIME type. The Web runs on MIME types.


This specification later became known as ?XHTML 1.0?. It defined a new MIME type for XHTML documents, application/ xhtml + xml. However, to ease the migration of existing HTML 4 pages,

Starting with Version 1.1, all XHTML documents were to be served with a MIME type of application/ xhtml + xml.

Pilgrim, Mark (2010-08-06). HTML5: Up and Running O'Reilly Media. Kindle Edition.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote