LearnCode

A Simple Website to Learn Programming

Home Courses Learn HTML Learn CSS About / Contact

Learn HTML

What is HTML?

HTML stands for HyperText Markup Language. It is used to build the structure of a web page using tags such as headings, paragraphs, links, and images.

Basic HTML Structure

<html>
<head>
<title>Page Title</title>
</head>
<body>
Page content goes here
</body>
</html>

Headings and Paragraphs

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

Links

<a href="https://www.example.com">Click Here</a>

Images

<img src="picture.jpg" alt="A Picture" width="200">
Example of HTML code

Unordered List

<ul>
<li>Item One</li>
<li>Item Two</li>
</ul>

Ordered List

<ol>
<li>Step One</li>
<li>Step Two</li>
</ol>
  1. Learn the basic tags first
  2. Practice writing simple pages
  3. Move on to tables and forms

Tables

<table border="1">
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
</table>
Tag Purpose
<table> Creates a table
<tr> Creates a table row
<td> Creates a table cell

Forms

<form>
<input type="text" name="username">
<input type="submit" value="Submit">
</form>

Download Notes

Download HTML Notes PDF
Sir Signature

LearnCode - Student Project - 2026