HTML Introduction

https://www.itcomputerguruji.com/2021/04/html-introduction.html

Introduction to HTML:-

HTML is stand for Hyper Text Markup Language. It is not a programming language, it is a markup language used to create web page. A markup language has a set of markup tags and HTML uses these tags to describe web pages. The first version of HTML was written by Tim Berners-Lee in 1993. Every HTML documents contains HTML tags and plain texts. The W3C has defined HTML as an application of the Standard Generalized Markup Language (SGML).

HTML Tags:- 

HTML markup tags are usually called HTML tags- 
  • HTML tags are keywords surrounded by angle brackets (< >) like <html> 
  • HTML tags normally come in pairs like <b> and </b> 
  • The first tag in a pair is the start tag, the second tag is the end tag
  • Start and end tags are also called opening tags and closing tags.
HTML tags can be two types:-
  • Paired Tag (Container)
  • Singular Tags (Empty)

Container Tags: Tags which have both the opening and closing i.e. <TAG> and </TAG> are called container tags. 

Empty Tags: Tags, which have only opening and no ending, are called empty tags. The <HR>, which is used to draw horizontal, rule across the width of the document, and line break <BR> tags are empty tags.

Example:- 

<html> 
<head></head>
<body> 
<h1>My First Heading</h1> 
<p>My first paragraph.</p> 
</body> 
</html>

Example Explained:- 
  • The text between <html> and </html> describes the web page 
  • The text between <body> and </body> is the visible page content 
  • The text between <h1> and </h1> is displayed as a heading 
  • The text between <p> and </p> is displayed as a paragraph

Post a Comment

0 Comments