Grouping in HTML
Sometimes there is need to group certain elements of a html document together into a logical block or segment.
Generally used for CSS designing.
For grouping html elements we generally uses
Sometimes there is need to group certain elements of a html document together into a logical block or segment.
Generally used for CSS designing.
For grouping html elements we generally uses
- <div>
- and <span> tags
both the tags are used for grouping but they varies from each other as <div> creates a logical block whereas <span> is used for inline reference to a certain content in the document.
<DIV>
It can be referenced using class or id attributes.
ex: <div class="abc">
<p> ..... </p>
</div>
Referencing :
.abc
{
----------
}
Comments
Post a Comment