Results 1 to 15 of 15
  1. #1
    very basic web help

    Member Since
    Nov 06, 2008
    Posts
    120
    very basic web help
    I know on a pc you can write html code in note pad, save it as html document and then open it in a web brouser to see how it looks.

    I tried doing this on by writing html code in textedit, saving as an html and then opening it in safari but nothing shows at all or if i save it in other formats then you can see the tags from html code. please help me where I am going wrong. I want to start writing code on my mac

  2. #2
    very basic web help
    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    Are you saving the file as a text file or leaving it to the defauly RTF dormat

    Any way Text Wrangler from bare bones is a better text editor, especuially for html code

    Bare Bones Software | TextWrangler
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

  3. #3
    very basic web help

    Member Since
    Nov 06, 2008
    Posts
    120
    well regardless of what I do now how do I do it so I can see it on safari when I open it?

  4. #4
    very basic web help
    kousik's Avatar
    Member Since
    May 04, 2009
    Posts
    21
    Specs:
    Model: Macbook; Processor: Intel Core 2 Duo (2.4GHz); RAM: 2GB (DDR3); Video memory: 256MB
    After entering your HTML code in TextEdit, click on "save as" from the "File" menu. Uncheck "Hide extension" at the left bottom left corner and type the name of the desired filename at the top with the ".html" extension (I tried saving the file with UTF-8 encoding, and it worked perfectly).

    If safari is not your default browser, then secondary click (command+click) on the file that you just saved and chose "safari" from the "Open with" menu.
    System specs: (1) 13" Macbook Aluminum Unibody (OSX 10.5.8, Darwin 9.8.0, Intel Core2 duo 2.4GHz, 2GB 1067MHz DDR3 RAM, NVIDIA GeForce 9400M) (2) Dell Inspiron 6000 (Intel Pentium M 1.8GHz, 2GB DDR2 SDRAM) -- triple booting with Puppy Linux 4.31, Kubuntu 9.10 and Windows XP Home.

  5. #5
    very basic web help

    Member Since
    Nov 06, 2008
    Posts
    120
    Quote Originally Posted by kousik View Post
    After entering your HTML code in TextEdit, click on "save as" from the "File" menu. Uncheck "Hide extension" at the left bottom left corner and type the name of the desired filename at the top with the ".html" extension (I tried saving the file with UTF-8 encoding, and it worked perfectly).

    If safari is not your default browser, then secondary click (command+click) on the file that you just saved and chose "safari" from the "Open with" menu.
    I tried this and open with safari and it shows all the html tags. I dont understand it.

  6. #6
    very basic web help
    kousik's Avatar
    Member Since
    May 04, 2009
    Posts
    21
    Specs:
    Model: Macbook; Processor: Intel Core 2 Duo (2.4GHz); RAM: 2GB (DDR3); Video memory: 256MB
    Quote Originally Posted by gravitate View Post
    I tried this and open with safari and it shows all the html tags. I dont understand it.
    Could you post at least a small snippet of your code here?
    System specs: (1) 13" Macbook Aluminum Unibody (OSX 10.5.8, Darwin 9.8.0, Intel Core2 duo 2.4GHz, 2GB 1067MHz DDR3 RAM, NVIDIA GeForce 9400M) (2) Dell Inspiron 6000 (Intel Pentium M 1.8GHz, 2GB DDR2 SDRAM) -- triple booting with Puppy Linux 4.31, Kubuntu 9.10 and Windows XP Home.

  7. #7
    very basic web help

    Member Since
    Nov 06, 2008
    Posts
    120
    sure I was just doing a very very basic code to see how to get started

    <html>
    <body>
    <h1>
    Hello. Does it work this time?
    <h1/>
    <body/>
    <html/>




    I keep trying but to no avail

  8. #8
    very basic web help
    kousik's Avatar
    Member Since
    May 04, 2009
    Posts
    21
    Specs:
    Model: Macbook; Processor: Intel Core 2 Duo (2.4GHz); RAM: 2GB (DDR3); Video memory: 256MB
    There is a weird (?) thing about opening a file with ".html" extension using TextEdit --- it opens up as an HTML document (you're in a kind of WYSIWYG mode), but you really want to open it as a plain text in order to able to edit it using your own HTML tags. Here's a workaround:

    1. Open TextEdit
    2. Insert the above HTML code that you just posted
    3. Go to format on the menubar and select "Make plain text"
    4. Then save the file as "filename.html" using "Save as" option under "File".
    5. Open "filename.html" with Safari.

    I'm very sure that the problem you're seeing is because you're editing in HTML mode. So before entering your code make sure you are in the plain text mode. Let me know if it works. Good luck!
    System specs: (1) 13" Macbook Aluminum Unibody (OSX 10.5.8, Darwin 9.8.0, Intel Core2 duo 2.4GHz, 2GB 1067MHz DDR3 RAM, NVIDIA GeForce 9400M) (2) Dell Inspiron 6000 (Intel Pentium M 1.8GHz, 2GB DDR2 SDRAM) -- triple booting with Puppy Linux 4.31, Kubuntu 9.10 and Windows XP Home.

  9. #9
    very basic web help

    Member Since
    Aug 20, 2005
    Location
    Redlands, CA
    Posts
    739
    Specs:
    Macbook Pro 15" 2ghz/2GB/250gb/SD - White Macbook 2.16ghz/2.5GB/250GB/SD
    Quote Originally Posted by gravitate View Post
    sure I was just doing a very very basic code to see how to get started

    <html>
    <body>
    <h1>
    Hello. Does it work this time?
    <h1/>
    <body/>
    <html/>




    I keep trying but to no avail
    Your coding is wrong to start with... here is how it should look.
    PHP Code:
    <html>
    <
    head>
    </
    head>
    <
    body>
    <
    h1>
    HelloDoes it work this time?
    </
    h1>
    </
    body>
    </
    html
    You have your "/" on the wrong side.

  10. #10
    very basic web help
    Aptmunich's Avatar
    Member Since
    Mar 09, 2004
    Location
    Munich
    Posts
    9,073
    Specs:
    Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
    First: Stop using TextEdit (as others have said)

    Next, this is the key if you must use TextEdit:
    3. Go to format on the menubar and select "Make plain text"

  11. #11
    very basic web help

    Member Since
    Nov 06, 2008
    Posts
    120
    Quote Originally Posted by kousik View Post
    There is a weird (?) thing about opening a file with ".html" extension using TextEdit --- it opens up as an HTML document (you're in a kind of WYSIWYG mode), but you really want to open it as a plain text in order to able to edit it using your own HTML tags. Here's a workaround:

    1. Open TextEdit
    2. Insert the above HTML code that you just posted
    3. Go to format on the menubar and select "Make plain text"
    4. Then save the file as "filename.html" using "Save as" option under "File".
    5. Open "filename.html" with Safari.

    I'm very sure that the problem you're seeing is because you're editing in HTML mode. So before entering your code make sure you are in the plain text mode. Let me know if it works. Good luck!

    sweet worked like a charm I am now going to try build a forum from scratch. bit stuck with the php at the moment though lol

  12. #12
    very basic web help

    Member Since
    Aug 20, 2005
    Location
    Redlands, CA
    Posts
    739
    Specs:
    Macbook Pro 15" 2ghz/2GB/250gb/SD - White Macbook 2.16ghz/2.5GB/250GB/SD
    Quote Originally Posted by gravitate View Post
    sweet worked like a charm I am now going to try build a forum from scratch. bit stuck with the php at the moment though lol
    That's a bit much isn't it? Not saying it couldn't be done, but that's a lot of PHP/mySQL coding.

  13. #13
    very basic web help

    Member Since
    Nov 06, 2008
    Posts
    120
    ya it is a lot but hey its my goal eventually as a project

    hey I saved the tags and text in textedit AND OPENED IT IN SAFARI WHICH WAS GREAT BUT THEN WHEN I OPEN IT IN text edit it doesnt show the tags i.e. opens it as a web page. what is going on?

  14. #14
    very basic web help
    Aptmunich's Avatar
    Member Since
    Mar 09, 2004
    Location
    Munich
    Posts
    9,073
    Specs:
    Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
    Quote Originally Posted by gravitate View Post
    ya it is a lot but hey its my goal eventually as a project

    hey I saved the tags and text in textedit AND OPENED IT IN SAFARI WHICH WAS GREAT BUT THEN WHEN I OPEN IT IN text edit it doesnt show the tags i.e. opens it as a web page. what is going on?
    You probably need to switch to plain text mode again.

    But seriously, stop using textedit for that type of work. Get one of the free programming text editors made for that type of work.

  15. #15
    very basic web help

    Member Since
    Mar 11, 2009
    Posts
    469
    Quote Originally Posted by Aptmunich View Post
    But seriously, stop using textedit for that type of work. Get one of the free programming text editors made for that type of work.
    Like TextWrangler.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Quick question concerning basic web graphics design
    By BrianC22 in forum Images, Graphic Design, and Digital Photography
    Replies: 4
    Last Post: 02-12-2010, 09:44 PM
  2. Microsoft Expressions Web and Visual Basic software for Mac?
    By lonelysith66 in forum OS X - Operating System
    Replies: 3
    Last Post: 12-14-2009, 09:14 AM
  3. Good idea for basic web browsing?
    By CArmstrong in forum iPod Hardware and Accessories
    Replies: 2
    Last Post: 06-18-2009, 12:08 PM
  4. Very, very basic web design question
    By yanotk in forum Web Design and Hosting
    Replies: 1
    Last Post: 12-31-2007, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •