When you write code you often add a bit of your personality to the project, because there are many ways to achieve a particular function or task. What Is “Comment Code” Used for?Įvery developer or coder has a different approach. This tells the browser to stop hiding the content.ĥ) Save your document, and either upload it to your website’s server or test it in a browser window. Make sure your active cursor is at the front of that block and click to edit.Ģ) Type this before the first character: In your coding tool, whether that’s something like notepad, a developer studio, or just a web editor, you’ll want to do the following:ġ) Find the paragraph or block of text you wish to hide. When you create documents in HTML, you can leave comments to help other developers and designers understand what each snippet is for. The process for hiding HTML is pretty easy, and it involves doing something called “commenting out” the content. You can play around with the visibility of text and content rather easily. This is also an excellent tool to use when following an HTML tutorial or learning the language. When hidden, the text remains part of the HTML that you’ve written on the backend of your site, but it’s not visible to the average user. Instead of deleting the content entirely, it’s possible to hide it behind a unique code. For example, if you need to remove a segment of text, because a situation has changed, yet you want to keep it just in case you need to restore it later. Did you know there’s a way to hide an HTML code or text snippet on your site?Įvery once in a while, it may be necessary to hide text or content on a website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |