Comments in HTML

Comments in HTML browser me show nahi hote, but code ke andar notes likhne ke liye life saver hote hain.


HTML Comment Tag

Syntax:

Comments in HTML

Comments in HTML Start tag me ! hota hai, end tag me nahi. Browser comments ko ignore karta hai, matlab user ko dikhenge nahi.


Add Comments 

Aap comments ka use karke reminders ya explanation likh sakte ho:

Example:

Add Comments in HTML

Ye sirf developer ke liye hai, user ko kuch nahi dikhega.


Hide Content

Temporary kisi content ko hide karna ho? Toh comment kar do.

Example:

Hide Content in HTML

Aap multiple lines bhi hide kar sakte ho.

Example:

Hiding multiple lines in HTML

Jo bhi <!– aur –> ke beech me hai, sab invisible ho jayega.


Hide Inline Content

Sirf ek chhota part hide karna ho paragraph ke beech me? Uske liye bhi aap comments in HTML use kar sakte ho

Example:

Hide Inline Content in HTML

Leave a Comment