Thursday, June 9, 2011

Hyper Text Markup Language (HTML)

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 better to use html extension.

An HTML file can be created using a simple text editor or any text editor can be used.
Open notepad and Type the following text:

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



Output

This is my first homepage. This text is in bold


Save the file as "myfirst.htm".
Start Internet browser and locate the HTML file you just created - "myfirst.htm" - select same and click "Open " (or "Open Page") in the File menu of your browser. A dialog box will appear. Select "Browse" (or "Choose File"). Now you should see an address in the dialog box, for example "C:\MyDocuments\myfirst.htm". Click OK. The page will be displayed.



.

No comments:

Post a Comment