Thursday, 4 June 2020

#2 HTML INTRODUCTION

HTML is the standard markup language for Web pages.With HTML you can create your own Website. HTML describes the structure of a Web page. HTML consists of a series of elements. HTML elements tell the browser how to display the content

This blog follows the latest HTML 5 standard.
HTML is easy to learn - You will enjoy it!😀😀😀


A Simple HTML Document

<!DOCTYPE html>             
A simple HTML Document view on Browser
After saving the file with .html extension
  <html>
    <head>
      <title>Page Title</title>
    </head>
    <body>
      <h1>First Heading</h1>
      <p>first paragraph.</p>
    </body>

  </html>

This will look like on Browser...


  • <!DOCTYPE html>declaration defines that this document is an HTML5 document
  • <html> element is the root element of an HTML page
  • <head> element contains meta information about the HTML page
  • <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)
  • <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
  • <h1> element defines a large heading
  • <p> element defines a paragraph

What is HTML Element ?

An HTML element is defined by a starting tag. If the element contains other content, it ends with a closing tag.
Some examples are:
  •    <p>.......</p>
  •   <h1>......</h1>
  •  <div>.....</div>
There are some HTML elements which don't need to be closed, such as <img.../><hr /> and <br /> elements.

Next we are going to learn more about HTML Element .....  😊


No comments:

Post a Comment