Entertainment Technology Entertainment Entertainment
Main Page Forum Ringtones SMS Messages Games Free Downloads Contact UsTelepk Map
Make This Page Your Home Page Make TelePK.Com Your Favorite Website Telepk Header
IP: 38.103.63.17 COUNTRY: FLAG:
Mobile Zone
  1. PTCL TelePhone Directory
  2. SMS Messages
  3. SmS Jokes
  4. Sms Dictionary
  5. Memory Card Rates
  6. Mobile Phones
  7. Mobile Phone Articles
  8. Mobile Tutorials
  9. Mobile Games
  10. Mobile Wallpapers
  11. Secret Codes
  12. Ring Tones
  13. Web To SmS
  14. Telecom Reviews
  15. SMS Worldwide

Entertainment
  1. Islam
  2. Elections
  3. Home Decoration
  4. Beauty And Health
  5. Tech News
  6. Kitchen
  7. Greeting Cards
  8. Messenger Zone
  9. Online Chat
  10. Articles
  11. Downloads
  12. City Codes
  13. Know Your Heart
  14. Palmistry
  15. Myspace
  16. Make Money
  17. World News
  18. Map Guide
  19. Eid Day
  20. Pakistan
  21. Pakistani Singers
  22. Personalities
  23. Emergency No.s
  24. Funny Jokes
  25. Funny Pictures
  26. Kids
  27. Songs
  28. Sports Online
  29. Spotlight
  30. Student Visa
  31. Education
  32. Online Games
  33. Study Abroad
  34. Tutorials
  35. Immigration
  36. Urdu
  37. Weather Status
  38. Webmaster Tools
  39. Valentine Day
  40. Video Clips
  41. Videos

Search Engine
Google

Active Visitors
  1. 293

Sponsored Links



HTML Tutorial

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

Do You Want to Try It?

If you are running Windows, start Notepad.

If you are on a Mac start SimpleText.

In OSX start TextEdit and change the following preferences: Select (in the preferences window) "Plain text" instead of "Rich text" and then select "Ignore rich text commands in HTML files". This is very important because if you don't do this HTML codes probably won't work.

Type in the following text:

<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". 

Start your Internet browser. Select "Open" (or "Open Page") in the File menu of your browser. A dialog box will appear. Select "Browse" (or "Choose File") and locate the HTML file you just created - "mypage.htm" - select it and click "Open". 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.


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 the </head> 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.


HTM or HTML Extension?

When you save an HTML file, you can use either the .htm or the .html extension. We have used .htm in our examples. It might be a bad habit inherited from the past when some of the commonly used software only allowed three letter extensions.

With newer software we think it will be perfectly safe to use .html.


Note on HTML Editors:

You can easily edit HTML files using a WYSIWYG (what you see is what you get) editor like FrontPage, Claris Home Page, or Adobe PageMill instead of writing your markup tags in a plain text file.

But if you want to be a skillful Web developer, we strongly recommend that you use a plain text editor to learn your primer HTML.


Frequently Asked Questions

Q: After I have edited an HTML file, I cannot view the result in my browser. Why?
A:
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.

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

Q: What browser should I use?
A:
You can do all the training with all of the common browsers, like Internet Explorer, Mozilla, Netscape, or Opera. However, some of the examples in our advanced classes require the latest versions of the browsers.

Q: Does my computer have to run Windows? What about a Mac?
A:
You can do all your training on a non-Windows computer like a Mac. However, some of the examples in our advanced classes require a newer version of Windows, like Windows 98 or Windows 2000.

HTML Basics

[HTML Tutorial] [HTML Introduction] [HTML Elements] [HTML Basic Tags] [HTML Formatting] [HTML Entities] [HTML Links] [HTML Frames] [HTML Tables] [HTML Lists] [HTML Forms] [HTML Images] [HTML Background] [HTML Colors] [HTML Colorvalues] [HTML Colornames]

HTML Advance

[HTML Layout] [HTML Fonts] [HTML 4.0 Why] [HTML Styles] [HTML Head] [HTML Meta] [HTML URLs] [HTML Scripts] [HTML Attributes] [HTML Events] [HTML URL-encode] [HTML Webserver] [HTML Summary]

HTML References

[HTML Tag List] [HTML Attributes] [HTML Events] [HTML Colornames] [HTML ASCII] [HTML Entities] [HTML URL Encode] [HTTP Messages]



More Tutorials...
  1. HTML Tutorial
  1. XHTML Tutorial
  1. CSS Tutorial
  1. Javascript Tutorial
  1. DHTML Tutorial
  1. VBScript Tutorial
  1. TCP/IP Tutorial
  1. ASP Tutorial
  1. AJAX Tutorial
  1. CFML Tutorial
  1. PHP Tutorial
  1. WML Tutorial
  1. Flash Tutorial
  1. XML Tutorial
  1. RSS Tutorial
  1. Web Services
  1. ADO Tutorial
  1. MySQL Tutorial
  1. SQL Tutorial
  1. HTML Tips
  1. SEO Tips
  1. MYSQL Tips
  1. PHP Tips


Send this page to a friend

   
Play Games
Janubaba Janubaba Click here to visit The Pak Ranks
Most Viewed Services:
  1. AIM Away Messages
  2. AIM Buddy Icons
  3. BBQ Recipes
  4. Burger Recipes
  5. Fruit Salad Recipes
  6. Funny Pictures
  7. Spider-Man
  8. Spider-Man The Film
  9. Spider-Man Wallpapers
  10. Family
  11. Family Fun
  12. Windows Live Messenger
  13. Easter E-Cards
  14. 2008 Festivals
  15. Christian Festivals
  16. Msn Display Pictures
  17. Yahoo Avatars
  18. Myspace
  19. Nokia 5700
  20. Nokia 5070
  21. Bob Woolmer
  22. SMS Messages
  23. SMS Jokes
  24. MSN Web Messenger
  25. Download MSN Messenger
  26. Download Latest Msn Messenger
  27. Multi MSN
  28. Download Multi MSN
  29. MSN Emoticon
  30. MSN Nick Name
  31. MSN Screen Names
  32. MSN Nick
  33. MSN Names
  34. Cool MSN Emoticon
  35. Urdu
  36. Urdu Jokes
  37. Urdu Dictionary
  38. Urdu Poetry
  39. Automobile
  40. Cars
  41. New Cars
  42. Food
  43. Kitchen
  44. Cell Phone
  45. Free Mobile Game
  46. Free Mobile Wallpapers
  47. Mobile Phone Secret Code
  48. Free Web SMS
  49. Free Worldwide Sms
  50. Islam Way
  51. Home Interior Decoration
  52. Health And Beauty Tip
  53. Latest Tech News
  54. Kitchen Remodeling
  55. Free E Greeting Card
  56. Know Heart
  57. Palmistry Line
  58. Make Money Online
  59. Myspace HTML Codes
  60. Myspace Toolbox
  61. Toyota RAV4
  62. Nokia Cell Phone
  63. Sony Ericsson Cell Phone
  64. Blackberry Phone
  65. Funny Joke
  1. MSN Avatars
  2. MSN Smileys
  3. MSN Display Pics
  4. MSN Display Pictures
  5. Pakistan Cricket Team
  6. Spicy Food
  7. Health Food
  8. Pakistan
  9. AOL Block Checker
  10. Urdu News
  11. Yahoo Web Messenger
  12. Download Yahoo Messenger
  13. Download Latest Messenger Version Yahoo
  14. Multi Yahoo Messenger
  15. Download Multi Yahoo Messenger
  16. Yahoo Emoticon
  17. Yahoo Hidden Emoticon
  18. Yahoo Avatars
  19. Yahoo Display Pictures
  20. Yahoo Animated Avatars
  21. Yahoo Smileys
  22. Free Cooking Recipe
  23. Hindu Festivals
  24. Sikh Festivals
  25. March Madness
  26. Tutorials
  27. Article of Mobile Phone
  28. Abrar Ul Haq
  29. Cricket News
  30. Latest World News
  31. Personality
  32. Emergency Phone Numbers
  33. Family Kid
  34. Online Spotlight
  35. Student Visa
  36. Download Online Game
  37. Study Abroad
  38. Immigration Law
  39. College University
  40. Web Master Tool
  41. Weather Report
  42. Funny Video Clips
  43. Funny SMS Joke
  44. Urdu SMS
  45. New Year SMS Joke
  46. Free SMS Joke
  47. AIM Block Checker
  48. City Code
  49. Find Article
  50. Dual Sim T500
  51. Asus P535
  52. Asus Cell Phone
  53. Sky Scrappers
  54. Funny Jokes
  55. History of Pakistan
  56. Government of Pakistan
  57. Lahore Resolution
  58. English Chat
  59. Online Chat Rooms
  60. Computer Wallpaper
  61. Software Downloads
  62. Samsung i710
  63. Ali Zafar
  64. Atif Aslam



Powered By : Mux Soft Inc.

© All Rights Reserved : Pakistan : Privacy Policy : Sitemaps : XML, TEXT, ROR, Google Base Feed, HTML