HTML: My First Home Page


Understanding HyperText Markup Language or the HTML is very easy as 1,2,3 if one has the courage to learn its deep environment.

Wikipedia described HTML as the main markup language for displaying web pages and other information that can be displayed in a web browser.

HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like "<html>"), within the web page content. HTML tags most commonly come in pairs like "<h1>" and "</h1>", although some tags, known as empty elements, are unpaired, for example  <img>. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). In between these tags web designers can add text, tags, comments and other types of text-based content.

<html> ----------->opening tag for our page
</html> -----------> the closing tag


Writing your first Home Page.
First, open a text editor like notepad then type the following:


<html>

<body>

My First Home Page

</body>

</html>

.....save it as "index.html" or any filename you want but do not remove the html extension. Now open your file on your favorite browser like chrome, IE, Firefox, etc...

The output should be like this:




*The main content of our page is inside the <body> and </body> tags.

No comments:

Post a Comment