/    Sign up×
Community /Pin to ProfileBookmark

I have just started out with HTML and I am following a manual.Having typed the following into wordpad

<HTML>
<HEAD>LearningHTMLHomepage</TITLE>
<TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>

and trying to place some text/content between the 2 body tags, nothing shows.

I think the problem is that I`m using iE6 which was downloaded from microsoft website, when I save the file as a text file ( index.htm) open up iE6 and browse for the file the htm element of the naming of the file sometimes disappears, when I take it from the browser into ie6 the wordpad just appears as above ( it all written in notepad with tags and all)

Could somebody please point out what I am doing wrong?

Thanks

to post a comment
HTML

12 Comments(s)

Copy linkTweet thisAlerts:
@HesterJul 03.2003 — Make sure you save it with the right extension (.htm). Sometimes Notepad likes to save it with ".txt" on the end. Otherwise, can't see anything wrong with the code!
Copy linkTweet thisAlerts:
@Login_HereJul 03.2003 — I have some ideas. First is that you forgot to write

<font>

For example if you want to use arial u write

<font face="arial">

And then u might want to have size 5 you write

<font face="arial" size="5">

And another tip is to use word to get a html document.

For example:

Start Word press File>Save as

Then write index as a filename and choose the filtype html.
Copy linkTweet thisAlerts:
@CharlesJul 03.2003 — [font=georgia]In HTML the start and end tags for the HTML, HEAD and BODY elements are optional, but specifying the document type definition, the character encoding and the title are required. And note, there is no FONT element anymore. It was done away with back in [i]1997[/i].

[font=monospace]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

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

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Some Title</title>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>[/font]

And you would do very well to make friends with the validator ar http://validator.w3.org/. MSIE and some other browsers are very forgiving of HTML errors. If you are not careful you will learn a whole bunch of bad habits and then wonder why your page only works on one browser.[/font]
Copy linkTweet thisAlerts:
@HesterJul 03.2003 — Even without the font tag, the page should still display as it will use the native font set in the browser.
Copy linkTweet thisAlerts:
@robot88888888Jul 03.2003 — You started your title after the open head tag. It needs to start after the open title tag.

<HTML>

<HEAD>

<TITLE>LearningHTMLHomepage</TITLE>

</HEAD>

<BODY>

</BODY>

</HTML>

Just a side note:

You might want to get used to typing your tags using lower case. If the web world switches to XHTML instead of HTML, you'll thank yourself later. For more info on XHTML, check out [URL=http://www.w3.org/TR/xhtml1/]http://www.w3.org/TR/xhtml1/[/URL].
Copy linkTweet thisAlerts:
@Robert_WellockJul 03.2003 — If you wanted to use XHTML it would look similar to the following:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Learning HTML Homepage&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Hello World&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@robot88888888Jul 03.2003 — Robert,

Have you heard anything about the XML declaration causing any problems? I've been told not to use the declaration, for now, since some older browsers get confused by it.

<?xml version="1.0" encoding="UTF-8"?>
Copy linkTweet thisAlerts:
@Robert_WellockJul 03.2003 — M$ IE 6.0 is so bug ridden that it enters quirks mode if it is present which is what you'd get with IE 5.5 or below anyway. Netscape 4.7x has no major issues nor does Opera 5.0x

For XHTML:

… Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol. …[/quote]
Copy linkTweet thisAlerts:
@abectechJul 03.2003 — i think robot88888888 had it right. Your title would include the other tags because the second title wasnt ended. If youuse the text he put int it will appear correct. IF youhave any other questions emaill me at [email][email protected][/email]
Copy linkTweet thisAlerts:
@Aronya1Jul 04.2003 — [i]Originally posted by zapet [/i]

[B]I have just started out with HTML and I am following a manual.Having typed the following into wordpad[/B][/QUOTE]

Hi zapet,

First suggestion: use Notepad instead of Wordpad.


[b]

<HTML>

<HEAD>LearningHTMLHomepage</TITLE>

<TITLE>

</HEAD>

<BODY>

</BODY>

</HTML>

[/B]
[/QUOTE]

If this code is accurate the way you presented it here, what your browser should be displaying is this:

LearningHTMLHomepage

The reason is that you didn't properly open your <title> tag. You closed it first, then opened it. Everything after that open <title> tag is [i]supposed[/i] to be hidden. Correct your use of that tag, and you'll see what you are putting between the two <body> tags.


[b]

I think the problem is that I`m using iE6 which was downloaded from microsoft website, when I save the file as a text file ( index.htm) open up iE6 and browse for the file the htm element of the naming of the file sometimes disappears, when I take it from the browser into ie6 the wordpad just appears as above ( it all written in notepad with tags and all)



Could somebody please point out what I am doing wrong?



Thanks [/B]
[/QUOTE]
What you described here will leave you with a file name of WHATEVERFILE.HTM.TXT. That is a text file, not a html file, and your browser is displaying exactly what it should: the exact contents of a text file. When saving your file, be sure to choose 'All Files' in the 'Save as type' field, and remember to include the .htm extension on your file name.

Hope this helps, and be sure to let us know how things go.

Aronya1
Copy linkTweet thisAlerts:
@HesterJul 04.2003 — [i]Originally posted by robot88888888 [/i]Just a side note:

You might want to get used to typing your tags using lower case. If the web world switches to XHTML instead of HTML, you'll thank yourself later.[/QUOTE]


XHTML and XML can be written in either lower or upper case. So long as the format remains the same throughout the document.
Copy linkTweet thisAlerts:
@CharlesJul 04.2003 — [i]Originally posted by Hester [/i]

[B]XHTML and XML can be written in either lower or upper case. So long as the format remains the same throughout the document. [/B][/QUOTE]
[font=georgia]I'm afraid that that's wrong. XML is case sensitive; elements must match the case as they were declaired in the DTD. In the XHTML DTDs elements and attributes are all lower case.[/font]
×

Success!

Help @zapet spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...