What is the difference between span and div?

  • 2 Replies
  • 182 Views
*

sirishasiri

  • Full Member
  • ***
  • 107
  • +0/-0
    • View Profile
What is the difference between span and div?
« on: January 08, 2018, 02:46:05 AM »
Web designing

*

kentowin

  • Kentowin
  • Jr. Member
  • **
  • 53
  • +0/-0
    • View Profile
    • Kentowin
Re: What is the difference between span and div?
« Reply #1 on: February 19, 2018, 03:00:45 AM »
The <div> tag creates a line break and by default creates a division between the text that comes after the tag as begun and until the tag ends with </div>.

The <span> tag does not create a line break similar to a <div> tag, but rather allows the user to separate things from other elements around them on a page

*

Davidsmith0143

  • Full Member
  • ***
  • 167
  • +0/-0
    • View Profile
Re: What is the difference between span and div?
« Reply #2 on: May 03, 2018, 06:35:52 AM »
A span element is in-line and usually used for a small chunk of HTML inside a line. A div element is block-line and used to group a larger chunk of code.

 




See Our Webmaster Tools for Windows and Mac

A1 Sitemap Generator
      
A1 Website Analyzer
      
A1 Keyword Research
      
A1 Website Download
      
A1 Website Search Engine
      
A1 Website Scraper