Jump to content

Recommended Posts

Posted (edited)

You shouldn't use a p tag and a h tag for the same text, one or the other.

 

Your code is a bit brief, there are other codes you should add as a minimum:-

 

br />   "http://www.w3.org/TR/html4/strict.dtd">




 Essex Warhounds






Welcome to our club web site 

 This is a paragraph


This is not an important paragraph



 

For code as simple as the above, Safari on a Mac should be the same as IE on Windows.

 

If you mean that it shows as the above code in Safari instead of a page without the tags, it possible that your page has been saved as page.html.txt because .txt has been added in the saving process and so it opens in Notepad instead of in Safari. Delete the .txt extension so that the filename only has .html extension and double click the filename to view the finished page in Safari or right-click "Open with" Notepad to edit in Notepad. edit: double-click and right-click is what we do in Windows, perhaps Macs are different in which case open safari and use a menu there to view, or open Notepad and use the file/open menu there for editing.

Edited by Wickham
Posted

I would open up the Finder's Preferences, and double check that the "Show File Extensions" checkbox is checked. As Wickham said, this often happens when a file that you think is called filename.html is actually called filename.html.txt, and the operating system isn't showing you the full file extension.

Posted

OK, I think I may know what is going on. TextEdit defaults to "Rich text" rather than plain text, which may be the source of your issues.

 

-- Open up TextEdit

-- Open up the Text Edit Preferences, and make sure the "Plain Text" option is selected, rather than "Rich Text", and then close the preferences

-- Open up a new document, and copy/paste your code there, and resave the file under a new name as .html.

 

Try that, and let me know if it works for you.

 

I personally wouldn't suggest using TextEdit for coding. Not because it is bad, but because there are other free text editors out there for Mac that will give you syntax highlighting, code completion, etc. that will make your life easier. If you are looking for something free, look at TextWrangler (http://www.barebones.com/products/TextWrangler/) or Smultron (http://www.tuppis.com/smultron/). If you eventually want to move to a paid text editor, look at Coda (http://www.panic.com/coda/) or Textmate (http://macromates.com/).

  • 2 weeks later...
  • 1 month later...
Guest JNuernberg
Posted

Good day to y'all.

 

My name is also James and I had the same problem as Jamescuk. I'm brand-new to coding with the exception of some machine level coding several decades ago. I also run TextEdit on my Mac. I followed Benjamen's advise and the issue is resolved. The Text Editor "save as" does not give me the option for .html just I just need to add it to the file name. I'll be looking at the other text editors suggested.

 

Thanks, James

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...