Learning Place home
Online learning | Communication | Communities | Curriculum Exchange
Home | About | Help | Site map

Paragraphs

Hypertext can be read on any computer, but there are limitations to how it can be set out.

  • Hitting the enter key in your code will not force the text to start on a new page when it is displayed by the browser.
  • Paragraphs and line breaks are not visible in hypertext.
  • <p> </p> creates a new paragraph – your content or paragraph would go in between the two tags.
  • <br> is a new line – use it if you want a new line but not a new paragraph. Note: This tag does not have a closing tag.
  • <div> </div> – is used for formatting large blocks of text and images.
  • Only one space will show even if you strike the space bar several times. &nbsp; is used to insert spaces.
  • The tab key will not work. Tables must be used to control the position of objects.

For example:

You might do something like this:

<h3 align='center'>Hi, I'm Mattmarg.</h3>
<p align='center'><img src='bball2.jpg'></p>
<h4 align='center'>I reffed the big game between Bridgeville and <a href='http://www.hits.org/casterlin/'>Casterlin</a>. </h4>

View the sample webpage

But with the <div> tag, your code would look like this:

<div align='center'>
<h3>Hi, I'm Mattmarg.</h3>
<p><img src='bball2.jpg'></p>
<h4>I reffed the big game between Bridgeville and <a href='http://www.hits.org/casterlin/'>Casterlin</a>. </h4>
</div>

View the sample webpage

A common use of <div> is for alignment.

  • <div align='center'>Example of centre alignment</div> puts the text or picture inside the tag in the centre of the page.
    Example of centre alignment
  • <div align='right'>Example of right alignment</div> puts the text or picture inside the tag to the right of the page.
    Example of right alignment
  • <div align='left'>Example of left alignment</div> puts the text or picture inside the tag to the left of the page.
    Example of left alignment
^ Top of page

Copyright | Disclaimer | Acceptable use | Privacy | Internet linking | Access keys | image of flagsOther languages

© The State of Queensland (Department of Education and Training) 2009.

Queensland Government