Section Tags


Section tags are used to divide an HTML Document into different parts.

1. <section>


<section> tag defines a section in a document.

Example :


 <!DOCTYPE HTML>


<html>


<head>


<title> Section Tag Example </title>


</head>


<body>


<h1> The section element </h1>






<section>


<h2> WHO </h2>


<p> The World Health Organization is a specialized agency of the United Nations responsible for international public health.</p>


</section>






</body>




</html>


Output :

2. <span>


<span> tag Inline Sections are created in an HTML Document by the <span> Element.

Example :


 <!DOCTYPE HTML>


<html>


<head>


<title> Span Tag Example </title>


</head>


<body>


<h1> The span element </h1>



<section>


<h2> WHO </h2>


<p> The <span style="color:blue;font-weight:bold"> World Health Organization </span>is a specialized agency of the United Nations responsible for international public health.</p>


</section>



</body>




</html>






Output :