HTML tags in posts, pages and widgets
-
I’ve had problems in the past with HTML tags not acting as expected on WordPress, most prominently with the <span> tag. I use that tag frequently to change color, center text, underline text, etc.
Most recently I was trying to use the HTML comment tags ‘<!–‘ and ‘–>’ to ‘comment out’ some text on a page. It worked for a single line comment, but not multi-line. The tags just showed up as text without ‘hiding’ the commented text.
Most programming languages (including HTML) allow the programmer to add comments to explain blocks of code, inputs, outputs and processing. Please explain these anomalies in HTML tags.
Thank you,
WisTurophileThe blog I need help with is: (visible only to logged in users)
-
This is most likely due to the way that WordPress parses HTML code (in the process of removing unallowed code). If you want to comment out multiple lines of code, I’d suggest surrounding each line with the HTML comment tags.
- The topic ‘HTML tags in posts, pages and widgets’ is closed to new replies.