What is HTML?

what is html

HTML is "Hyper Text markup Language" which is used for the creation of web pages.HTML allows texts,audio,pictures and videos to be embedded and can be used to create interactive forms.The language is written in the form of html elements enclosed in angle brackets(<,>).What are tags and elements?They are briefly described below.

Lets start with basic lesson to create html program.
<html>
</html>
The signs "<,>" are called tags.Tags are what make up the HTML language.They contains instructions that tell web browser what to do.You will notice the tag start and with angle brackets.The text that appears right after the opening angle bracket is called the element.The element describes what kind of tag this is.In this case,the HTML element tells the web browser that this is an HTML file.Down at the bottom "</html>" tag starts with a forward slash "/". The slash is used to close the element.All elements eventually need to closed after they are opened.As shown below with short example.

<html>
</html>


In the above example,Element "html" is opened and just below it is closed with "/" tag.Opening and closing an element is another way of saing that you are starting and ending something.In the above case we are starting the HTML program with "<html>" and ending with "</html>".Everything contained between these two tags is considered to be the HTML program.So,how are the HTML program prepared to build websites?Short description is shown below.

<html>
<head>
</head>
</html>


Just described above,every elements must be ended with slash (/) tag.In above example,we have added "<head>" section as it is ended up with "</head>".The head section contains information about HTML files. 

Moving forward, To build up website or any other pages,next attribute "<body>" is added.For clear view check out the below example.

<html>
<head>
</head>
<body>
</body>
</html>

Slightly different than the previous example right?We have added "<body>" section and closed it with "</body>" tag.Do not forget to close each and every tag as shown in the example.The <body> section is for content that will be displayed when we view with a web browser.So,how are we gonna add text in our websites?Let's broaden mind with the further example.

<html>
<head>
</head>
<body>
This is my first Tutorial.
</body>
</html>


As shown small program above,we have put some text between "<body>" and "</body>",The text which are put in between those two tags are called the contents of web pages.When we browse something in webpages,we see texts and pictures over that pages.Those contents always starts after <body> and ends with </body>.

You have some texts in your body,now how are you gonna give title to that page?Its very important to give some name to your page,isn't it?To give title to your page,do the following.

<html>
<head>
<title>About HTML</title>
</head>
<body>
This is my first Tutorial
</body>
</html>


In the above program,we have added "<title>" element and added some text and closed with "</title>".This is very initial step of about how to prepare web pages using HTML.

After learning some basic steps,follow the process to practice on your own.

  • Open notepad.
  • Type small html program as tought in above tutorial and save the content as ".html" or ".htm" format.For example, save the program as tutorial.html.
  • Now open the saved file by double clicking into it,it will get opened in your default browser showing how you have created your first web page.

It is as simple as blinking eyes,isn't it?This article is for the beginners who don't have even a little knowledge about HTML programming.For more attributes and scripts,please visit us regularly and Comments are much appreciated for further feedbacks and more tutorials.
Thank you.. :)

Post a Comment

 
Top