HTML logo

HTML Basics

HTML stands for HyperText Markup Language. It is the standard markup language to create webpages. Web browsers can read HTML files and render them into visible or audible web pages. On this web page there are some HTML basics to help you understand HTML better and how it works. Before we start, you need to understand the difference between CSS and HTML.

HTML:

HTML is a language for describing web pages.

CSS:

CSS defines how to display HTML elements.

-- HTML basic tags --
Tag Description
<html> ... </html> Declares the web page to be written in HTML
<head> ... </head> Delimits the page's head
<title> ... </title> Defines the title (not displayed on the page)
<body> ... </body> Delimits the page's body
<hn> ... </hn> Delimits a level n heading
<b> ... </b> Set ... in boldface
<i> ... </i> Set ... in italics
<center> ... </center> Center ... on the page horizontally
<ul> ... </ul> Brackets an unordered (bulleted) list
<ol> ... </ol> Brackets a numbered list
<li> ... </li> Brackets an item in an ordered or a numbered list
<br> Forces a line brake here
<p> Starts a paragraph
<hr> Inserts a horizontal rule
<img src="..."> Displays an image here
<a href="..."> ... </a> Defines a hyperlink
&nbsp; Non-breaking space

The 3 Basic Rules For Writing HTML

You can check out the video below for some HTML basics if you're too lazy to read this stuff that I wrote above:

Next