HTML Basics

HTML Introduction HTML Basic HTML Comments HTML Tags/Elements HTML Attributes HTML Formatting HTML Block and Inline HTML Charsets HTML Classes HTML Colors HTML Div HTML Headings HTML Id HTML Iframes HTML Images HTML File Paths HTML Tables HTML Layout HTML Lists HTML Links <a> HTML Paragraphs HTML Quotations HTML JavaScript HTML Emojis HTML URL Encode HTML Entities HTML Computercode HTML Symbols HTML Styles

HTML Forms

HTML Forms HTML Form Elements HTML Form Attributes HTML Input Attributes HTML Input Regex HTML Input Form Attributes HTML Input Types

HTML SEO

HTML Head HTML Page Title HTML Responsive HTML Semantics HTML Favicon

HTML Graphics

HTML Canvas HTML SVG

HTML Media

HTML Media HTML Audio HTML Video

HTML Reference

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 DOCTYPE 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 option output p param picture pre progress q rp rt ruby s samp script search section select small source span strike strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr

Introduction to HTML

HTML, or HyperText Markup Language, is the standard markup language used to create web pages. It forms the building blocks of all basic websites and is essential for web development. HTML documents describe the structure of a webpage and contain a series of elements that tell the browser how to display content.

What is HTML?

HTML stands for HyperText Markup Language. It is not a programming language but a markup language that defines the structure of web content. HTML consists of a series of elements, which you use to enclose or wrap different parts of your content to make it appear or behave in a certain way. For example, you might want to turn a list of items into a bullet list, enclose text to make it bold, or embed images and other media.

Basic Structure of an HTML Document

An HTML document has two main components:

The HTML Head Tag

The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. The information inside the head isn’t displayed directly on the web page. It typically contains:

The HTML Body Tag

The <body> element contains all the content that you see displayed on the web page, such as text, images, videos, tables, lists, and more. The body tag defines the document's body and contains all the contents of a webpage that are directly visible to the users.

Example:

<html>
   <head>
       <title>My Web Page</title>
   </head>
   <body>
       <h1>Welcome to my Web Page</h1>
       <p>This is a paragraph of text.</p>
   </body>
</html>    
Result:

Why Learn HTML?

Learning HTML is the first step in creating web content and understanding web technology. As it forms the structure of all web pages, knowing HTML is crucial for any web development or digital content role. It allows you to:

Conclusion

HTML is easy to learn and widely used, making it an essential skill for anyone involved in web development or content creation. Understanding HTML is the foundation upon which more complex web technologies are built, including CSS for styling and JavaScript for functionality.