View video tutorial

HTML Introduction

HTML

HTML - Hyper Text Markup Language.

What is HTML?


A markup language to describe the contents on a web page.

It renders the page with contents according to the tag rules.

HTML is the collection of elements to put contents in the web page.

There are nearly 100 elements in HTML5.

Anyone with no programming knowledge can learn HTML.

HTML itself can create only static page.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<!DOCTYPE html>
<html>
<head>
    <title>HTML Basic Example</title>
</head>
<body>
    <p>Welcome to w3context.</p>
    <p>Six levels of heading.</p>
    <h1>Highest level of Heading h1.</h1>
    <h2>Heading level h2.</h2>
    <h3>Heading level h3.</h3>
    <h4>Heading level h4.</h4>
    <h5>Heading level h5.</h5>
    <h6>Lowest level of Heading h6.</h6>
    <p>This is a Paragraph.</p>
</body>
</html>
Try it Now »

Click on the "Try it Now" button to see how it works.


Sample Code

Copy each file contents and paste it to your project, run and see the final output when everything is correct.

Explain Sample code


<!DOCTYPE html> indicates the browser must use HTML5 version document.

<html> element is the parent tag of the HTML document.

<head> contains information related to the web page that is not displayed to the user.

<title> It appears as the name of the page title.

<body> This contains the page content that will display on the web page.

<p> It defines a paragraph.

<h1> It defines a largest heading.

<h6> It defines a smallest heading.

Example

<h1>Heading for a content</h1>
<p>Here are the details about the content.</p>
Try it Now »

Click on the "Try it Now" button to see how it works.