Results 1 to 9 of 9

 

Thread: Closing <img> tag?

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jun 2008
    Location
    Essex, UK
    Posts
    55
    Thanks
    18
    Thanked 4 Times in 4 Posts


    Hi all,

    I've got about 200 or so images on my website which I've just noticed dreamweaver hasn't closed. Is this going to be an issue?

    It means it won't be XHTML compliant (I think) but does it really matter? If I have to I will but just trying to save myself a tedious task

    Cheers

    Dan

  2. #2
    Registered User

    Status
    Offline
    Join Date
    Oct 2009
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hi Dan,

    I am not sure how many pages your site has, but i found this in google which is a way to use find and replace in dreamweaver to close of image tags.

    Closing Empty Tags That Have Attributes :: Lesson 2. Upgrading to XHTML :: Dreamweaver MX. Dynamic applications :: Macromedia :: eTutorials.org

    Bulk find and replaces scare me

  3. #3
    pete_coles's Avatar
    Administrator

    Status
    Offline
    Join Date
    May 2007
    Posts
    513
    Thanks
    14
    Thanked 82 Times in 62 Posts
    Closing an img tag with /> is indeed an xhtml thing, you could go brave and just change the doctype over to html(5) and side-step the whole issue - <!DOCTYPE html>

    Probably not the greatest suggestion in the world I know

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Jun 2008
    Location
    Essex, UK
    Posts
    55
    Thanks
    18
    Thanked 4 Times in 4 Posts
    Thanks for the replies chaps,

    If the pictures show up ok though, is there any need for me to do anything? Will there come a time when the W3C say 'xhtml only please'

    That dreamweaver jobby looks good thanks. I don't need to worry about screwing anything up, because I use joomla I just copy and paste the code from joomla and paste it in dreamweaver, make the change, test it, if all is ok just past it back into joomla.

    If I don't have to do it though, I wont

  5. #5
    pete_coles's Avatar
    Administrator

    Status
    Offline
    Join Date
    May 2007
    Posts
    513
    Thanks
    14
    Thanked 82 Times in 62 Posts
    Quote Originally Posted by Netting87 View Post
    Will there come a time when the W3C say 'xhtml only please'
    WIth html5 around the corner I'd say not. They'll be plenty of room for both me thinks. I'm far to happ with xhtml syntax to change now, which is why the html5 spec looks good - as you can choose (as it stands anyway)

  6. #6
    Technophobe Geek

    Status
    Offline
    Join Date
    Jan 2005
    Location
    Cumbria, UK
    Posts
    805
    Thanks
    11
    Thanked 21 Times in 21 Posts
    Quote Originally Posted by Netting87 View Post
    If the pictures show up ok though, is there any need for me to do anything? Will there come a time when the W3C say 'xhtml only please'
    I would imagine around 80% of the web sites out there won't be closing their image tags as they won't be using XHTML, then it's unlikely to cause any errors anytime soon (pure guess on numbers).

    As for the W3C - most likely, then everyone with any impact (ie: Microsoft) will ignore them for 10 years until IE finally gets around to thinking that maybe it ought to catch up...then they'll find it's another 50 years before most web sites are compatible by which time we'll be implanting the entire thing into our brains and thus not needing all these browser thingies.

    Essentially as long as your doc-tag doesn't say the page is XHTML strict then the browser shouldn't give two-hoots about it. And if it does say that you'll have so many horrible complications trying to get everything to work that well by now you'd be in a psych hospital repeating "nursie...the WC3 say the pink elephant isn't validating" over and over...

    Or in English - don't stress, no one else does.

    Trev

  7. The Following User Says Thank You to trevHCS For This Useful Post:

    Netting87 (09-10-09)

  8. #7
    Registered User

    Status
    Offline
    Join Date
    Jun 2008
    Location
    Essex, UK
    Posts
    55
    Thanks
    18
    Thanked 4 Times in 4 Posts
    Lmao thanks Trev, question answered

  9. #8
    Registered User

    Status
    Offline
    Join Date
    Aug 2007
    Posts
    406
    Thanks
    6
    Thanked 31 Times in 31 Posts
    Closing of img tags is in XHTML. Same for meta, link tags etc. Don't close them HTML as it won't validate.
    PSD to Price Tapestry Templates: Please PM

    Wordpress set up for affiliates - I will get you up and running: Please PM

  10. #9
    pete_coles's Avatar
    Administrator

    Status
    Offline
    Join Date
    May 2007
    Posts
    513
    Thanks
    14
    Thanked 82 Times in 62 Posts
    Quote Originally Posted by Sabcom View Post
    Don't close them HTML as it won't validate.
    Agreed, although I believe you're able to in html5 (providing the spec remains as is)



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Next Closing
    By Alfie in forum Affiliate Marketing Lounge
    Replies: 16
    Last Post: 29-01-08, 03:45 PM
  2. More Th>n Closing
    By TD Nick in forum TradeDoubler
    Replies: 0
    Last Post: 30-12-05, 04:06 PM
  3. Programs Closing
    By TD Nick in forum TradeDoubler
    Replies: 7
    Last Post: 02-11-05, 10:57 AM
  4. More Than Closing On CJ
    By Pete Taylor in forum Commission Junction
    Replies: 0
    Last Post: 01-09-04, 05:44 PM

Bookmarks

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.0 RC2