Introduction to HTML

Hi guys, how are you? I hope you are all fine. Here is an article for you with an introduction to the Hyper Text Markup Language (HTML).

Introduction to HTML

HTML History


HTML was originally developed by Tim Berners-Lee while at CREN and popularized by Mosaic browser at NCSA. During 1990 with the invention of HTML growth of web increased.

HTML

  • HTML is the language for web pages
  • HTML stands for Hyper Text Markup Language
  • HTML is not a programming language but a Markup Language
  • HTML document made from markup tags that describes the HTML contents
  • HTML documents is also called web pages

HTML Tags

  • HTML markups are called HTML tags
  • HTML tags are keywords surrounded by angled brackets, for example <html>
  • HTML tags normally come in pairs, a starting tag and ending tag
  • The starting tag contains a less than (<) sign tag name and greater than sign (>), for example <p>
  • Ending and closing tags consist of a less than (<) sign followed by a forward slash(/) followed by the tag name followed by the greater than sign (>), for example </p>

Tag example

  1. <tagname> content </tagname>  
  2. <p> This is a paragraph</p>  
HTML Elements

HTML elements contain a starting tag <p> and a closing tag </p> and the contents between them.
  1. <p> Hi guys i'm Salman Aslman Auther at C# Corner</p>  
Requirements

Before you start working on HTML you need the followings things.

Web browser
  • Google chrome
  • Firefox
  • Safari

Text Editor

  • Notepad
  • Notepad+
  • Dreamweaver
  • TextEdit

Basic Structure of HTML document

A basic HTML document contains a minimum of the following four tags:

  • <html>: Main container for HTML document
  • <head>: Container for header information
  • <title>: Contains a title for HTML document
  • <body>: Visible contents of a web page
Step 1: Open Notepad and write the following code.  
  1. <html>  
  2.    <head>   
  3.       <title>Introduction to HTML</title>  
  4.    </head>  
  5.    <body>  
  6.       Hi Guys me Salman Aslam from C# Corner platform.  
  7.    </body>  
  8. </html>  
Step 2: Save the document with a .htm or .html extension, for example intro.html.

Step 3: Go to the directory where you saved the HTML document.

Step 4: Double-click the document to open it and view the page you have made.

Output



That's it for today, go and make your first webpage, if you have any problem please comment below. Stay connected to C# Corner and wait for my next tutorials on headings and paragraphs in HTML.

 

Up Next
    Ebook Download
    View all
    Learn
    View all