How to hide an HTML code

  • Post a job and hire the right pro in just days.

    Hire proven remote professionals with in-demand skills in under 3 days on Upwork. Post a job for free.

    It’s really simple. Just follow my step:

    HTML: (Put your html line in )

    1.  
    2.  
    3.  
    4.  
    5.  
    6.  
    7.  
    8.  
    9.  
    10.  

    CSS: (Add inline style tag and set display none value)

    1.  
    2.  
    3.  
    4.  
    5.  
    6.  
    7. Lorem ipsum...
       
    8.  
    9.  
    10.  

    Bootstrap: (Just add hidden class on the html tag)

    1.  
    2.  
    3.  
    4.  
    5.  
    6.  
    7.  
    8.  
    9.  
    10.  

    You can hide it through the use of an HTML tag. The text will remain in the HTML code, but not in a user’s browser window.

    1. Launch your HTML editor. Select “File” and “Open” from the program’s navigation bar. Choose the file that you wish to hide the text.

    2. Locate the text within the HTML document you want to hide. Place your cursor before the first character of that block of code.

    3. Type “<" followed by "!---" (no quotes and no spaces) before the first character of the text you want to hide. This open comment tag tells Internet browsers to begin hiding everything from this point forward.

    4. Type “—” followed by “>” (no quotes and no spaces) at the end of the block of text you want to hide. This closed comment tag ensures that the HTML code between the open comment tag and this point will be hidden whened with an Internet browser.

    5. Save your HTML document. Preview it in a browser window before uploading it to your server.

    All the power, not all the cost.

    Amazon EC2 instances powered by AMD EPYC™ provide your compute workloads with the performance they need.

    You can’t hide HTML code because it must be readable by the browser. Though, with help of javascript and DOM, you can make it dependent on script rather than plain HTML to make it really really hard to understand by a human mind. You can encrypt or minify the javascript too, to make it more hard to understand.

    Basically, you CAN write HTML codes through JavaScriptt parser that will be hard to read from browser source. Have a look at Gmail source code, you can barely understand it.

    ·

    View upvotes

    ·

    Even if you hide it in HTML code others can still see it if they page source. You can use php code to hide it (But it also will not be executed). For example:


    /

    this will not be displayed

    can put staff here

    */

    ?>

    ·

    View upvotes

    ·

    Hide??

    What exactly are you planning to achieve?

    If you don’t want your piece of code not to appear in Webpage you can try following thins

    1. keep style attribute display as None
    2. You can call element using jQuery and hide it there like this

    1. $('form #form1').hide()//This will hide it 
    2. $('form #form1').remove()//This will remove code from source code 

    If this is not what you are exactly planning to achieve there is only one way to hide HTML code. Don’t place code in file in the first place 😉

    ·

    View upvotes

    ·

    You can’t !

    Anything that reached to browser(client side) or can be seen by user that can be downloaded anyhow.The web page is visible that means the HTML code is executed and you can easily inspect it or the source code.

    Many questions have been asked like this either to hide HTML code or to hide the images , videos etc.

    You can make it very complex by using JavaScript to control the DOM.And by minifying the JavaScript and HTML.But it can be also unminified.

    For example , At the homepage of google looks very simple , but it is very complex both from client and server side.Just look at its source.

    Before you shop at Amazon Prime, read this.

    The dead giveaway that tells you when Amazon’s giving you a better price than other retailers.

    Okay, this is a very terrible idea, but I’m gonna try and answer this.

    First, don’t render HTML to browser, (that’s right), render your HTML to a PhantomJS browser, convert all those to SVGs on the fly, then render the SVG to the browser 😀 (or) you could also download the screenshot as a picture and you could render that on browser, but WHY on earth would anyone want that? 😀

    ·

    View upvotes

    ·

    Anything you want to display through a browser, needs to be readable by the browser, so the code will be visible to anyone who it. You can dynamically generate the code using a backend server language, such as PHP, and then only the html output is visible, but it will be visible. If you want to explain exactly what you’re trying to achieve I might be able to help further.

    ·

    View upvotes

    ·

    The actual terminology is encrytion.

    Encryption is different from hiding. Encrypted things may be decrypted, but the process of decrypting is either unique or tough.

    HTML encryption is achieved by JS encryption which converts codes to human readable format. Your HTML code is not hidden, but just tough to read.

    example is

    Encrypt HTML

    ·

    You can hide it through the use of an HTML tag. The text will remain in the HTML code, but not in a user’s browser window.

    1. Launch your HTML editor. Select “File” and “Open” from the program’s navigation bar. Choose the file that you wish to hide the text.

    2. Locate the text within the HTML document you want to hide. Place your cursor before the first character of that block of code.

    3. Type “<" followed by "!---" (no quotes and no spaces) before the first character of the text you want to hide. This open comment tag tells Internet browsers to begin hiding everything from this point forward.

    4. Type “—” followed by “>” (no quotes and no spaces) at the end of the block of text you want to hide. This closed comment tag ensures that the HTML code between the open comment tag and this point will be hidden whened with an Internet browser.

    5. Save your HTML document. Preview it in a browser window before uploading it to your server.

    The text will remain in the HTML code, but not in a user’s browser window.

    1. Launch your HTML editor. …
    2. Locate the text within the HTML document you want to hide. …
    3. Type “<" followed by "! ...
    4. Type “—” followed by “>” (no quotes and no spaces) at the end of the block of text you want to hide. …
    5. Save your HTML document.

    ·

Buy CBD Oil Colorado