A Learning Place Showcase
A Learning Place Showcase
A Learning Place Showcase - Editing web pages with HTML Print Version Search
Editing web pages with HTML What is HTML and why use it? · Basic HTML rules · Formatting text with HTML · Link to other pages or website · Anchor links within a page · Opening new browser window · Email link in text · Inserting images into text · RSS Feeds · Embedding video ·
Formatting text with HTML

Bold

When you wish to Bold text on your page for a heading or to emphasise a word, use the <STRONG> tags. 
e.g.  <STRONG>Pedagogy</STRONG> will be displayed as Pedagogy


Italics

You may wish to use Italics to emphasise a word or a quote by using the <EM> tags.
e.g. 'Parents often quote the rule <EM>silence is golden</EM> to their children' will be displayed as

'Parents often quote the rule silence is golden to their children'


Line Break

A Line Break tag <BR> is used when you want to start a new line of text without skipping a line or creating a gap in the page like a paragraph tag.  Note: Only one <BR> tag at a time is needed for a line break, there is no closing tag.
e.g. You may want a break<BR>Before the rest of the text<BR> is printed, will be displayed as

You may want a break
Before the rest of the text
is printed


Paragraph

The paragraph tag <P> is inserted at the beginning of each new paragraph.  This tag causes a line to be skipped before the following text is printed. 
e.g. You may want a break<P>Before the rest of the text</P> is printed, will be displayed as

You may want a break

Before the rest of the text

is printed

Align Paragraph

The Paragraph tag can also be used to align a paragraph to the left, centre, or right of the page.
This is done by inserting ALIGN=CENTER or ALIGN=RIGHT into the <P> tag.
e.g. <P ALIGN=RIGHT>This text will sit to the right</P> will be shown as:

This text will sit to the right


 

and <P ALIGN=CENTER>This text will sit in the centre</P> will be shown as:

This text will sit in the centre


Spaces between letters and Tabs

In HTML code, only one space is recognised between each letter, so if you press the space bar a few times like this - <STRONG>Spaces     between letters</STRONG>, it will still show up on your web page as Spaces between letters, with only one space.

If you wish to insert more spaces, you must insert &nbsp; for each space.
e.g. <P><STRONG>Spaces &nbsp;&nbsp;&nbsp;between letters</STRONG></P>, will be shown as

Spaces    between letters

Similarly, the TAB key on your keyboard will not work in HTML at all, though tables can be used to position objects.


Lists - Bulleted and Numbered

Bulleted (Unordered) lists

An unordered list tag <UL> creates unordered (bulleted) lists and the list ends with the </UL> tag.
Each list item in the list is started with a <LI> tag, but these tags don't need an end tag at the end of the line.  Remember that a list can't contain any other HTML tags except <LI>, so write the title of the list before you create it.
e.g. <P>Ways to design a good web page:
<UL>
<LI>
Get someone else to do it
<LI> Ask someone else how to do it
<LI> As a last resort, do it yourself
</UL>

This will be displayed as:

Ways to design a good web page:

  • Get someone else to do it
  • Ask someone else how to do it
  • As a last resort, do it yourself

Numbered (Ordered) lists

An ordered list tag <OL> creates ordered (numbered) lists and the list ends with the </OL> tag.
Each list item in the list is started with a <LI> tag, but these tags don't need an end tag at the end of the line.  If you switch the order of items in the list, the <OL> and <LI> tags will renumber them for you.  Remember to write the title of the list before you create it.
e.g. <P>Ways to design a good web page:
<OL>
<LI>>
Get someone else to do it
<LI> Ask someone else how to do it
<LI> As a last resort, do it yourself
</OL>

This will be displayed as:

Ways to design a good web page:

  1. Get someone else to do it
  2. Ask someone else how to do it
  3. As a last resort, do it yourself

Horizontal Rule

A Horizontal Rule <HR> tag is used to create a line across the page when you want to divide the page with a line.
e.g. if you insert the <HR> tag wherever you wish a line to appear, it will appear like this:


 
 
 
Home Top
  Last update: 2/06/2004
 
Queensland Government - Education Queensland  PLC home  A Learning Place Showcase
Contact: Candice Jackson -
Tel: (07) 3421 6656 Fax: (07) 3421 6500

Learning Place
eLearning, Information & Technologies Branch
Department of Education and Training

URL: http://www.learningplace.com.au/en/showcase

Learning Place | Professional Communities Home | Site Map
 
Copyright | Disclaimer | Privacy | Access keys
© The State of Queensland (Department of Education and Training) 2010.
Queensland Government