HTML comments

What are code comments? The function of code comments is to help programmers mark the purpose of the code. If you look at the code you wrote after a while, you can quickly remember the purpose of this code. Code comments not only make it easier for programmers to recall the purpose of previous code, but also help other programmers quickly understand the functions of your program, making it easier for multiple people to collaborate on developing web page code.

Syntax:

Example

Comment: There is an exclamation point in the opening tag, but There is no closing tag.

The browser will not display comments, but they can help record your HTML document.

You can use comments to place notifications and reminders in HTML:

    

这是一段普通的段落。


Continuing Learning
||
HTML的代码注释

一站式报名咨询、助学答疑服务,无论是报名、选课、学习、做作业、考试、写论文,毕业,这里都有专业老师为你答疑解惑!向报名顾问咨询

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!