html what are comments
In HTML, comments are explanations and explanations of the code. Its purpose is to allow people to understand the code more easily; comments are when writing a program, the person who writes the program gives a statement, program segment, function, etc. Explanations or tips can improve the readability of program code.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
Comments are explanations and explanations of the code, and their purpose is to make it easier for people to understand the code. Comments are when the programmer writes an explanation or hint for a statement, program segment, function, etc., which can improve the readability of the program code.
Correct program comments generally include preamble comments and functional comments.
The main contents of the preamble comments include the module interface, data description and module functions. The main content of the module's functional comments includes the function of the program segment, the function of the statement and the status of the data.
Comments can be divided into two types:
-
Line comments:
The line after the symbol will not be compiled ( Display)
-
Block comment:
The part in the middle of the block comment symbol will not be compiled
HTML Medium comment block comment
<!-- 注释内容 -->
Example:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>html中的注释</title> </head> <body> <!--这是单行HTML注释 --> <!-- 这个例子是 HTML多行注释 --> <h1>这是文章标题</h1> <p>这是一个段落</p> </body> </html>
Recommended tutorial: "html video tutorial"
The above is the detailed content of html what are 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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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.

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 margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

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.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

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

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