Introduction to HTML

HTML :  Hypertext Markup Language

 

  1. HTML consists of a series of elements
  2. HTML elements are represented by tags
  3. We can create a static website by HTML only.

 

 <html>

         <head>

         <title></title></head>

         <body>

           hello

         </body>

        </html>
  • <!DOCTYPE html> declaration defines this document
  • <html> element is the root element of an HTML
  • <head> element contains meta information about the document
  • <title> element specifies a title for the document
  • <body> element contains the visible page content

 

An HTML document is made up of tiny little pieces of HTML elements which are called tags. We have opening and closing tags and we can format them like this: <html>

The closing tag follows the same format, only this time, we need to specify a slash after the less than sign, like so: </html>

There are also self closing tags, they are almost identical to the standard closing tags, expect we have the slash before the greater than sign, for example to display an image, we would have to write: <img />

There are of course certain words that should be between the less than and greater than signs, like <html> or <body> each one telling the browser how to render it.

Hits: 13

Share your thoughts