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 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2011
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Change div to span

    Change div to span

    Hi all

    Is it possible to change just the start and closing tag without effecting the content.

    Can I change

    Code:
     <div><img src="image.jpg" alt="image desc." title="image title" /></div>
    to this

    Code:
     <span><img src="image.jpg" alt="image desc." title="image title" /></span>

    The content of the div might be longer so I just want to change the start and elements.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,475
    Thanks
    6
    Thanked 980 Times in 953 Posts
    Do you intend to do that with a JS framework in the back or why are you posting this question here? And if yes, which framework?


  •  

    Posting Permissions

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