I have a web page in IE8 Compatibility mode.
Need to open a Iframe inside a ExtJS window with IE 11 mode because i need to use HTML 5 file controls.
Parent page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=IE8" />
---
Iframe page:
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
--
With no luck..Is there any possible fix for this.
Related
I made two separate HTML4 files on WebStorm, and I need to redirect this one to the second one. All I did was copy the URL from Google from the second page and add it to the url meta tag. Is this not correct?
P.S. For some reason it displays the <u> tag as obsolete, even though I'm writing on HTML4 files. Why is that?
This is the first HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="mk">
<head>
<meta name="description" content="This is a test page">
<meta name="keywords" content="Web Design, FCSE, 2011, HTML, CSS">
<meta http-equiv = "refresh" content = "5; url = http://localhost:63342/BWD_Lab_01/HTML%20page%202.html?_ijt=n5m9mhg1hijdt8f1ssmgkv0en&_ij_reload=RELOAD_ON_SAVE" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="mk">
<title>First Page for the task 3</title>
</head>
<body>
In 5 seconds you will be redirected to the next page!
</body>
</html>
And this is the second page that it should redirect to:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="mk">
<head>
<meta name="description" content="This is a second test page">
<meta name="keywords" content="final page, HTML, second page">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="mk">
<title>Second page for task 3</title>
</head>
<body>
<h1> Welcome to the second page.</h1>
<p> This is my first time working with Webstorm.</p>
</body>
</html>
Im aware there are other posts on character encoding however this one appears to only occur before the doctype.
My original source is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="telephone=no" name="format-detection">
<title>TITLE</title>
</head>
But it comes through in an email as (note the question marks at the start):
???<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="telephone=no" name="format-detection" />
<title>TITLE</title>
</head>
This seems strange as there are no characters or whitespace before the doctype. I don't really get 'what' can't be rendered. Also, the file was originally saved in visual studio using the following settings:
Any help much appreciated
There are actually characters before the doctype. As you have saved the file as UTF-8 with signature, it contains a BOM (byte order mark) at the beginning of the file.
Save it as UTF-8 without signature, and the characters will go away.
You don't have a *< / html > * tag ending the whole code. Try that. If it still isn't working, I suggest you use notepad++ instead of Visual Studio.
I am trying to rewrite old php mysql website in codeigniter, The site is in unicode, and text in database is stored like this
बेलायतम&.
when i pull data from database and display in html it appears like this
सरà¥à¤µà¥‹à¤šà¥à¤šà¤•à¥‹ à
It is fine in old site, I am using exactly as same header as old site in html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I am banging my head how to correct text ?
Try this
<meta charset='utf-8'>
There should be a problem, html's codes you are using are right, just in case check if you can see proper characters on this website:
http://www.unicodeblocks.com/block/Devanagari
and make sure you are using:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Please double check it - use "view page source" on your page and check, maybe you used meta tag twice with different variables?
and one more...
if you are using db, please do this:
$mysqli->query('set character set utf8');
Why does this site loads up in Quirks mode? I know i can use X-UA-Compatible but i prefer solving the underlining problem
Because that's how it's defined:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
If you want it to load in standards mode, use the HTML 5 doctype:
<!DOCTYPE html>
Edit:
Also, move the initial meta tag down. This is what I see when I look at your site:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<HTML>
<head>
<title>
20.000+ Cheap Wall Posters and Postcards
</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
You have duplicate Content-Type meta tags. The top one is breaking you into quirks still. If you remove it altogether, that would be good, and make sure that your charset is accurate (either utf-8 or iso-8859-1). It should be:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<HTML>
<head>
<title>
20.000+ Cheap Wall Posters and Postcards
</title>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
I simply want to do whats posted below but nothing happens when opening the HTML file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="1;url=about:newtab"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>