How to write html comments
How to write html comments
The format of HTML comments is as follows:
Begins with a left angle bracket and an exclamation mark Followed by two minus signs. Then write the comment content. Followed by two minus signs and ending with a right angle bracket;
(recommended learning: html introductory tutorial)
For example:
The role of HTML comments:
1. Use "" The content of the comment will not be displayed in the browser. The comment tag is used to insert comments in the source code, and the content of the comments will not be displayed in the browser. Commenting the key code will help you understand the source code you wrote at that time later.
2. When writing HTML code, you often need to make comments next to some key codes. This has many benefits, such as: it is easier to understand, easier to find, or easier for other programmers in the project team to understand the code. And it can make it easier to modify your own code in the future.
3. Commenting on key code is a good habit. When developing a website or functional module, code comments are particularly important. Because the code at that time was often hundreds or even thousands of lines, if I didn't comment on the key code, I would often feel dizzy and even couldn't understand the code I wrote at that time.
PHP Chinese website, a large number of PHP tutorials and website construction tutorials, welcome to learn!
The above is the detailed content of How to write html comments. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
