Saved Bookmarks
| 1. |
State the difference between span tag and div tag in HTML5. |
||||||||||
|
Answer» Both the div and span tags are used to indicate the PART of a web page. Divs are block-level ELEMENTS, whereas spans are inline elements of a web page. <div> tag is used to show block parts of the webpage whereas <span> tag is used to show inline parts of the webpage: Example: <div>A 6-month online career accelerator program<span>Scaler ACADEMY<span></div>
|
|||||||||||