Skip to main content

Introduction to HTML

HTML logo


What is HTML??

  • HTML stands for Hyper Text Markup Language
  • HTML is the standard markup language for creating Web pages
  • 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
  • HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.

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>

Sample Explained

  • The <!DOCTYPE html> declaration specifies that the file is an HTML file and it should be treated as such by the browser
  • The <html> element is the root element of an HTML page... It must be defined
  • The <head> element contains all the meta information about the site... It is like the setting of the page the User of the page doesn't see it i.e IT DOESN'T SHOW IN THE BROWSER
  • The <title> element obviously tells the browser that any content written in between should be the
  • 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 title of the page

Next Tutorial: How to edit, view and save html files on your laptop/desktop

Comments