I have written the following on textEdit --
It is saved under html extension. Then when I open it using safari, it just shows the same textEdit document, without any html formatting. I don't exactly know which doctype to use.
Got a book by Jonathan Stark, which is where I got this from. Any ideas?
Adam
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http:://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>my awesome page</title>
</head>
<body>
<h1>hi there</h1>
<p>thanks for looking</p>
</body>
</html>
It is saved under html extension. Then when I open it using safari, it just shows the same textEdit document, without any html formatting. I don't exactly know which doctype to use.
Got a book by Jonathan Stark, which is where I got this from. Any ideas?
Adam