Results 1 to 10 of 10

Thread: How may comments be inserted into HTML code without being seen by the browser?

  1. #1
    Join Date
    Nov 2022
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How may comments be inserted into HTML code without being seen by the browser?

    How may comments be inserted into HTML code without being seen by the browser?

  2. #2
    Join Date
    Nov 2022
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Using the comment tag, you can insert comments in the source code. A browser does not display comments.

  3. #3
    Join Date
    Nov 2022
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <!--This is a comment. Comments are not displayed in the browser-->

    <p>This is a paragraph.</p>

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,400
    Thanks
    5
    Thanked 290 Times in 283 Posts

    Default


    Quote Originally Posted by shikhamishra View Post
    How many comments be inserted into HTML
    code without being seen by the browser?
    At the last count 999,999,999,451 but
    you should note that the enumerator, at
    the time of penning this post, is currently
    enjoying their well earned lunch break.

    coothead
    Last edited by coothead; 11-26-2022 at 10:59 AM.
    ~ the original bald headed old fart ~

  5. #5
    Join Date
    Dec 2022
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What is the easiest way to hide comment section from blog/website, I am asking this because I have too many visitors on my site and also comments on it which I hide from my site backend but it is too much to handle them via frontend, So I want to disable whole section of comment from my specific website page.

    How can I do this thanks.

  6. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    2,400
    Thanks
    5
    Thanked 290 Times in 283 Posts

    Default

    Hi there jakedone,

    Are you really sure thay your page is plagued by visitor comments
    or are you just slyly spammiing this forum?

    When I checked out the link to yout site I found that the most
    recent comment was one year ago and the second was three
    years
    ago !

    coothead
    ~ the original bald headed old fart ~

  7. #7
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,439
    Thanks
    106
    Thanked 120 Times in 118 Posts

    Default

    Jakedone, I removed your link. If you have a question, please start a thread. Try to be as detailed as you can and post the relevant code and we will try to help.
    To choose the lesser of two evils is still to choose evil. My personal site

  8. #8
    Join Date
    Dec 2022
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by coothead View Post
    Hi there jakedone,

    Are you really sure thay your page is plagued by visitor comments
    or are you just slyly spammiing this forum?

    When I checked out the link to yout site I found that the most
    recent comment was one year ago and the second was three
    years
    ago !

    coothead
    You are also right the comments on my site are too old because new comments I am hiding from my site backend and I think I also mentioned this in my previous post.
    Quote Originally Posted by james438 View Post
    Jakedone, I removed your link. If you have a question, please start a thread. Try to be as detailed as you can and post the relevant code and we will try to help.
    Hi My most respected seniors,

    I don't mean to hijack or spam on this thread I just want to participate as a normal member of this forum and I am also sorry for the inconvenience ):

  9. #9
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,439
    Thanks
    106
    Thanked 120 Times in 118 Posts

    Default

    Thank you for explaining Jackdone and for reaching out to me. The most important thing is that we now know you are not a spammer.

    As far as thread hijacking there are two options. I can split this thread and turn it into a new thread or a better option is for you to start a new thread where you can more thoroughly ask your question and I can reverse the infraction.

    Here are a few questions you can answer in the new thread that can better help us understand the issue:

    What code are you using?
    What programs if any are you using?
    Can you post the relevant code you are working on?
    Can you describe how you want to handle commenters?
    To choose the lesser of two evils is still to choose evil. My personal site

  10. The Following User Says Thank You to james438 For This Useful Post:

    coothead (01-01-2023)

  11. #10
    Join Date
    Oct 2022
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    HTML <!--...--> Tag
    In the source code, comments are inserted with the comment tag. Browsers do not display comments.https://html.com/tags/comment-tag/

Similar Threads

  1. Replies: 0
    Last Post: 02-10-2011, 05:29 PM
  2. Cross-browser marquee II - html code to add?
    By Mark_H in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 10-06-2009, 01:09 PM
  3. Comments Box Code
    By apoc.3.21 in forum Looking for such a script or service
    Replies: 6
    Last Post: 04-22-2008, 09:13 PM
  4. Charactor Replacing in HTML (Cross-Browser Code) How?
    By alMubarmij in forum JavaScript
    Replies: 3
    Last Post: 01-11-2007, 12:08 PM
  5. Add Comments To This Code Help??!!
    By strikeanywhere in forum JavaScript
    Replies: 1
    Last Post: 09-24-2006, 02:47 AM

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
  •