For instance, you want to use the phrase "18 Live Fish." you would not want a browser to split the "18, Live" and "Fish" across two lines:
In cases, where you do not want the client browser to break text, you want it continuous, you should use a nonbreaking space entity instead of a normal space for continuity.
For example, when coding the "18 Live Fish" in a paragraph, you should use something similar to the following code:
Example
<!DOCTYPE html>
<html>
<head>
<title>Nonbreaking Spaces Example</title>
</head>
<body>
<p>This technique appears in the movie "12 Angry Men."</p>
</body>
</html>
Example
<!DOCTYPE html>
<html>
<head>
<title>Nonbreaking Spaces Example</title>
</head>
<body>
<p>This technique appears in the movie "12 Angry Men."</p>
</body>
</html>
Results: 18 Live Fish
----------------
No comments:
Post a comment