If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Grouping Elements with <div> and <span>

Started by beingchinmay, 02-10-2017, 02:34:32

Previous topic - Next topic

beingchinmayTopic starter

The <div> and <span> elements allow you to group several elements to create sections or subsections of a page. On their own, they will not affect the appearance of a page, but they are commonly used with CSS to allow you to attach a style to a section of a page . For example, you might
want to put all of the footnotes on a page within a <div> element to indicate that all of the elements within that <div> element relate to the footnotes. You might then attach a style to this <div> element so that they appear using a special set of style rules.


The <div> element is used to group block-level elements:

Quote<div class="footnotes">
<h2>Footnotes</h2>
<p><b>1</b> The World Wide Web was invented by Tim Berners-Lee</p>
<p><b>2</b> The W3C is the World Wide Web Consortium who maintain many Web
standards</p>
</div>



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...