Home  >  Article  >  Web Front-end  >  How to use horizontal line annotations and code comments in HTML

How to use horizontal line annotations and code comments in HTML

php中世界最好的语言
php中世界最好的语言Original
2018-01-24 09:26:493869browse

This time I will bring you how to use horizontal line annotations and code comments in HTML. What are the precautions for using horizontal line annotations and code comments in HTML? The following are Let’s take a look at practical cases.

Horizontal line

Use the 231a563c997aa9e3e0ae614bd16728b0 tag to draw a horizontal dividing line at the current location.
Example

主要内容


底部内容

Horizontal lines can effectively isolate different content parts and give people a sense of hierarchy.

Tips:
Since the borders of DIV or other block elements can be formatted and displayed through CSS, many times the width of the border of the block element is set to achieve the effect of a horizontal line, but 944d16e1bfca79f2ad02b0a9e3a6d43c tag still cannot be completely replaced.

HTML Comment

The XHTML comment tag is a special tag. As the name suggests, it is used to comment on the content in the XHTML document. Of course, it will not be displayed in the browser. The comment tags are as follows:

  
一个例子:   

Note:

There is an exclamation mark after the opening left bracket. In addition, do not write comments in other languages ​​such as "//" or "/*".
Tips:
It is a good habit to add comments appropriately and can be used wherever you want to comment, so that the
html document we write is easy to read and maintain.

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to the php Chinese website

Other related articles!

Related reading:

In the responsive framework, how to deal with the automatic line wrapping of the table header

How to make the Table display the border

What is the difference between class and id when marking HTML elements

The above is the detailed content of How to use horizontal line annotations and code comments in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn