Say Some Words About This Site


Hello Friends , Knowlegde is Good only if we share it with each other.So i am here to share my knowledge with u people.This site contain all computer related tricks and many more.But try all the tricks at ur own risk , i am not responsible for any damage.

Hope you all Understand the tips and tricks that is mention in this site , if u have any doubt then plz give ur feedback. I try to do my best.

Hope u Enjoy
...

CHAT WINDOW



25 February, 2008

HTML Introduction (Tutorial 1)...

HTML Introduction (Tutorial 1)...



In this HTML tutorial you will learn how to use HTML to create your own Web site.

HTML is very easy to learn !

I haved Covered all the things even ur most questions answers are found in my explanations. I have also include FAQ's for u easy .

understanding.

You will enjoy it!

______________________________________________________________________


Introduction:-

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 htm or html file extension.
* An HTML file can be created using a simple text editor.


______________________________________________________________________



HTML Requirements :-

1. If you are running Windows, start Notepad.

2. If you are on a Mac, start SimpleText.

3. In OSX start TextEdit and change the following preferences: Open the "Format" menu and select "Plain text" instead of "Rich text".

Then open the "Preferences" window under the "Text Edit" menu and select "Ignore rich text commands in HTML files". Your HTML

code will probably not work if you do not change the preferences above!



NOTE :-- For Easy Just make a seprate folder for it in ur hard drive . So that u can acess it easily.

______________________________________________________________________


How to save file :-

U can save ur file with two extensions HTM or HTML Extension.

When you save an HTML file, you can use either the .htm or the .html extension. With newer software we think it will be perfectly safe

to use .html.

eg:- File Name.html or File Name.htm


______________________________________________________________________


Mostly Tags Used in Html :-

1. <html>and </html>
2. <head> and </head>
3. <title> and </title>
4. <body> and</body>
5. <b> and </b>
6. <i> and </i>
6. <u> and </u>


______________________________________________________________________


Lets Start Tutorial :-

Type the following text In the Notepad :-




<html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html>





Save the file as "mypage.htm" , or "mypage.html"


______________________________________________________________________


Example Explained :-

✓ The first tag in your HTML document is <html>. This tag tells your browser that this is the start of an HTML document. The last tag in your document is </html>. This tag tells your browser that this is the end of the HTML document.

✓ The text between the <head> tag and </head> the tag is header information. Header information is not displayed in the browser window.

✓ The text between the <title> tags is the title of your document. The title is displayed in your browser's caption.

✓ The text between the <body> tags is the text that will be displayed in your browser.

✓ The text between the <b> and </b> tags will be displayed in a bold font.


______________________________________________________________________


► How to open the output file :-


Start your Internet browser. and follow these steps to see ur html code output:-

1. Select "Open" (or "Open Page") in the File menu of your browser.

2. A dialog box will appear. Select "Browse" (or "Choose File")

3. Locate the HTML file you just created - "mypage.htm" - select it and click "Open".

4. Now you should see an address in the dialog box, for example "C:\MyDocuments\mypage.htm". Click OK, and the browser will

display the page.

or you can just double click on the file where you save.


______________________________________________________________________


► Frequently Asked Questions :-


Ques: After I have edited an HTML file, I cannot view the result in my browser. Why?
Ans: Make sure that you have saved the file with a proper name and extension like "c:\mypage.htm". Also make sure that you use the same name when you open the file in your browser.

Ques: I have edited an HTML file, but the changes don't show in the browser. Why?
Ans: A browser caches pages so it doesn't have to read the same page twice. When you have modified a page, the browser doesn't know that. Use the browser's refresh/reload button to force the browser to reload the page.

Ques: What browser should I use?
Ans: You can do all the training with all of the well-known browsers, like Internet Explorer, Firefox, Netscape, or Opera. However, some of the examples in our advanced classes require the latest versions of the browsers.

Ques: Does my computer have to run Windows? What about a Mac?
Ans: You can do all your training on a non-Windows computer like a Mac.


______________________________________________________________________


I Think This Is Enough For First Tutorial .. :)


Reagrds :-

Manan Saini.

No comments: