Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Main difference between span and div tag in HTML?
Question Posted on 13 Mar 2021

Home >> WEB >> HTML Questions >> Main difference between span and div tag in HTML?




Main difference between span and div tag in HTML?
Below are the main difference between span and div tag in HTML
(1)div tag is a block element
(2)span tag is a inline element
Now come to some other point in both of this it is illegal to place block element in an inline element. To understand this we will take an example of p tag. We can place p tag in the div tag and p tag can also have the span tag. ANd it is almost imposible for span tag to have div and p tag inside.
So it is quite clear the content of block and inline element. Block element have the inline element but a inline element donot have the block element.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
What is Screen Object in Javascript how it is useful?
Use two class attribute of internal CSS on html tag with example and uses?
Which of the following is used to create a numbered list in HTML?
How hyperlink will displaying after placing that in HTML?
What is template tag in HTML






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |