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
Release: 2023-01-05 16:11:59
Original
13189 people have browsed it

htmlThe way to use non-line-breaking tags is to use the nobr tag. The syntax is [content]. The non-line-breaking content is put into [] and [< /nobr>].

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>
Copy after login

Just put the content without line breaks between and .

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 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template