Ask coding questions

← Back to all posts
HTML Comment doubt
Lanna

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
Lanna
Comments
hotnewtop
eankeen

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?

heyitsmarcus

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

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/

ash15khng

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

Lanna

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

Vandesm14

Nothing is wrong with your code.

Please mark this as answered if I helped your problem 👍

Lanna

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