Caporegime
- Joined
- 12 Mar 2009
- Posts
- 26,778
Well, please bear with me because I am as new to web development as you can get. I have been trying to get to grips with simple HTML using my MacBook. I have been using TextEdit and then saving the files as a HTML file and then trying to open them up in Safari. I have a problem however that hopefully somebody will be able to explain, It's probably fairly straightforward and I'm probably being really silly, but like I said I'm as green to this as you can get so please be nice. 
I have the following code typed into TextEdit
However, when I try to open it in Safari it shows everything including the tags, so I can't see how the page displays, however, I also have Windows on my MacBook which I booted into and slapped the same code into notepad and opened it with Internet Explorer, hey presto, in Internet Explorer it shows just what I expected to see " This is my first web page".
Can anybody tell me why this isn't happening in OS X and why it is showing all the tags instead of just the content? And could somebody please give me some advice on how to get it to show like it does in Windows, in OS X? I could still learn HTML in Windows, but I much prefer OS X's speed and ease of use. Any help will be much appreciated and I'm sorry if I'm being an absolute lemon.
Cheers!

I have the following code typed into TextEdit
I save that in a folder and I call it "myfirstpage.html" I also save it as a .html filetype.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<body>
This is my first web page
</body>
</html>
However, when I try to open it in Safari it shows everything including the tags, so I can't see how the page displays, however, I also have Windows on my MacBook which I booted into and slapped the same code into notepad and opened it with Internet Explorer, hey presto, in Internet Explorer it shows just what I expected to see " This is my first web page".
Can anybody tell me why this isn't happening in OS X and why it is showing all the tags instead of just the content? And could somebody please give me some advice on how to get it to show like it does in Windows, in OS X? I could still learn HTML in Windows, but I much prefer OS X's speed and ease of use. Any help will be much appreciated and I'm sorry if I'm being an absolute lemon.
Cheers!

Last edited: