What is the difference between span and div?

0 votes
What tag should i used in order to wrap sections of a document. Can someone explain the main difference between them.
Jan 16 in Web Development by anonymous
• 30,930 points

recategorized Jan 21 by Niroj 824 views

1 answer to this question.

0 votes

The div should be used to wrap sections of a document, while use spans to wrap small portions of text, images, etc. 

The <div> element is used while creating css based layouts in html, whereas <span> element is used to stylize texts.

answered Jan 16 by Niraj

edited Jan 21 by Niroj

Related Questions In Web Development

+1 vote
9 answers

What is the difference between web design and web development?

A designer designs the web pages and ...READ MORE

answered Jan 22 in Web Development by Niroj
• 67,020 points
205 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20 in Web Development by Niroj
• 67,020 points

edited Jan 21 by Niroj 137 views
0 votes
1 answer

Explain the difference between visibility:hidden; and display:none?

hii, visibility:hidden; and display:none are totally different used ...READ MORE

answered Jan 20 in Web Development by Niroj
• 67,020 points
8,893 views
0 votes
2 answers
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,210 points
981 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 51,970 points
119 views
0 votes
1 answer

How many methods of including css in an HTML document?

Hello fignithi, yes!!,you can use external file for css ...READ MORE

answered Jan 16 in Web Development by Niraj

reshown Jan 16 by Sirajul 85 views
0 votes
1 answer

What does cors means in Angularjs and what the use of it?

CORS is Cross Origin Resource Sharing which means you ...READ MORE

answered Jan 29 in Web Development by kartik
• 30,930 points
1,015 views