What is the difference between HTML div and span elements

0 votes
Please provide some straightforward examples of how to use div and span tags. I've seen them both used to annotate a page with an id or class, but I'm curious if there are any circumstances in which one is favored.
Jul 21 in HTML by Ashwini
• 1,160 points
5 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In HTML

0 votes
0 answers

Difference between id and name attributes in HTML

The "id" and "name" attributes serve the ...READ MORE

Jun 3 in HTML by Tejashwini
• 1,660 points
25 views
0 votes
0 answers

What is XHTML and is it a subset of HTML

What does XHTML implies and is it ...READ MORE

Jul 4 in HTML by Tejashwini
• 1,660 points
5 views
0 votes
0 answers

What is the color code for transparent in HTML, is there any code as such?

I need to show a nav bar ...READ MORE

Jul 4 in HTML by Tejashwini
• 1,660 points
5 views
0 votes
0 answers

What is the HTML for="" attribute in <label>?

What does it do? I saw this ...READ MORE

Jul 21 in HTML by Ashwini
• 1,160 points
9 views
0 votes
0 answers

What is the css / html `root` element?

I recently started using NetBeans IDE (6.9.1) ...READ MORE

Jul 27 in HTML by Tejashwini
• 1,660 points
7 views
0 votes
1 answer

.htm or .html extension - which one is correct and what is different?

The majority of the time, the number ...READ MORE

answered 4 days ago in HTML by Deepak
• 660 points
13 views
0 votes
0 answers

Is there any Blank HTML tags?

Can someone tell me if there are ...READ MORE

May 27 in HTML by Tejashwini
• 1,660 points
35 views
0 votes
0 answers

what is the meaning of href in HTML?

Can someone let me know the meaning ...READ MORE

Jul 7 in HTML by Tejashwini
• 1,660 points
4 views
0 votes
0 answers

HTML 'container' tags - proper usage?

I've been building websites for a while, ...READ MORE

Jul 8 in HTML by Tejashwini
• 1,660 points
9 views
0 votes
1 answer

How blockchain hides it's HTML source?

When you click View Source, you see ...READ MORE

answered Jul 17, 2018 in Blockchain by Shashank
• 10,400 points
514 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP