HTML Paragraphs

<p> and </p>
  • Paragraph
  • HTML automatically gives you a space before and after your paragraph.
  • So if you give your paragraph a space or multiple spaces, HTML will ignore it. 
  • This also goes for the information within the paragraph tag. 
  • If you type in a word and give it 10 spaces before the next word, it will still read with a single space between both words. 
  • If you type in a word and enter the next word below it, HTML will ignore that as well and place the second word after the first word with a single space. 
  • Example:
  • The first image is the text in "text edit". 
  • The second is the output on google chrome. 

There are a few ways you can create line breaks and spaces within your paragraph. 

<br> Line Breaks 
More information about Line Breaks HERE.

<pre> pre-formatted text
Your font after the <pre> tag will be fixed but the spaces and lines you choose to use after the <pre> tag will remain as you set them. 

Comments