HTML element and HTML feature

Updated:01/17/2024 by Computer Hope

Features of HTML | HTML element is an sigle component of an HTML

An HTML element is an sigle component of an HTML document.  HTML element  :It represents meaning. For example, the title element represents the title of the document.

Below is an example of a  HTML Element  web page written in HTML with a description of each section and its function.

   <!-- 
Example contain a basic element of html like Title ,head ,body ,p.
It is  just create a simple web page in web browser
Note : open note paid and Save this code on notepad with extension of .html 
then right click and select option of Open with in Window user ,run with any browser and display output .
   -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html>
           <head>
            <title>Example page</title>
            <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
           </head>
           <body>
            <h1>This is a heading</h1>

            <p>This is an <b>example</b> of a basic HTML page.</p>
           </body>
   </html>

Features of HTML Element

  • An  HTML element  is a type of HTML (Hypertext Markup Language) document component, one of several types of HTML nodes
  • Elements are not tags. Some people refer to elements as tags (e.g., "the P tag"). Remember that the element is one thing, and the tag (be it start or end tag) is another.
  • There are multiple kinds of  HTML elements  : normal elements, raw text elements, and void elements.
  • In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between.
  • However, not all of these elements require the end tag, or even the start tag, to be present. Some elements, the so-called void elements, do not have an end tag.

Top most Html Article