Home > Article > Web Front-end > How to use non-line-breaking tags in html
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].
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!