The Wayback Machine - https://web.archive.org/web/20220603140353/https://www.geeksforgeeks.org/html5-introduction/amp/

HTML5 | Introduction

Introduction: HTML stands for Hyper Text Markup Language. It is used to design web pages using markup language. HTML is the combination of Hypertext and Markup language. Hypertext defines the link between the web pages. Markup language is used to define the text document within tag which defines the structure of web pages. HTML 5 is the fifth and current version of HTML. It has improved the markup available for documents and has introduced application programming interfaces(API) and Document Object Model(DOM).

Features:

Removed elements from HTML 5: There are many elements which are depreciated from HTML 5 are listed below:

Removed Elements Use Instead Elements
<acronym> <abbr>
<applet> <object>
<basefont> CSS
<big> CSS
<center> CSS
<dir> <ul>
<font> CSS
<frame>
<frameset>
<noframes>
<isindex>
<strike> CSS, <s> or <del>
<tt> CSS

New Added Elements in HTML 5:

Advantages:



Disadvantages:

Supported Browsers: It is supported by all modern browsers.

Below examples illustrate the HTML 5 content.
Example 1:




<!DOCTYPE html> 
<html
  
<head
    <title>HTML 5</title
    <style
        h1 { 
            font-size:50px; 
        
    </style
</head
      
<body
    <h1>GeeksforGeeks</h1
</body
  
</html>                    

Output:

Example 2:




<!DOCTYPE html>
<html
  
<head
    <title>HTML 5 Demo</title
      
    <style
        .GFG { 
            font-size:40px; 
            font-weight:bold;
            color:green;
        
        body {
            text-align:center;
        }
    </style
</head
  
<body
    <div class = "GFG">GeeksforGeeks</div
    <aside
        <div>A computer science portal for geeks</div
    </aside
</body
  
</html>                    

Output:




Article Tags :
Practice Tags :