HTML span tag vs div tag Explained in Hindi/Urdu | Lecture 7
In HTML Both the tags (div and span) are used to represent the part of the webpage, the div tag is used as the block part of the webpage and the span tag is used as a inline
The div tag is known as the Division tag. The div tag is used in HTML to make divisions of content on the web page (text, images, header, footer, navigation bar, etc). As we know Div tag is a block-level tag the div tag contains the entire width. It will be displayed a div tag each time on a new line, not on the same line.
The HTML span element is a generic inline container for inline elements and content. It is used to group elements for styling purposes (by using the class or id attributes). A better way to use it is when no other semantic element is available. The span tag is very similar to the div tag, but div is a block-level tag and span is an inline tag.
Check the previous video: How to make a form in HTML?
https://youtu.be/Ub8xlxdvkCg
check the videos: Learn different types of Inputs in HTML5.
https://youtu.be/-0TnD3jbVU8
Visit the playlist of Web Development Course:
https://www.youtube.com/playlist?list=PL0F7AbhVrLlmgd0SNx5JuWMDeIZG7H2tP
#html5 #webdevelopment #css