HTML Introduction


HTML Introduction

HTML stands for HyperText Markup Language. It was created by Berners-Lee. Web pages can be created and made functional using HTML. HTML is based on two important things: tags and attributes. Tags are placed in angular brackets whereas attributes help to provide more information to the tags. The most recent version is HTML 5.

Few editors which can be used are notepad++, visual studio code, atom, sublime text 3, vim, etc.

Some advantages are as follows:

  • Easy to use
  • Free of cost
  • Supported by all browsers
  • Platform independent
  • Widely used

Disadvantages are as follows:

  • Complex to handle a lot of code
  • A lot of code has to be written to create simple webpages
  • Only static web pages can be created
  • Platform independent
  • Security is poor

Example No.1:

<html> <head> <title>Page Title</title> </head> <body> <h1>Knowledge2life</h1> <p>Learning Website</p> </body> </html>

OUTPUT:

Knowledge2life

Welcome to Knowledge2life

Example No.2:

<html> <head> <title>Page Title</title> </head> <body> <h1>Knowledge2life</h1> <h2>Knowledge2life</h2> <p>Welcome to Knowledge2life</p> </body> </html>

OUTPUT:

Knowledge2life

Knowledge2life

Welcome to Knowlegde2life