HTML stands for Hypertext Markup Language, and it is the most widely used language to write Web Pages.
- Hypertext refers to the way in which Web pages (HTML documents) are linked together. Thus the link available on a webpage are called Hypertext.
- As its name suggests, HTML is a Markup Language which means you use HTML to simply "mark up" a text document with tags that tell a Web browser how to structure it to display.
Now, HTML is being widely used to format web pages with the help of different tags available in HTML language.
Basic HTML Document
In its simplest form, following is an example of an HTML document:This is document title
This is a heading Document content goes here..... Either you can use Try it option available at the top right corner of the code box to check the result of this HTML code, or let's save it in an HTML file test.htm using your favorite text editor. Finally open it using a web browser like Internet Explorer or Google Chrome, or Firefox etc. It must show the following output:
HTML Tags
As told earlier, HTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle bracesand tag has its closing tag tag etc. Above example of HTML document uses folloiwng tags:
Tag | Description |
---|---|
This tag defines the document type and HTML version. | |
This tag encloses the complete HTML document and mainly comprises of document header which is represented by ... and document body which is represented by ... tags. | |
This tag represents the document's header which can keep other HTML tags like | |
The | |
This tag represents the document's body which keeps other HTML tags like
, etc. | |
This tag represents the heading. | |
| This tag represents a paragraph. |
To learn HTML, you will need to study various tags and understand how do they behave while formatting a textual document. Learning HTML is simple as users have to learn the usage of different tags in order to format the text or images to make a beautiful webpage.
World Wide Web Consortium (W3C) recommends to use lowercase tags starting from HTML 4.
HTML Document Structure
A typical HTML document will have following structure:
Document declaration tag
Document header related tags Document body related tags
We will study all the header and body tags in subsequent chapters, for now let's see what is document declaration tag.
The Declaration
The declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration:
There are many other declaration types which can be used in HTML document depending on what version of HTML is being used. We will see more details on this while discussing tag along with other HTML tags.
Post a Comment
0 comments
Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.