SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How To validate for w3c.

    hello

    i need help to validate for w3c this code.
    please help me.

    <img class="thumb" src="http://open.thumbshots.org/image.pxf?url={$link.URL|escape|trim}">

    then how i input "ALT tag" in that code??
    thanks

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,501
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    You don't validate php code, nor templates. You validate the resulting html code (the code you see in your browser).

  3. #3
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    72 Post(s)
    Tagged
    0 Thread(s)
    As for 'how do i input "ALT tag" in that code'... you put an alt attribute in it.
    W3Schools' Image Tag Page
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so can you gimme advice like example??
    i really new on w3c it self..

    thanks for your respond

  5. #5
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    72 Post(s)
    Tagged
    0 Thread(s)
    Click the link above. There's an example of an image tag with an alt attribute right there. S'got a pretty green box around it.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


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
  •