Use the
This is used in conjunction with the
tag, which always causes a line break even within the segment of a
You can try running the following code to allow enclosed text in HTML to not break -
<!DOCTYPE html> <html> <head> <title>HTML nobr Tag</title> </head> <body> <nobr>This is a very long sequence of text that is forced to be on a single line, even if doing so causes <wbr /> the browser to extend the document window beyond the size of the viewing pane and the poor user must scroll right <wbr /> to read the entire line. </nobr> </body> </html>
The above is the detailed content of How to disallow line breaks in enclosed text in HTML?. For more information, please follow other related articles on the PHP Chinese website!