473,770 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Internet explorer and HTML prob

8 New Member
Hi,

As I mentioned in the Introduction Forum I am full of enthusiasm but very low on Knowledge.

Using Sams HTML & XHTML book I am slowly reading and understanding the use of HTML but already I have a slight problem.

I have made up a sample HTML document just to check that what I have read I have understood...pl ease see belowe:

<html>
<head><title>Th e first web page</title></head>
<body>
In the beggining it was simple with an abacus
</body>
</html>

I wrote this on notepad, saved to a seperate file in my documents and made sure to save it as a text document.

I then tried to test it by opening up internet explorer, going to file..open and then selecting the document.
When opened it appeared just as it was on the notepad....is this correct as what i am reading shows it being opened up as if it was set up on the web..

I hope this is not a stupid question...if so apologies

Merv
May 18 '07 #1
5 1649
drhowarddrfine
7,435 Recognized Expert Expert
When you saved the file, you need to save it with the .html extension. It's probably saved as .txt. So, in notepad, go under file->save as and you'll be given the "all files" option. Enter your file name with the .html (or .htm) instead of .txt.

So now you are 'off to the races'! You should look at the articles mentioned in the sticky at the top of this board. In particular, we want to get you started on the right foot.

First, modern pages need a proper doctype to function properly. Internet Explorer, specifically, goes into a bad mode called "quirks" if you don't use one.

Second, download and install Firefox and do all your testing in that browser. It, along with Opera, are the most modern, standards compliant browsers on the net while IE is nine years behind web standards. It will screw you up more than anything.

Third, do not concern yourself with Xhtml. It doesn't work in old, buggy non-standard IE anyway. Learn html well.

Fourth, after you know html, learn CSS. HTML creates the structure and content of your page. CSS creates its presentation. Modern sites never use HTML for presentation. Depending on the age of your book, it may throw such attributes at you such as "align=righ t" or "center" which are all deprecated now. Yes, they'll work but 'deprecated' means they are frowned upon and will one day be phased out.

Fifth, learn how to use the validators, both html and css, and use them often.
May 18 '07 #2
jhardman
3,406 Recognized Expert Specialist
Merv,

I code in notepad too, and I have noticed this as well. The problem is that when you save as a text document, notepad adds a second file extension to the end of the file name. For example if you type in
Expand|Select|Wrap|Line Numbers
  1. myFirstTest.html
and save as a plain text document, notepad saves it as
Expand|Select|Wrap|Line Numbers
  1. myFirstTest.html.txt
The trick to prevent this is to put the file name in quotes when you save it:
Expand|Select|Wrap|Line Numbers
  1. "myFirstTest.html"
This makes notepad prompt you for a confirmation, but I stopped reading what it asks a long time ago. You just say yes and it works correctly.

Let me know if this helps.

Jared
May 18 '07 #3
jhardman
3,406 Recognized Expert Specialist
When you saved the file, you need to save it with the .html extension. It's probably saved as .txt. So, in notepad, go under file->save as and you'll be given the "all files" option. Enter your file name with the .html (or .htm) instead of .txt.

(more in a moment)
Jinx! (up to 20 characters)

Jared
May 18 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
Jinx! (up to 20 characters)

Jared
Yes, I am a god. 123
May 18 '07 #5
Mutant Merv
8 New Member
This is great guys...I am off and running again...most probably only for a short while but heh....lol

Really appreciate the time you put into my novice question

The only thing I expect I can help you with is Building questions as I am a builder which explains my lack of understanding in the PC world.

Thanks
Merv
May 19 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1888
by: Yarik | last post by:
Hello, When I open an HTML document by Internet Explorer 6 and then print the document on a color inkjet printer, some of the colors are rendered incorrectly (they appear much darker than they should be, almost black). The exact version of IE is 6.0.2800.1106 (with all patches applied). The printer is Canon S330. Examples of "suffering" colors are: "green", "teal", "purple" (and the general impression is that anything near the
4
2346
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with ASP.NET. Recently, I group of user have problems with it because the values of the sessions were not stored correctly (the application save the username in a login page, then other page try to get it and the result was always ""). We restart the web...
3
3068
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
3
2351
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review interpretation): "Half stolen from Firefox, half is buggy - including the stolen part". Download: <http://www.download.com/Internet-Explorer-7/3000-2356_4-10497433.html?tag=nl.e415>
1
3509
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that products events which I want to consume (sink) within Internet Explorer. I'm following the instructions at: ms-http://support.microsoft.com/default.aspx?kbid=313891.
3
11498
by: laredotornado | last post by:
Hi, This problem only affects PC IE. On a secured page (a page visited via https), there is a link that reads -- "Download HTML File". The link connects to this page <?php require("../../util_fns.php"); session_start();
2
2823
by: =?Utf-8?B?YW5ub3llZCB3aXRoIHZpc3Rh?= | last post by:
I have a new Toshiba Satellite laptop. It came with Vista and IE 7. When I close an Exporer window (using the X in the corner) I get a message that says "Internet Explorer has stopped working and windows is trying to fix the problem" It thinks for a few seconds and then another box dialog box pops up and says "Internet Explorer is restarting" It then shuts down every IE window I have open and restarts. I also found that it does that...
1
4851
by: avpkills2002 | last post by:
I seem to be getting this weird problem in Internet explorer. I have written a code for parsing a XML file and displaying the output. The code works perfectly fine with ffx(Firefox).However is not working in Internet Explorer.(I m using Internet Explorer 6.0). The code is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
2
3155
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error message as in alert box as " Internet Explorer cannot open the Internet site http://google.citycarrentals.com.au/viewalllocations.php . Operation aborted". It is working in Mozilla . Here i mentioned my code . I am facing this problem several...
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10257
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8931
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.