Introduction to HTML
What is HTML?
- HTML stands for HyperText Markup Language.
 - HTML is the standard Markup language for creating web pages.
 - It describes the structure of the web-page.
 - It consists of elemental series.
 - HTML guides the browser on how to display the content on the web page in an organized manner.
 
A Sample HTML code:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>Explanation of the sample code:
- The <!DOCTYPE html> declaration tells that the following document is HTML5 document.
 - The <HTML> element is the root element of an html page.
 - The <head> element contains the meta information about the HTML page.
 - The <title> element defines the title for the HTML page ( which is shown in the browser's title bar or in the page's tab)
 - The <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.
 - The <h1> element defines a large heading.
 - The <p> element defines a paragraph.
 
What is an element in HTML?
An HTML element is defined by a start tag and an end tag with some content in between both the tags:
<tagname> Content goes here... </tagname>
The HTML element in everything from the start tag to the end tag:
<h1> My First Heading </h1>
<p> My First paragraph </p>
| 
   START TAG  | 
  
   ELEMENT’s CONTENT  | 
  
   END TAG  | 
 
| 
    <h1>  | 
  
   My First heading  | 
  
   </h1>  | 
 
| 
   <p>  | 
  
   My first paragraph  | 
  
   </p>  | 
 
| 
   <br>  | 
  
   None  | 
  
   None  | 
 
Web Browser :
The purpose of a web browser (Chrome, Edge, Safari, Mozilla firefox) is to read HTML documents and display them correctly.
A Browser does not display the html tags but uses them to determine how to display the document:


3 Comments
very informative thanks...
ReplyDeleteliked it very much....truly helpful for beginners...thanks
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete