0

tag display as text?

I'm currently writing notes and writing them in HTML to practice. I'm compiling a list of tags, and want to display each tag linked to their descriptions elsewhere on the web; here's the code I have so far: <!DOCTYPE html> <html> <head> <title>HTML notes</title> <style> table, th, tr, td { border: 1px solid grey; border-collapse: collapse; } </style> </head> <body> <h1>Standard HTML Tags</h1> <p> <table> <th>Tag</th> <th>Description</th> <tr> <td><a href="https://www.w3schools.com/tags/tag_comment.asp"><!-- --></a></td> <td>Defines a comment</td> </tr> </table> </p> </body> </html> How can I get the comment tag: "<!-- -->" to display on the page? Thanks! -Jeff

11th Jun 2018, 11:13 AM
Jeff
Jeff - avatar
2 Respuestas
+ 5
& lt;!-- --& gt; [IMPORTANT]: Remove space after '&' in above code
11th Jun 2018, 11:21 AM
Gopal Gautam
Gopal Gautam - avatar
+ 1
thank you!!
11th Jun 2018, 1:31 PM
Jeff
Jeff - avatar