Graphic of the words PC RESOURCES in burning flames

Skip to main content

JOIN THE MAILING LIST FOR NEWS, PROMOTIONS, OFFERS AND MORE:

E Mail Address:


Search crustysocks.com:

Subscribe to RSS feed Latest newsfeeds

Follow us on twitter:

Interact with us:
Latest tweets Contact



HTML TUTORIAL/PARAGRAPHS AND LINE BREAKS

Being able to arrange your text in paragraphs with line breaks is one of the most basic elements of HTML. We do this with the following codes:

  1. <P> (use the closing tag of </P>)
  2. <P ALIGN="CENTER"> ("CENTER: can be substituted with "left or right" and has the closing tag of </P>)
  3. and <BR> (this code has no closing tag).


The first one (<P>) is the code for a paragraph that is left justified, by default text is displayed in this way. The second one (<P ALIGN="CENTER">), is the code to center-align a paragraph (PLEASE NOTE: the spelling of "CENTER" is the US spelling and not the UK spelling)...and as I put above, this can be substituted with left and right. Using "left,right or center" will align the paragraph accordingly. Here's some examples:



This is using the <P> code.

The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.



This is using the <P ALIGN="CENTER"> code.

The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.



This is using the <P ALIGN="RIGHT"> code.

The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.



This is using the <P ALIGN="LEFT"> code.

The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.



The line break code (<BR>) is one of the codes that doesn't require a closing tag. One <BR> code will start the text on the next line, two <BR> codes will create a line break (<BR><BR>). One <P> tag is the equivalent to a line break code. Try it out for yourself!

Getting started
A basic web page layout
Linking to another page or sections of a page
Creating an E mail link
Paragraphs and line breaks
Headings
Ordered and unordered lists
Inserting and aligning images
Changing colour and font attributes

Tweet


CONTACT INFORMATION

Latest tweets (site news-updates, personal views, info and moore!...get involved, interact and go with the flow!):


Follow us:

Please contact us with any enquiries or comments via our
contact form or if you prefer to e-mail direct, you can at: enquiries@crustysocks.com

For any technical problems or accessibility issues you may be experiencing, please use the "contact form" link above or e-mail the webmaster at: webmaster@crustysocks.com

Disclaimer, copyright and terms of use
Privacy
Become a link partner





©(COPYRIGHT) CRUSTYSOCKS.COM
2011 ALL RIGHTS RESERVED.



Back to top