HTML Space Code

  HTML space Code: We can insert spaces between the words and characters on the webpage.


 

The most common way to insert spaces between characters is   The   is a non-breaking space which is used to insert spaces.   prevent a line from breaking.


Here is the example of  

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML Space Code</title>
</head>
<body>
  HTML  &nbsp; &nbsp; &nbsp; &nbsp;  Space &nbsp; &nbsp; &nbsp; &nbsp; Code
</body>
</html>

Result

Html space code

Spacebar

To add space between words, we can easily add space by pressing the spacebar 
When we press the spacebar multiple time it only one space 

Let's show below an example

<head>  
  <title>  
   Spacebar   
  </title>  
  <head>  
  <body>  
  HTML     Space   Code  
  </body>  
  </html>  

Result

Html space code



Reactions

Post a Comment

0 Comments