miniiphoneprogrammer miniiphoneprogrammer - 29 days ago 9
HTML Question

How do you open html in google chrome?

[I got it working now, it was just a browser error]
My code is:

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>

</body>
</html>


So the page should have the title, Test, but no, it just shows my code.So in a new tab it shows:

<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>

</body>
</html>


instead. Can I get it to say the title?
Thanks in advance...

Answer

I copied and pasted your code into textmate saved the file as test.html and doubled clicked on it.

It worked perfectly. It seems like a browser issue, have you tried reinstalling them. How about try it on another computer? Is the file name end with .html?

how about

<html>
<head> 
    <title>Hi</title>
</head>

<body>
    <p>Are you working?</p>
</body>

</html>

does that work?