Home >Web Front-end >HTML Tutorial >How to use non-line-breaking tags in html

How to use non-line-breaking tags in html

coldplay.xixi
coldplay.xixiOriginal
2021-04-27 15:47:3213168browse

htmlThe way to use non-line-breaking tags is to use the nobr tag. The syntax is [f44a345470ed5309298c118c07c6efaccontent9c46f421c188c45fb09e606d3bbae378]. The non-line-breaking content is put into [f44a345470ed5309298c118c07c6efac] and [5f4035372c74c70b41e97a107069dfea].

How to use non-line-breaking tags in html

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

html Method of using non-line wrapping tags:

This can be achieved using the nobr tag.

nobr syntax

<nobr>内容</nobr>

Just put the content without line breaks between f44a345470ed5309298c118c07c6efac and 9c46f421c188c45fb09e606d3bbae378.

This tag has the same function as css white-space.

Features of the nobr tag: If the br line break tag is not encountered, the content will be displayed on one line. If the br line break tag is encountered, the content will be automatically wrapped with the br line break tag.

html nobr prohibits content line wrapping case:

If there is a 4-line article title list, set the width to 200px; the css line height is 22px; for the 4-column content, we use ul li list layout , two of them add the f44a345470ed5309298c118c07c6efac tag to the content, one li does not add the content, and the other li has less content and the width can be displayed completely.

Related learning recommendations: html video tutorial

The above is the detailed content of How to use non-line-breaking tags 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