Jacklack3 Jacklack3 - 5 months ago 37
HTML Question

HTML True or false in editor?

I'm creating a helpful HTML template and would like to do something where you can toggle tags on and off.

I would like to make it simple like ="true" where you change true or false to whatever you want.

Is there a way i could do this within one html file?


If your intention is to make your template in a way that you can "turn off" some tags or blocks of code, you could use HTML comments to do so, then the template user will be able to comment or uncomment those blocks to "turn then on or off"
For example:

<!-- Left Column, uncomment for use -->
<!-- <div id="col"... [the rest of the code] ... -->

And the when a person wants to use that block they remove the comments from it and start using it.

You can read more about HTML comments here: