New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Firefox, create a web page


Post Reply New Thread Subscribe

 
Thread Tools
mj519078

 
Member Since: Mar 17, 2011
Posts: 1
mj519078 is on a distinguished road

mj519078 is offline
Hi,
First time trying to make a web page. Here the content of my index.html file. When I open the file with firefox, the content of the file is displayed as a text file instead of a nice web page. Thank you for any tip. Michel

<html>
<head>
<title>My personal website</title>
</head>
<body>
<h1>My personal website</h1>
<h2>Startpage</h2>
<h3>Welcome</h3>
</body>
</html>
QUOTE Thanks
louishen

 
louishen's Avatar
 
Member Since: Oct 22, 2007
Location: London
Posts: 8,951
louishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant future
Mac Specs: Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver

louishen is offline
Try giving it a doc type

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Member of the Month September 2008 & August 2012 | Found advice useful? – use the rep system
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,354
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
It's good form to have a DOCTYPE declared (more here) so take louishen's advice but know that it's not necessary for the page to work. Simple question: did you save the page with the htm or html extension? If not, Firefox is probably reading it as plain text and is thus just presenting it.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« A problem with http request to a webobjects site | links in iframes »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Any simple, free web page developer software? lrd Web Design and Hosting 10 06-27-2011 08:31 PM
Change default 'access restricted' web page ddot OS X - Operating System 0 12-20-2010 02:45 AM
Play Asteroids… in any web page (even here) Lifeisabeach Schweb's Lounge 1 09-30-2010 12:44 AM
Web Browsers novicew OS X - Apps and Games 80 04-10-2010 12:02 PM

All times are GMT -4. The time now is 04:02 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?