Diana's test page 2

Image
A map of the moon.

How to write HTML code?

The easiest way to write HTML code is to download Notepad++. Writing code in Notepad++ has several advantages:

  • Colour coding makes it easy to visually spot different parts of the code, such as:
    • opening and closing tags, and
    • links.
  • Clean design with no distractions.

When you paste your code in the WYSIWYG, remember to always select ‘full html’ from the drop-down menu in the editor.

  • Creating sections (anchor links)
  • Pasting text from Word and other programs.
  • Numbered lists.

Pasting text from other programs

You have to make sure to press the clear formatting button. Without it, you would get a mess.

Link opening in new window

One thing we need to do is to make links open in new window. This is achieved by adding the attribute ‘target’ into the tag for link.

bla