How to Disable Tags in XHTML
EXensible HyperText Markup Language, or XHTML, is a more restrictive version of HTML -- specifically 4.01 -- which is the language used to create Web pages. Although tag nesting, attribute case and validation rules are stricter in XHTML, the basic tags are the same between XHTML and HTML. Disable XHTML tags in the same manner as you would HTML tags.
Instructions
-
-
1
Open your XHTML file and locate the tag you want to disable.
-
2
Insert the "!--" into the start of the beginning code and "--" into the end of the ending code.
<p>my paragraph</p>
becomes
<!--p>my paragraph</p-->
All data between the "<!--" and "-->" coding will not display in the Web page.
-
-
3
Save the file, and view it in a Web browser to check the modification.
-
1
Resources
- Photo Credit Comstock/Comstock/Getty Images