HTML CSS JavaScript SEO Python Posts Privacy About Contact

HTML Introduction

HTML is the standard markup language for creating Web pages.

HTML consists of a series of elements which tell the browser how to display content. Each element is represented by a tag like <h1>, <p>, or <body>.

Try It — A Simple HTML Document

Edit the code below and click Run to see your changes live:

Preview

HTML Elements Explained

TagWhat It Does
<!DOCTYPE html>Declares this is an HTML5 document
<html>The root element — wraps all content
<head>Contains meta info (title, links, etc.)
<title>Sets the browser tab/window title
<body>All visible page content goes here
<h1>The most important heading
<p>A paragraph of text

Tip: HTML is not case-sensitive — <P> and <p> do the same thing. However, lowercase is the modern standard.