- HTML Tutorial
- HTML Introduction
- HTML Editors
- HTML Basic
- HTML Comments
- HTML Elements
- HTML Attributes
- HTML Id & Classes
- HTML Skeletal Tags
- HTML Heading Tags
- HTML Paragraph Tag
- HTML Line Break Tag
- HTML Pre Tag
- HTML Anchor Tag
- HTML Image Tag
- HTML Horizontal Line Tag
- HTML Inline & Block
- HTML Inline
- HTML Block
- HTML LInks
- HTML Images
- HTML Formatting
- HTML Head
- HTML Head
- HTML Title
- HTML Meta Elements
- HTML Favicon
- HTML Style
- HTML List
- HTML Lists
- HTML Unordered List
- HTML Ordered List
- HTML Description List
- HTML Table
- HTML Tables
- HTML Table Headers
- HTML Table Styling
- HTML Table Colgroup
- HTML Form
- HTML Forms
- HTML Form Elements
- HTML Form Attributes
- HTML Input Types
- HTML Input Attributes
- HTML Form Actions
- HTML Semantic
- HTML Semantics
- HTML Graphics & Media
- HTML Canvas
- HTML SVG
- HTML Video & Audio
- HTML Plug-ins
- iFrames in HTML
- HTML Miscellaneous Tags
- HTML Code Tag
- HTML Entities
- HTML Quotation
- HTML Global Attributes
- HTML Obsolete Tags
- HTML Emojis
- HTML Symbols
- HTML Events
- HTML Colors
HTML Introduction
HTML was introduced by Tim Berners-Lee, a British computer scientist, in 1991. While working at CERN, Berners-Lee envisioned a system where researchers could easily share and link documents across different computers. This vision became the World Wide Web, and HTML (Hypertext Markup Language) served as the foundational language used to describe the structure of those documents.
Think of HTML as the architectural blueprint of a website. Just as a blueprint defines where the walls, doors, and windows of a house go, HTML defines where the headings, paragraphs, images, and links appear on a web page. It isn't a programming language that handles logic (like math or data processing); instead, it is a markup language that tells the browser how to organize and label content so it makes sense to the user.
To get started, here are the core concepts that form the backbone of HTML:
- Structure: HTML documents are organized using a hierarchical tree of "elements." These elements are defined by tags enclosed in angle brackets < >. A standard document follows a specific skeleton: the <html> tag wraps the entire page, the <head> contains metadata (like the page title and character encoding), and the <body> contains the visible content that users actually see.
- Tags: Tags act as labels for your content. Most tags come in pairs: an opening tag
<p>and a closing tag</p>. The closing tag is identical to the opening tag but includes a forward slash. Common examples include:- <h1> to <h6>: For headings (H1 being the main title of the page).
- <p>: For standard blocks of text or paragraphs.
- <div>: A generic container used to group elements together, often used for styling with CSS or layout positioning.
- Attributes: Attributes provide additional instructions or information about an element. They are always placed inside the opening tag and usually come in name/value pairs like
name="value". For example, the <a> (anchor) tag uses thehrefattribute to tell the browser where a link should go, and thetarget="_blank"attribute to open that link in a new tab.
- Text Content: HTML allows you to wrap text in various tags to give it meaning (semantics). Beyond paragraphs and headings, you can use <ul> (unordered lists) for bullet points or <ol> (ordered lists) for numbered steps. Using the right tag for the right job is called "Semantic HTML," and it helps search engines understand your content better.
- Links and Images: The web is built on connections. The <a> tag creates hyperlinks that connect pages. To display visual content, we use the <img> tag. Interestingly, the image tag is "self-closing" or "void," meaning it doesn't wrap around text and therefore doesn't need a separate
</img>tag.
- Comments: Sometimes you need to leave notes for yourself or other developers to explain why a certain section was built a specific way. HTML comments look like this: <!-- This is a comment -->. The browser completely ignores these, so they won't appear on the live website, but they are visible to anyone who "Views Source" on your page.
- Doctype Declaration: Modern web pages should always start with <!DOCTYPE html>. This isn't actually an HTML tag; it’s a "preamble" that tells the browser to use the HTML5 standard.
By mastering these fundamental building blocks, you gain the ability to create structured, accessible, and professional web content. Every site you visit—from high-end SaaS platforms to simple personal blogs—relies on these exact principles to deliver information to the world.