SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Nov 2000
    Posts
    741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I REM out a line of html?

    I have a line of html that I wish to temporarily disable.

    How do I do that while leaving it in there for future reference?

    Thanks,

    Jon

  2. #2
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    <!-- //

    Your html here

    // -->


    Is a common practice, although CDATA[] tags are being implemented for JavaScript which contains non xhtml compatible code.
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  3. #3
    SitePoint Guru
    Join Date
    Nov 2000
    Posts
    741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

    Jon

  4. #4
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by TheOriginalH
    <!-- //

    Your html here

    // -->
    HTML comments are just <!-- and -->. Obviously, anything else inside those is ignored, but I'm unsure as to why you did the JavaScript code hiding technique of <!-- //-->...

  5. #5
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by mattjacob

    HTML comments are just <!-- and -->. Obviously, anything else inside those is ignored, but I'm unsure as to why you did the JavaScript code hiding technique of <!-- //-->...
    Yes, I do that out of habit - Mr Jacob is of course absolutely right.
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS


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
  •