Clients
See all clients...
Top Posters
1
admin
12
2
testmaniac
0
3 dmormos 0
4 jorge 0
5 delapine 0
6 ScubaGamma 0
7 sylvieb 0
8 Mark 0
9 Volker 0
10 srziga 0
Who's Online
7 user(s) are online (4 user(s) are browsing Home)

Members: 0
Guests: 7

more...
Headlines
Our Supreme Servers RSS News
Freelancing & Lime Exchange
Contests @ Lime Exchange
  •   Best Blog
  •   Best Profile
Writing & Translation
WordPress
Le Grand Journal
TechRepublic
     
 
[WiwiHome :: This page]  

What's an HTML File?

What is HTML and what is an HTML File?

HTML stands for Hyper Text Markup Language,
An HTML file is a text file containing small markup tags,
The markup tags tell the Web browser how to display the page,
An HTML file must have an html or htm file extension,
An HTML file can be created using a simple text editor such as "notepad" or "Wordpad" (in Windows), "Simpletext" (on Mac).

HTM or HTML Extension?

When you save an HTML file, you can use either .htm or .html.
I think It's a bad habit to use .htm because I'm from the later school ;-D
.htm comes from the past and I would suggest to stick to .html.
If you still want to use .htm, it's fine, just be consistant, and use it all the time.

You can easily write HTML files using "Frontpage" or "Dreamweaver" instead of writing them in plain text of course, however, if you want to learn your primer HTML, use "notepad", and you will also be able to go behind these WYSIWYG (what you see is what you get) software as they have a mind of their own and have the tendencies to write useless extra code ("Frontpage" especially).

Here's a tiny example of what an HTML File looks like:



Title of your page


Hello World!




This my first shot at HTML

"How KOOL"!


Bellow is what it would look like in your browser... go ahead and try it... copy the content of the above table and past it inside your "Notepad" or other, save the file as "myfirst.html" without the quotes somewhere (just remember where), open your favorite browser, go to "File", "Open File" or "Open", "Browse" for you Notepad File named "myfirst.html".

Hello World!


This my first shot at HTML
"How KOOL"!

The first tag in your HTML document is . This tag tells your browser that this is the start of an HTML document.

The text between the tag and the tag is header information. Header information is not displayed in the browser window.

The text between the and tags is the title of your document. The title is displayed in your browser's head caption.

The text between the and tags is the text that will be displayed in your browser.

The text between the

and

tags will be displayed in a H1 Format.

The
tag is an horizontal rule which is the horizontal line you see.

The text between the and tags will be displayed in a bold font.

The
tag is a brake in your text line.

The text between the and tags will be displayed in italic.

The last tag in your document is . This tag tells your browser that this is the end of the HTML document.

What's the issue with
and
?

These are what we call Empty Elements. Empty Elements must have a closing tag, or the opening tag must end with />.

For example,
is not valid; the correct form is

or
...

... And for backwards-compatibility with browsers that are not XML-enabled, there must be a space before the /> (for example,
, not
).

Following are other empty elements:

area, base, basefont, br, col, frame, hr, img, input, isindex, link, meta, and param.

For more requirements described in this section, please visit "What is XHTML?"...

If you have further questions you may want to click on the "F.A.Q.s" button in the Top Menu, and if you cannot find what you're looking for there, click on the "Request a Q&A" button.


AddThis Social Bookmark Button
Last modified: 16.09.07 by admin  

Comments
The comments are owned by the poster. We aren't responsible for their content.
 
     
Login
Username:

Password:


Lost Password?

Register now!
Partners
See all partners...
Recent clips list
New Members
Did you know?
You can Publish an Article Here!

How do I...
View a recently edited page in my browser?

Search
Recent items List
 
Terms of Use Privacy Policy