iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register

Go Back   WebForumz.com > Resources > FAQ > (X)HTML & CSS
Register All Albums Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Author


karinne
Karinne Legault is a Programmer Analyst working in Federal Government in Canada now working on .NET projects which she is still trying to get to grips with.

Her passion however is Web Design where she has 10 years experience. In the early years, just getting to grips with the movement of Web Standards being an integral part of the services she offers. You can view her portfolio site at KarinneLegault.com

RSS Feed

Your Options
What's the difference between div and span?

the differing styling elements on a web page

The <div> and <span> elements allows designers to add styling to a page however differently.

The <div> is a block-level element as opposed to the <span> element which not.

You would normally use the <div> element to position other elements on your page. Like having a sidebar on the left and your content on the right. It does what the table element was never intended to be used for: layout.

As for the <span> element, you would normally use this to apply certain styles to text within a paragraph or in a certain area on your page.


Related Resources

Members's Comments No Comments. Be the first to comment on and rate this resource.


Search Engine Optimization by vBSEO 3.2.0 RC8