Know about HTML

know about HTML
source:google

HTML

HTML stands for Hyper Text markup language. It is the standard markuip language for web pages. With HTML we can create our own websites. HTML describes the structure/layout of a web page.HTML consists of a series of elements and also tell the browser how to display the content.

What is a html element?

A html element is defined by a start tag,content and an end tag:
<tagname> Content </tagname>

following Simple HTML document,

<!DOCTYPE html>
<html lang=”en”>
 <head>
  <title>New Web Page</title>
 </head>
 <body>
  <h1>
  Hello Dude, This is heading element.
  </h1>
  <p>Paragraph Element: My First Paragraph</p>
 </body>
</html>


Explaination of above example.

  • !Doctype html: It defines that the document is a HTML5 document.
  • html element is the root element of a HTML/web pages. Its End element html that is used in last of HTML/web pages.
  • head element contains meta information about the web page or link of javascript/CSS files etc.
  • title element defines the title of web page that is shown in browser’s title bar or in particular tab’s of browser.
  • body element is main element of web page because  it defines the doucment’s/page’s body. It is a container for all visible contents,such as headings,paragraphs,hyperlinks,lists(Ordered list & unordered lists),images etc.
  • h1 element defines a large heading
  • p element defines a paragraph

Web Browsers

Web browsers are use to read the html documents and display them correctly. A browser doesn’t display the html tags,according to html tags show in layout on browsers.
Note: Only the content inside the <body> section (the white area above) will be displayed in a browser.

Leave a Reply

Your email address will not be published. Required fields are marked *