Can I use Apple's Safari browser when creating a website from an HTML file?

  • Thread starter Thread starter Universal Citizen
  • Start date Start date
U

Universal Citizen

Guest
I am trying to learn HTML.

As per an online tutorial,
- I typed in the following in an html file (using TextEdit in my case),
- opened Safari on my mac,
- double clicked on my html file in FINDER.
[It only opened a page on the web but with the codes still as below)



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>HTML Tutorial Example</title>
</head>
<body>
<p>Less than 5 minutes into this HTML tutorial and
I've already created my first homepage!</p>
</body>
</html>

SHOULD I LOAD FIREFOX or something else to get it to work?
NB. I saved as an 'html' file. So what went wrong?
 
should work fine in safari as long as you saved it as .html
firefox is a better choice though, look at the firefox site there's a web developer tool that's awesome for your learning, you can display html files from other websites, see all the tags on the page and also the css files, this might help you understand much better how pages work
have fun!
 
Back
Top