Can comments in HTML be viewed by users on the front end?

  • No, they are completely hidden. 
  • No, they are encrypted. 
  • Yes, if they view the page source. 
  • Yes, they appear on the rendered page. 
Comments in HTML won't be displayed on the rendered web page that users see in their browser. However, if a user decides to view the page source (often available via right-clicking on the page and selecting 'View Page Source'), they will be able to see all the HTML code, including the comments. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *