HTML Introduction

In simple words HTML is the basic language used to build websites.

What is HTML?

HTML stands for HyperText Markup Language.
It is used to create the structure of a web page.

Using HTML, we can create:

  • Headings
  • Paragraphs
  • Images
  • Links
  • Buttons
  • Tables
  • Forms

HTML Example

<!DOCTYPE html>
<html>
<head>
  <title>My First Website</title>
</head>
<body>

  <h1>Hello World</h1>
  <p>This is my first HTML page.</p>

</body>
</html>

HTML Example Explanation

  • <!DOCTYPE html>
    Tells the browser that this is an HTML5 document.
  • <html>
    The main container of the whole HTML page.
  • <head>
    Contains page information like title and meta data.
  • <title>
    Shows the page name on the browser tab.
  • <body>
    Contains all visible content of the web page.
  • <h1>
    Defines a main heading.
  • <p>
    Defines a paragraph.

HTML Tags and What They Do

Tag What it Does
<h1> – <h6> Makes headings (big to small)
<p> Writes a paragraph (normal text)
<br> Makes a new line
<hr> Makes a horizontal line
<a> Makes a link (clickable)
<img> Shows a picture
<button> Makes a button you can click
<ul> Makes a bulleted list
<ol> Makes a numbered list
<li> Adds an item to a list
No comments yet.
Contribute Your Comment

Comments must follow NextGSchool policies. All comments are reviewed.

comment url