You have basic HTML document now, to see some result put the following code in title and body tags.
<..html>
<..head>
<..title>This is document title
<../head>
<..body>
<..h1>This is a heading
<..p>Document description goes here.....
<../body>
<../html>
Note: the .. in the code are not included in the coding.


Now you have created one HTML page and you can use a Web Browser to open this HTML file to see the result. Hope you understood that Web Pages are nothing but they are simple HTML files with some content which can be rendered using Web Browsers.

Here , ,...,

etc. are called HTML tags. HTML tags are building blocks of an HTML document nd we will learn all the HTML tags in subsequent chapters.



NOTE: One HTML file can have extension as .htm or .html. So you can use either of them based on your comfort.
HTML Document Structure:

An HTML document starts and ends with and >/html> tags. These tags tell the browser that the entire document is composed in HTML. Inside these two tags, the document is split into two sections:

    The ... elements, which contain information about the document such as title of the document, author of the document etc. Information inside this tag does not display outside.

    The ... elements, which contain the real content of the document that you see on your screen.

HTML Tags and Elements:

HTML language is a markup language and we use many tags to markup text. In the above example you have seen , etc. are called HTML tags or HTML elements.

Every tag consists of a tag name, sometimes followed by an optional list of tag attributes , all placed between opening and closing brackets (< and >). The simplest tag is nothing more than a name appropriately enclosed in brackets, such as and . More complicated tags contain one or more attributes , which specify or modify the behavior of the tag.

According to the HTML standard, tag and attribute names are not case-sensitive. There's no difference in effect between , , , or even ; they are all equivalent. But with XHTML, case is important: all current standard tag and attribute names are in lowercase.
HTML is Forgiving?

A very good quality associated with all the browsers is that they would not give any error if you have not put any HTML tag or attribute properly. They will just ignore that tag or attribute and will apply only correct tags and attributes before displaying the result.

We can not say, HTML is forgiving because this is just a markup language and required to format documents.
What is Next:

Next you will see baisc HTML tags in more detail and you will have understanding on HTML tags attributes also.
Axact

Author

My name is Dave, Am a cool IT Geek, computer analyst and a tutor. I do alot of computer stuffs like programming, web development, blogging, data administrator, computer security and lots more. Feel free to contact me if want more informations and tutorials.

Post A Comment:

0 comments: