Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Friday, 10 February 2012

HTML: How to automatically redirect from a page1.html to page2.html when page1.html is rendered

page1.html:
 <meta http-equiv="Refresh" content="0" url="page2.html" />

HTML: make a page to refresh every n sec

 <meta http-equiv="Refresh" content="0" url="" />

Monday, 16 January 2012

Web page UTF-8 encoding problems/rules

Make browser render page as UTF-8

Use the following meta-tag:
<head>
 <!-- set response header: Content-Type: text/html; charset=UTF-8 -->
 <meta http-equiv="content-type" content="text/html;charset=utf-8">
 
 <!-- for HTML5 use the following:
 <meta charset="UTF-8">
 -->

</head>
Also save the html file with UTF-8 encoding.

Make browser render css as UTF-8

Use the following meta-tag:
/** Content-Type: text/css; charset=UTF-8  */
@charset "UTF-8"; 
Also save the css file with UTF-8 encoding.