Skip to content
← Back to Community
HTML Comment doubt
Profile icon
Lanna

This file cannot be displayed: https://storage.googleapis.com/replit/images/1560794335776_99dfaefc9502121e9344fe273339173d.pn
So am I doing anything wrong in this commenting? 'Cause it ain't working, the comment is not supposed to be displayed but it is, why?

Voters
Profile icon
Lanna
Comments
hotnewtop
Profile icon
hyperupcall

According to the WHATWG html spec, you seem to be commenting properly. It doesn't seem to explicitly say that Comment nodes (which is what you're actually creating when you write comments) cannot be adjacent to Element nodes. I've tried to replicate your problems, but I wasn't successful. Maybe you have some sort of repl?

Profile icon
heyitsmarcus

Can you post it into a Repl? I'm inclined to agree with Vandesm14, just based on what I see here.

Profile icon
prekhshasharma

Get Packers and Movers Kolkata List of Top Reliable, 100% Affordable, Verified and Secured Service Provider. Get Free ###Packers and Movers Kolkata Price Quotation instantly and Save Cost and Time. ✔✔✔Packers and Movers Kolkata Reviews and Compare Charges for household Shifting, Home/Office Relocation, ***Car Transportation, Pet Relocation, Bike SHifting @ https://kolkatapackersmovers.in/

Profile icon
ash15khng

Are your tags showing? Like the <html> <head> things?

Profile icon
Lanna

I'm really sorry, I'll just try this out on a repl and post it out. Thanks.

Profile icon
Vandesm14

Nothing is wrong with your code.

Please mark this as answered if I helped your problem 👍

Profile icon
Lanna

@Vandesm14
No I just updated my one, so that is the question I was actually meaning to ask.