HTML5 | Introduction Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report HTML5 is the fifth version of Hypertext Markup Language (HTML), a standard language used to structure webpages. It defines how content on a webpage should be structured and displayed. Here are some key points of HTML5Multimedia Support: Embeds audio and video without plugins.New Form Controls: Includes input types like date and email.Web Storage: Stores data offline for better performance.Semantic Elements: Uses tags like <header> and <footer> for better structure.Improved Performance: Faster and more efficient, especially on mobile.Here is a simple HTML5 example HTML <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Simple HTML Page</title> </head> <body> <header> <h1>Hello, World!</h1> </header> <main> <p>This is a simple HTML5 page.</p> </main> <footer> <p>@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved</p> </footer> </body> </html> It defines a simple HTML5 page with DOCTYPE, <html>, <head>, and <body> tags.Includes a character set (UTF-8) and viewport settings for mobile responsiveness.Contains a header, main content, and footer with basic text content.Evolution of HTMLHTML has gone through several changes over the years to keep up with the growing needs of web development. These changes have helped improve website design, functionality, and accessibility. Here's an overview of how it has evolved.Early Web Browser Development:In the early days of the web, major browser creators like Microsoft Internet Explorer and Mosaic Netscape introduced browser-specific elements to improve the appearance of web pages for their browsers.This led to the creation of distinct versions of websites tailored for Internet Explorer and Netscape by the late 1990s.HTML 3.2 (1996):The World Wide Web Consortium (W3C) recommended the creation of HTML 3.2 in 1996.This standard included commonly used HTML elements and introduced presentational extensions, like the <center> and <font> elements, which were developed during the browser rivalry between Internet Explorer and Netscape.HTML 4.0 (1998) and HTML 4.01 (1999):HTML 4.0, released in 1998, and its update HTML 4.01 in 1999, focused on separating content structure from presentation.These versions emphasized improving accessibility and moving presentation elements to the newly introduced Cascading Style Sheets (CSS) standard.New Added Elements in HTML 5HTML5 introduced several new elements that help structure a webpage better and make it more interactive. These elements not only improve the design but also make the code more readable and accessible. Here are some key elements of HTML5:<article>: The <article> tag is used to represent an article. More specifically, the content within the <article> tag is independent from the other content of the site (even though it can be related).<aside>: The <aside> tag is used to describe the main object of the web page in a shorter way like a highlighter. It basically identifies the content that is related to the primary content of the web page but does not constitute the main intent of the primary page. The <aside> tag contains mainly author information, links, related content and so on.<figcaption>: The <figcaption> tag in HTML is used to set a caption to the figure element in a document.<figure>: The <figure> tag in HTML is used to add self-contained content like illustrations, diagrams, photos or codes listing in a document. It is related to main flow, but it can be used in any position of a document and the figure goes with the flow of the document and if it is removed it should not affect the flow of the document.<header>: It contains the section heading as well as other content, such as a navigation links, table of contents, etc.<footer>: The <footer> tag in HTML is used to define a footer of HTML document. This section contains the footer information (author information, copyright information, carriers etc.). The footer tag is used within body tag. The <footer> tag is new in the HTML 5. The footer elements require a start tag as well as an end tag.<main>: Delineates the main content of the body of a document or web app.<mark>: The <mark> tag in HTML is used to define the marked text. It is used to highlight the part of the text in the paragraph.<nav>: The <nav> tag is used to declaring the navigational section in HTML documents. Websites typically have sections dedicated to navigational links, which enables user to navigate the site. These links can be placed inside a nav tag.<section>: It demarcates a thematic grouping of content.<details>: The <details> tag is used for the content/information which is initially hidden but could be displayed if the user wishes to see it. This tag is used to create interactive widget which user can open or close it. The content of details tag is visible when open the set attributes.<summary>: The <summary> tag in HTML is used to define a summary for the <details> element. The <summary> element is used along with the <details> element and provides a summary visible to the user. When the summary is clicked by the user, the content placed inside the <details> element becomes visible which was previously hidden. The <summary> tag was added in HTML 5. The <summary> tag requires both starting and ending tag.<time>: The <time> tag is used to display the human-readable data/time. It can also be used to encode dates and times in a machine-readable form. The main advantage for users is that they can offer to add birthday reminders or scheduled events in their calendars and search engines can produce smarter search results.<bdi>: The <bdi> tag refers to the Bi-Directional Isolation. It differentiates a text from other text that may be formatted in different direction. This tag is used when a user generated text with an unknown direction.<wbr>: The <wbr> tag in HTML stands for word break opportunity and is used to define the position within the text which is treated as a line break by the browser. It is mostly used when the used word is too long and there are chances that the browser may break lines at the wrong place for fitting the text.<datalist>: The <datalist> tag is used to provide autocomplete feature in the HTML files. It can be used with input tag, so that users can easily fill the data in the forms using select the data.<keygen>: The <keygen> tag in HTML is used to specify a key-pair generator field in a form. The purpose of <keygen> element is to provide a secure way to authenticate users. When a form is submitted then two keys are generated, private key and public key. The private key stored locally, and the public key is sent to the server. The public key is used to generate client certificate to authenticate user in future.<output>: The <output> tag in HTML is used to represent the result of a calculation performed by the client-side script such as JavaScript.<progress>: It is used to represent the progress of a task. It also defines how much work is done and how much is left to download a task. It is not used to represent the disk space or relevant query.<svg>: It is the Scalable Vector Graphics.<canvas>: The <canvas> tag in HTML is used to draw graphics on web page using JavaScript. It can be used to draw paths, boxes, texts, gradient and adding images. By default, it does not contain border and text.<audio>: It defines the music or audio content.<embed>: Defines containers for external applications (usually a video player).<source>: It defines the sources for <video> and <audio>.<track>: It defines the tracks for <video> and <audio>.<video>: It defines the video content.Features of HTML5HTML5 introduces several new elements and attributes to improve web development:Semantic Elements:New tags like <article>, <aside>, <nav>, <header>, <footer>, and <section> provide meaning and structure to the content, improving both accessibility and SEO.Multimedia Support:Native support for <audio> and <video> tags removes the need for third-party plugins like Flash.Canvas API:Allows drawing graphics, animations, and games directly in the browser using JavaScript.Geolocation API:Provides access to the user's geographical location (with permission), enabling location-based services.Web Storage (localStorage and sessionStorage):Local storage (localStorage) and session storage (sessionStorage) provide client-side data storage, improving performance and enabling offline functionality.Web Workers:Allows background processing of JavaScript, improving performance by preventing blocking of the main thread.Form Enhancements:New input types (e.g., date, email, number) and form validation make forms easier and more efficient to create.Drag and Drop API:Allows users to drag and drop elements within a web page or between applications, enhancing interactivity.SVG Integration:Improved support for Scalable Vector Graphics (SVG), allowing for resolution-independent vector graphics to be embedded directly into HTML.WebSocket API:Enables real-time, bidirectional communication bet.Deprecated Elements in HTML5HTML5 has removed several outdated elements, replacing them with newer, more flexible solutions:Removed ElementsUse Instead Elements<acronym><abbr><applet><object><basefont>CSS<big>CSS<center>CSS<dir><ul><font>CSS<frame> None<frameset> None<noframes> None <isindex> None <strike>CSS, <s> or <del><tt>CSSHTML5 AdvantagesMultimedia Support: Native audio and video tags for easier media embedding.Better Performance: Faster loading times with fewer dependencies.Cross-Platform: Works across all major browsers and mobile devices.Geolocation: Access users’ location for location-based features.Offline Capability: Works offline with Web Storage and AppCache.Simplified Code: New semantic tags for cleaner, more readable code.Mobile-Friendly: Optimized for a smoother mobile experience.HTML5 DisadvantagesBrowser Inconsistencies: Older browsers may not fully support HTML5 features.Mobile Compatibility: Some older mobile devices may struggle with certain HTML5 features.Security Risks: New features like Web Storage can potentially expose user data if not handled properly.Complexity: Advanced features like WebSockets and APIs can be challenging for beginners.Lack of Support in Older Internet Explorer Versions: Some older versions of IE (like IE 8 and below) do not support HTML5 at all.More Example of HTML5Adding a Video Using the <video> Tag HTML <html> <body> <h1>HTML5 Video Example</h1> <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> Your browser does not support the video tag. </video> </body> </html> In this example,The <video> tag is used to embed a video in the HTML page.The controls attribute adds play, pause, and volume control buttons.The <source> tag specifies the video file and format. If the video is not supported, the text inside the <video> tag will be displayed.Using the <canvas> Element for Drawing HTML <html> <body> <h1>HTML5 Canvas Example</h1> <canvas id="myCanvas" width="200" height="200"></canvas> <script> var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "blue"; ctx.fillRect(50, 50, 100, 100); </script> </body> </html> In this example,The <canvas> tag is used to create an area for drawing graphics using JavaScript.The getContext(“2d”) method is used to set up a 2D drawing context on the canvas.The fillRect method draws a blue rectangle within the canvas.Using the <progress> Element to Show Task Progress HTML <html> <body> <h1>HTML5 Progress Bar Example</h1> <progress value="70" max="100"></progress> </body> </html> The <progress> tag is used to display a progress bar on the webpage.The value attribute sets the current progress, and the max attribute defines the maximum value.Best Practices of Using HTML5Use Semantic Tags: Improve SEO and accessibility by using tags like <header>, <footer>, <article>, and <section>.Ensure Cross-Browser Compatibility: Test your code across multiple browsers, especially older versions.Use <meta charset=”UTF-8″>: Always specify the character encoding at the start to avoid encoding issues.Mobile Responsiveness: Use the <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> tag for mobile-friendly designs.Browser Support for HTML5Apple Safari, Google Chrome, Mozilla Firefox, and Opera (latest versions) provide extensive support for HTML5 features.Internet Explorer 9.0 supports some HTML5 functionalities, although it is considered outdated.Mobile browsers on iPhones,iPads, and Android devices offer excellent HTML5 support.These mobile browsers ensure smooth access to modern web apps and features, providing a smooth experience on smartphones and tablets. Introduction to Client Side and HTML Comment More infoAdvertise with us K kartikgoel1999 Follow Improve Article Tags : Web Technologies HTML HTML5 Similar Reads HTML Tutorial HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on the web. It tells the web browser how to display text, links, images, and other forms of multimedia on a webpage. HTML sets up the basic structure of a website, and then CSS and JavaScript 11 min read BasicsHTML IntroductionHTML stands for Hyper Text Markup Language, which is the core language used to structure content on the web. It organizes text, images, links, and media using tags and elements that browsers can interpret. As of 2025, over 95% of websites rely on HTML alongside CSS and JavaScript, making it a fundam 6 min read HTML EditorsAn HTML Editor is a software application designed to help users create and modify HTML code. It often includes features like syntax highlighting, tag completion, and error detection, which facilitate the coding process. There are two main types of HTML editors: Text-Based Editors - Allow direct codi 5 min read HTML BasicsHTML (HyperText Markup Language) is the standard markup language used to create and structure web pages. It defines the layout of a webpage using elements and tags, allowing for the display of text, images, links, and multimedia content. As the foundation of nearly all websites, HTML is used in over 7 min read HTML Structure & ElementsHTML ElementsAn HTML Element consists of a start tag, content, and an end tag, which together define the element's structure and functionality. Elements are the basic building blocks of a webpage and can represent different types of content, such as text, links, images, or headings.For example, the <p> ele 5 min read HTML AttributesHTML Attributes are special words used within the opening tag of an HTML element. They provide additional information about HTML elements. HTML attributes are used to configure and adjust the element's behavior, appearance, or functionality in a variety of ways. Each attribute has a name and a value 8 min read HTML HeadingsHTML headings are used to define the titles and subtitles of sections on a webpage. They help organize the content and create a structure that is easy to navigate.Proper use of headings enhances readability by organizing content into clear sections.Search engines utilize headings to understand page 4 min read HTML ParagraphsA paragraph in HTML is simply a block of text enclosed within the <p> tag. The <p> tag helps divide content into manageable, readable sections. Itâs the go-to element for wrapping text in a web page that is meant to be displayed as a distinct paragraph.Syntax:<p> Some Content... 5 min read HTML Text FormattingHTML text formatting refers to the use of specific HTML tags to modify the appearance and structure of text on a webpage. It allows you to style text in different ways, such as making it bold, italic, underlined, highlighted, or struck-through. Table of ContentCategories of HTML Text FormattingLogic 4 min read HTML Block and Inline ElementsHTML elements are either block-level, which structure the layout and span full width (like <div> or <p>), or inline, which styles content within blocks without breaking the flow (like <span> or <a>). This distinction covers 80â90% of common HTML usage.Inline and Block Level E 3 min read HTML CharsetsHTML charsets define how characters are represented in a web document. The character encoding ensures that text appears correctly across different devices and platforms.The <meta> tag's charset attribute is used to specify which character encoding the HTML document uses. By setting the charset 4 min read HTML ListHTML ListsAn HTML List allows you to organize data on web pages into an ordered or unordered format to make the information easier to read and visually appealing. HTML Lists are very helpful for creating structured, accessible content in web development.Types of HTML ListsThere are three main types of lists i 5 min read HTML Ordered ListsAn HTML Ordered List is created using the <ol> tag to display items in a specific sequence, typically numbered or alphabetically ordered. Each list item is defined using the <li> (list item) tag. Ordered lists are widely used for instructions, rankings, and step-by-step guidesâappearing 5 min read HTML Unordered ListsAn unordered list in HTML is used to group a set of list items that don't need to be in a specific order. The items in an unordered list are usually displayed with bullet points by default. Here are the some key features of HTML unordered lists:No Order: Lists items without a specific sequence.Custo 4 min read HTML Description ListsAn HTML Description List is not as commonly used as unordered or ordered lists but serves an important purpose for displaying name-value pairs. This type of list is marked up using three tags: <dl>, <dt>, and <dd>.<dl> (Description List): This tag defines the description list 3 min read HTML Visuals & MediaHTML ColorsHTML Colors can be applied to text, backgrounds, borders, links, forms, tables, etc. This article provides an in-depth look at how colors can be applied to various elements such as text, backgrounds, borders, links, forms, and tables in HTML. We will explore different color formats including hexadec 11 min read HTML Links HyperlinksHTML Links, also known as hyperlinks, are defined by the <a> tag in HTML, which stands for "anchor." These links are essential for navigating between web pages and directing users to different sites, documents, or sections within the same page. The basic attributes of the <a> tag include 3 min read HTML ImagesThe HTML <img> tag is used to embed an image in web pages by linking them. It creates a placeholder for the image, defined by attributes like src, width, height, and alt, and does not require a closing tag.There are two ways to insert the images into a webpage:By providing a full path or addre 7 min read HTML FaviconA favicon (short for "favorite icon") is a small yet important image that appears next to your websiteâs title in the browser tab. Also known as a tab icon or bookmark icon, it helps users quickly identify and return to your site. Studies show that over 85% of users rely on visual cues like favicons 4 min read HTML VideoThe <video> element in HTML is used to show video content on web pages. It supports various video formats, including MP4, WebM, and Ogg. It is introduced in HTML5.Scroll down to the End, there is a Tutorial Video which is a live example of the Video Element displaying on this webpage.Syntax: 4 min read HTML Layout & DesignHTML TablesHTML (HyperText Markup Language) is the standard markup language used to create and structure web pages. It defines the layout of a webpage using elements and tags, allowing for the display of text, images, links, and multimedia content. As the foundation of nearly all websites, HTML is used in over 10 min read HTML IframesAn iframe, or Inline Frame, is an HTML element represented by the <iframe> tag. It functions as a 'window' on your webpage through which visitors can view and interact with another webpage from a different source.Iframes are used for various purposes like:Embedding Multimedia: Easily integrate 4 min read HTML LayoutHTML layouts are a technique used to divide a web page into multiple sections, making it easier to apply styles, organize content, and manage operations efficiently. This division improves readability, accessibility, and overall user experience.HTML layout is achieved through elements like <heade 4 min read HTML File PathsHTML file paths specify the location of files or resources that a webpage needs to access, such as images, videos, scripts, or other HTML documents. These paths tell the web browser where to find the files required to display the content correctly or to execute scripts as intended. To insert a file 3 min read HTML Projects& Advanced TopicsHTML FormsHTML forms, defined using the <form> Tags are essential for collecting user input on web pages. They incorporate a variety of interactive controls such as text fields, numeric inputs, email fields, password fields, checkboxes, radio buttons, and submit buttons. Over 85% of websites rely on for 5 min read HTML5 SemanticsHTML5 introduced a range of semantic elements that clearly describe their purpose in human and machine-readable language. Unlike non-semantic elements, which provide no information about their content, semantic elements clearly define their content. For instance, <form>, <table>, and 6 min read HTML URL EncodingA Uniform Resource Locator (URL) is simply the address of a website to access the website content. Web browsers retrieve pages from web servers using a URL (Uniform Resource Locator).What is URL Encoding?URL Encoding is the process of converting the URL into a valid format that is accepted by web br 4 min read HTML Responsive Web DesignHTML Responsive Web Design is a modern approach to web development that ensures web pages look great on any device, from phones and tablets to desktop computers. It focuses on making HTML elements automatically adjustâresizing, hiding, or repositioning based on the screen size. This approach guarant 11 min read Top 10 Projects For Beginners To Practice HTML and CSS SkillsLearning to code is an exciting journey, especially when stepping into the world of programming with HTML and CSSâthe foundation of every website you see today. For most beginners, these two building blocks are the perfect starting point to explore the creative side of web development, designing vis 8 min read HTML Tutorial ReferencesHTML Tags - A to Z ListHTML Tags are fundamental elements used to structure and format content on web pages. They provide instructions to web browsers on how to render text, images, links, and other media.HTML tags are enclosed in angle brackets < > and usually come in pairs: an opening tag and a closing tag. The cl 15+ min read HTML Attributes Complete ReferenceHTML attributes are special words placed inside the opening tag of an HTML element to define its characteristics. Each attribute has two parts:Attribute nameAttribute value (separated by an equal sign = and enclosed in double quotes " ").Syntax:<tag_name attribute_name="value"> Contents... 8 min read HTML Global AttributesHTML attributes provide additional information about an element and define its properties. Global attributes are special types of attributes that can be used with any HTML element, offering common functionality to enhance behavior and presentation.Global attributes can be applied to any HTML element 5 min read HTML5 Complete ReferenceHTML (HyperText Markup Language) is the standard language used to create and design web pages. It defines the structure and layout of a webpage using a series of elements and tags.HTML5 is the latest version of HTML, bringing significant improvements for building modern web applications.It introduce 8 min read HTML5 MathML Complete ReferenceThe MathML comes in HTML5. The current MathML version is 3. It was introduced in the year 2015. MathML stands for Mathematics Markup Language. It is used to represent mathematical equations or expressions in web browsers, like other HTML elements. MathML is used to describe mathematics as a basis fo 3 min read HTML DOM Complete ReferenceHTML DOM (Document Object Model) is a programming interface that represents the elements of an HTML document in a tree-like structure.Allows developers to change content and layout using JavaScript.Enables dynamic updates and user interaction on websites.Facilitates the addition, removal, or modific 15+ min read HTML DOM Audio/Video Complete ReferenceHTML DOM Audio/Video properties and methods allow developers to control audio and video elements programmatically.These controls include playing, pausing, stopping, and adjusting volume.DOM methods enable dynamic interaction and customization of media elements.They enhance the user experience by off 2 min read SVG Element Complete ReferenceSVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. It is a type of vector graphic that may be scaled up or down. Elements are the core things that is required to work with SVGs.List of SVG Elements:SVG ElementsDescription<a>The <a> 5 min read SVG Attribute Complete ReferenceSVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. It is a type of vector graphic that may be scaled up or down. Attributes are the things that give the SVG shape, color, etc it will make the SVGs as attractive as you need.List of SVG Attribut 8 min read SVG Property Complete ReferenceSVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. It is a type of vector graphic that may be scaled up or down. Properties are used for passing the value to the element, there are lots of properties that can be used in SVG elements. table{ di 7 min read HTML Canvas Complete ReferenceThe HTML âcanvasâ element is used to draw graphics via JavaScript. The âcanvasâ element is only a container for graphics. One must use JavaScript to actually draw the graphics. Canvas has several methods for drawing paths, boxes, circles, text, and adding images.Example: This example shows the basic 4 min read Like