Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    || Canada ||
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    div verse span tag

    Generally I know the differences between these two tags.

    What I was wondering, is when I want to apply a class from my CSS file, which is better to use?

    <div class="aclass">Sentence</div>
    or
    <span class="aclass">Sentence</span>

    I'm not that knowledgeable, so pls forgive it this is a silly question

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    span is inline, div is block. Other than that, they both are by default unstyled.

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    || Canada ||
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay then, thanks for your input


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •