Properties Div Tag Span Tag Elements Types Block-Level Inline Space/Width Contain Whole Width Available Takes only required Width Examples Headings, Paragraph, form Attribute, image Uses Web-layout container for soome text Attributes Not required,with common css, class Not required,with common css, class div tag creates separate boxes or containers for all elements inside this tag like text, images, paragraphs. While div tag is a block level element and span is inline element The div tag creates a line break and by default creates a division between the text that comes after the tag as begun and until the tag ends with. The div and span tag are two common tags when creating pages using HTML and perform different functionality on them By using style attribute this style will apply to that particular div. In this method, we applying inline CSS in the div tag. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |