HTML - Elements | 99codes

HTML-Elements


A HTML segment is portrayed by a starting tag. If the part contains other substance, it closes with an end tag, where the segment name is gone before by a forward cut as showed up with few mark-


html elements


So here <p>....</p> is a HTML part, <h1>...</h1> is another HTML segment. There are some HTML parts which don't ought to be closed, for instance, <img.../>, <hr/> and <br/> segments. These are known as void parts.

html elements

HTML records involves a tree of these segments and they show how HTML reports should be manufactured, and what kind of substance should be placed in what part of a HTML document.




HTML Tag Vs Element

A HTML part is described by a starting tag. In case the part contains other substance, it closes with an end tag.
For example, <p> is starting tag of an area and </p> is closing tag of a comparable entry anyway <p>This is paragraph</p> is a segment.

Nested HTML Elements


It is particularly permitted to keep one HTML component inside another HTML component-

Example-

<!DOCTYPE html>
<html>

   <head>
      <title>Nested Elements Example</title>
   </head>

   <body>
      <h1>This is <i>italic</i> heading</h1>
      <p>This is <u>underlined</u> paragraph</p>
   </body>

</html>

This will display the following result −


                ⇛  This is italic heading
         
                ⇛ This is underlined paragraph


HTML - Elements | 99codes HTML - Elements | 99codes Reviewed by Arup Roy on January 30, 2019 Rating: 5

1 comment:

Powered by Blogger.