Monday, 25 July 2022

HTML5 Overview


Simple HTML Document

The following is an example of a HTML document.


<!DOCTYPE html>
<html>

   <head>
      <title>This is document title</title>
   </head>
	
   <body>
      <h1>This is a heading</h1>
      <p>Document content goes here.....</p>
   </body>
	
</html>

HTML Tags 

HTML, as previously stated, is a markup language that structures information using various tags. Angle brackets are used to enclose these tags. With the exception of a few tags, the bulk of tags have identical closing tags. has a closing tag, and tag has a closing tag tag, and so forth.

To learn HTML, you must first explore various tags and understand how they operate when organising text. Learning HTML is simple since users must learn how to use different tags to format text or images in order to make a nice webpage.


Beginning with HTML 4, the World Wide Web Consortium (W3C) suggests using lowercase tags.


HTML Document Structure

HTML document structure −

<html>
   
   <head>
      Document header related tags
   </head>
   
   <body>
      Document body related tags
   </body>
   
</html>

In following chapters, we will look at all of the header and body tags, but for now, let's look at the document declaration tag.



The <!DOCTYPE> Declaration

The <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration.


<!DOCTYPE html>


There are many other declaration types which can be used in HTML document depending on what version of HTML is being used. We will see more details on this while discussing <!DOCTYPE html> tag along with other HTML tags.


No comments:

Post a Comment