HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. It defines the structure of a webpage using elements like headings, paragraphs, links, images, and more.

Core HTML Elements

  • <h1> to <h6>: Define headings, with <h1> being the most important.

  • <p>: Defines a paragraph of text.

  • <a href="url">: Creates a hyperlink to another page or resource.

  • <img src="image.jpg" alt="description">: Embeds an image, with alt providing accessibility text.

  • <ul> and <li>: Create unordered lists (bulleted).

  • <ol> and <li>: Create ordered lists (numbered).

Basic HTML Structure

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My First Page</title>
</head>
<body>
  <h1>Welcome to My Website</h1>
  <p>This is my first paragraph.</p>
  <a href="https://example.com">Visit Example</a>
</body>
</html>

Tools to Write and Run HTML

  • Online Editors: Use platforms like OneCompiler or CodePen to write, run, and share HTML code instantly in your browser.

  • Local Editors: Use any plain text editor (e.g., VS Code, Notepad++) to write HTML files, save them with a .html extension, and open them in a web browser.

Learning Resources

  • FreeCodeCamp.org – Full beginner tutorial: Learn HTML – Full Tutorial for Beginners

  • MDN Web Docs – Official guide: HTML: Creating the content

  • W3Schools – Interactive HTML tutorial: HTML Tutorial

Note: HTML is the foundation of web development. After learning HTML, combine it with CSS for styling and JavaScript for interactivity.

🌐
W3Schools
w3schools.com › html › html_computercode_elements.asp
HTML Computer Code Elements
HTML contains several elements for defining user input and computer code.
🌐
OneCompiler
onecompiler.com › html
HTML Online Editor (Compiler, Interpreter & Runner)
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991.
People also ask

What does HTML do?
HTML gives a web page its structure. It's used to organize, format, and display a web page's content (like text, images, videos, and even games). HTML also makes it easier to navigate through the internet through hyperlinks.
🌐
codecademy.com
codecademy.com › learn › learn-html
Learn HTML Code | Codecademy
What do I need to know before learning HTML?
There aren't any prerequisites to learning HTML, so you can jump in and start building web pages.
🌐
codecademy.com
codecademy.com › learn › learn-html
Learn HTML Code | Codecademy
What kind of jobs can HTML get me?
HTML is a must if you're considering a career in web development, whether you want to become a Front-End, Back-End, or Full-Stack Developer. It can also be helpful for Web Designers, UX Designers, and Marketers.
🌐
codecademy.com
codecademy.com › learn › learn-html
Learn HTML Code | Codecademy
🌐
W3Schools
w3schools.com › tags › tag_code.asp
HTML code tag
<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hgroup> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <menu> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Learn_web_development › Getting_started › Your_first_website › Creating_the_content
HTML: Creating the content - Learn web development | MDN
HTML (HyperText Markup Language) is the code that is used to structure a web page and its content. This article provides a basic understanding of HTML and its functionality, and shows you how to create the basic content for your first website.
🌐
HTML.com
html.com
HTML For Beginners The Easy Way: Start Learning HTML & CSS Today »
HTML is the language in which most websites are written. HTML is used to create pages and make them functional. The code used to make them visually appealing is known as CSS and we shall focus on this in a later tutorial.
🌐
Codecademy
codecademy.com › learn › learn-html
Learn HTML Code | Codecademy
Fun fact: all websites use HTML — even this one. It’s a fundamental part of every web developer’s toolkit. HTML provides the content that gives web pages structure, by using elements and tags, you can add text, images, videos, forms, and more.
Rating: 4.6 ​ - ​ 56.7K votes
🌐
Quackit
quackit.com › html › codes
HTML Codes
Free HTML tutorial that explains how to code in HTML.
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › HTML › Reference › Elements › code
<code>: The Inline Code element - HTML | MDN
The <code> HTML element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code.
Find elsewhere
🌐
W3Schools
w3schools.com › html › html_basic.asp
HTML Basic
Click CTRL + U in an HTML page, or right-click on the page and select "View Page Source". This will open a new tab containing the HTML source code of the page.
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › html
HTML in Visual Studio Code
November 3, 2021 - VS Code also includes great Emmet support. As you type in HTML, we offer suggestions via HTML IntelliSense.
🌐
W3Schools
w3schools.com › html
HTML Tutorial
HTML Tables Table Borders Table Sizes Table Headers Padding & Spacing Colspan & Rowspan Table Styling Table Colgroup Code Challenge HTML Lists
🌐
IMPACT
impactplus.com › blog › 21-basic-html-codes-everyone-whos-not-a-developer-should-know
21 Basic HTML Codes Everyone Who’s Not a Developer Should Know
June 1, 2021 - Oh, and for all you puppy lovers out there — like me — here is the actual image I coded above: A line break is also an empty element, so it doesn't need to be closed. A line break is basically an intentional space between two lines of text, created with <br>. <p>Place a line break underneath this sentence. <br> Place a line break above this sentence.</p> ... Place a line break above this sentence. Once the HTML above is converted, you can tell that there's less space between the first line and the second one, as compared to separating two paragraphs with <p> tags.
🌐
freeCodeCamp
freecodecamp.org › news › introduction-to-html-basics
HTML for Beginners – HTML Basics With Code Examples
October 9, 2024 - Welcome to the exciting world of web development! In this beginner's guide, you will learn the fundamentals of HTML, the backbone of every web page. Imagine a tree: its roots anchor and nourish the entire plant. Similarly, HTML, the root of web devel...
🌐
W3Schools
w3schools.com › html › html_examples.asp
HTML Examples
HTML Tables Table Borders Table Sizes Table Headers Padding & Spacing Colspan & Rowspan Table Styling Table Colgroup Code Challenge HTML Lists
🌐
HTML AM
html.am › html-codes
HTML Codes
Free copy/paste HTML codes for your website. Use this WYSIWYG HTML editor to generate your code, then simply copy and paste into your website or MySpace page.
🌐
Shay Howe
learn.shayhowe.com › html-css › building-your-first-web-page
Building Your First Web Page - Learn to Code HTML & CSS
The preceding code shows the document beginning with the document type declaration, <!DOCTYPE html>, followed directly by the <html> element. Inside the <html> element come the <head> and <body> elements. The <head> element includes the character encoding of the page via the <meta charset="utf-8"> ...
🌐
W3Schools
w3schools.com › html › html_intro.asp
Introduction to HTML
HTML Tables Table Borders Table Sizes Table Headers Padding & Spacing Colspan & Rowspan Table Styling Table Colgroup Code Challenge HTML Lists
🌐
RapidTables
rapidtables.com › web › html › html-codes.html
HTML Symbols | HTML Emojis
All HTML character codes of text fonts and symbols from &#0; to &#65535; .
🌐
W3Schools
w3schools.com › html › html_editors.asp
HTML Editors
Then under "Open and Save", check the box that says "Display HTML files as HTML code instead of formatted text".