My Computer Forum Computer Science Forum

Go Back   My Computer Forum > Web Development Forum > Web Design

Web Design Web Design - Building websites from cascading style sheets to web design concepts


Reply
 
LinkBack Thread Tools Display Modes
July 27th, 2010, 02:37 AM   #1
 
Joined: Jul 2010
Posts: 5
Problem opening html file on browser

Hi,

When I open my html code on a browser(written with "Text edit"), it displays all of it (the code), instead of simply showing me the actual page I just wrote!

I tried to do it with all the browsers you can think of (Safari, Internet Explorer, Mozilla,...) and recorded the file well: filename.html or I also tried filename.htm.

Here is the code I'm trying to display:

<html>
<head>
<title>Ma toute première page Web</title>
</head>
<h2>L'annuaire personnel de Justine</h2>
<u1>
[*]Mickey
01 23 45 67 89



</u1>
</body>
</html>


Could smb help me?
rafito222 is offline  
 

My Computer Forum is free to register and we welcome everyone!

July 27th, 2010, 04:03 AM   #2
Site Founder
 
julien's Avatar
 
Joined: Dec 2007
Posts: 414
Re: Problem opening html file on browser

Your html code is diplayed on my version of IE 7. Nonetheless, I noticed that you forgot the opening <body> tag in your code (however, the closing </body> tag is already present; this might be causing the error).
julien is offline  
July 27th, 2010, 04:43 AM   #3
 
Joined: Jul 2010
Posts: 5
Re: Problem opening html file on browser

Thank you very much for your reply.

So I tried to put the "<body>" that I forgot, but unfortunately it still doesn't work.

Here I describe what I do to display it on my browser, so you can tell me if it's right:

Once the file is recorded under the form I showed above, I go on my browser file menu to open a file. Then I select the html file I just made and open it.

Thx in advance.
rafito222 is offline  
July 27th, 2010, 05:14 AM   #4
Site Founder
 
julien's Avatar
 
Joined: Dec 2007
Posts: 414
Re: Problem opening html file on browser

Actually double-clicking the file should be enough to open it in your default browser ... remember the way that you open an html file that you saved on your computer ? This should work just the same ...
julien is offline  
July 27th, 2010, 06:07 AM   #5
 
Joined: Jul 2010
Posts: 5
Re: Problem opening html file on browser

Thank you very much, but it still just doesn't want to work.

I really don't get why, so simple though.

Anyway, very kind of you and I wish you a great day.
rafito222 is offline  
July 27th, 2010, 06:23 AM   #6
Retired
 
Joined: Jul 2010
Posts: 23
Re: Problem opening html file on browser

Smells like it could be one of two problems. It sounds like you are working on a Mac, so the first issue might not be the case, but if the true file extension is hidden, which is default on windows, I don't think Macs ever hide file extensions, then you might have a file named filename.html.txt that just appears to be an html file.

Another issue might be how the file is being saved. I don't use Macs much, but TextEdit is not really just a text editor, but a text formattor, the differences being how it encodes files to save formatting and such. Because of that, there might be issues making the html file not being saved as a plain text file but with some encodings as well.
shynthriir is offline  
July 27th, 2010, 06:50 AM   #7
 
Joined: Jul 2010
Posts: 5
Re: Problem opening html file on browser

Gosh, you were right!

Thank you a lot, I used a html code editor and it worked (My html guide book was advising to use textEdit! )
rafito222 is offline  
July 27th, 2010, 12:21 PM   #8
Retired
 
Joined: Jul 2010
Posts: 23
Re: Problem opening html file on browser

TextEdit will probably work fine, its just a matter of figuring out how to make sure it saves the files as plain text files with html extension. That is something I'm not sure I can help you with, as I said, I don't use Macs much.
shynthriir is offline  
Reply

  My Computer Forum > Web Development Forum > Web Design

Tags
browser, file, html, opening, problem



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
which browser are you using? abhinav Computer Science 28 July 11th, 2013 04:14 AM
About AOL Web Browser Help alexalbert Tech Support 0 March 22nd, 2013 08:49 PM
Under line html tofayel521 Web Design 3 November 23rd, 2011 12:54 PM
HowTo WifiSMS – SMS über den Browser verschicke julien Tech Support 0 August 26th, 2011 12:58 PM
Problem opening html file on browser rafito222 OS Architecture 0 December 31st, 1969 04:00 PM





Copyright © 2018 My Computer Forum Forum. All rights reserved.