HTML Introduction

HTML (Hyper Text Markup Language) is the foundation of every web page. By learning HTML, you can create and design web pages, format text, add images and videos, and create hyperlinks. In this introduction, we'll cover the basics of HTML structure, elements, and attributes.


Basic HTML Structure

Try yourself
        
            
<!DOCTYPE html> 
<html lang="en">
   <head>
      <title>My First Web Page</title>
   </head>
   <body>
      <h1>Heading1</h1>
      <p>Paragraph.</p>
   </body>
</html>
        
    
Explanation

Web browser

A web browser is software that displays web pages from the internet. It retrieves content from web servers and interprets web technologies like HTML, CSS, and JavaScript. Popular browsers include Google Chrome, Mozilla Firefox, Microsoft Edge, Apple Safari, and Opera.

browser results of rendering

HTML Elements: Tags, Content, and Examples

HTML elements are defined by a start tag, some content, and an optional end tag.

Example
Try yourself
        
            
<h1>Heading 1</h1>

        
    
Start tag Element content End tag
<h1> Heading 1 </h1>
<p> Paragraph </p>
<br> none none

Important Information


Benefits of Learning HTML


HTML Versions

The HyperText Markup Language (HTML) has been evolving since its inception in the early 1990s. There have been many different versions of HTML released over the years, each with its own set of features and improvements.

Here is a list of the major versions of HTML:

Important

HTML5 is the most recent version of HTML and is the most widely used version of HTML. It is supported by all major web browsers and is the recommended version of HTML for creating new web pages.

If you are new to HTML, I recommend starting with HTML5. There are many resources available to help you learn HTML5, including tutorials, articles, and videos.