← BYTES
HTML·Starter·Ref: 2.1.13

What is the correct way to add a comment in HTML that won't be rendered on the page?

Have a question about this video? Mention reference 2.1.13 when you contact us.

a.// This is a comment
b./* This is a comment */
c.# This is a comment
d.<!-- This is a comment -->
HTML comments are written between <!-- and -->; everything inside is ignored by the browser's rendering engine but remains visible to anyone viewing the raw page source, useful for leaving notes in markup.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES2113#HTML