Html - Introduction

HTML :

Course Designed by Shubham Game.
HyperText Markup Language (HTML) is a language used for describing the contents and the layout of webpages.
HTML was created by Berners-Lee in 1991. Currently are using its HTML-5 version which was published in 2012.
There are many tags and attributes HTML which works together to tell the browser how to display them.
Tags in HTML are surrounded by angular brackets. 
Advantages of HTML:
  1. It is widely used.
  2. No special software is required.
  3. Every browser supports HTML.
  4. Easy to learn and use.
  5. Finding an error is easy.
  6. One can integrate HTML with CSS, JavaScript, php etc.
Disadvantages of HTML :
  1. HTML is not a programming language.
  2. Need to write a long code to make a simple webpage.
  3. There is no separate debugger in HTML.
  4. If we write a long code it increases complexity to understand and remove errors from it.
  5. Errors are not displayed or identified by HTML.
  6. No calculation can be made in HTML, even a date can’t be displayed in HTML.

Let’s start with an simple example of HTML document :
<html>
<head>
<title> First Code </Title>
</head>
<body>
Hello World !
</body>
</html>

Steps to write HTML code :
  1. Open your favourite code editor.
  2. Type above code.
  3. Save the typed code on any location say desktop with file extension as .html
  4. Open the saved file.
  5. The file will be opened using your default browser.
The above code will show you the following output :
Screen Clipping
Ok, This was pretty simple.



Lets understand what are the tags and attributes we used in above code. Let’s look at them one-by-one.

No comments:

Post a Comment