HTML for database input - when it's needed

Here are the usual exceptions:

<a href='http://www.ucl.ac.uk/rest-of-url'>link text here, sometimes it's the url again</a> 


*Watch out for missing a quote in the href attribute, there should always be two!

**Make sure to close the first tag ">"

***Close the anchor with </a>

Missing any of these leads to some interesting results....

<a href='mailto:my-email@ucl.ac.uk'>my-email@ucl.ac.uk</a>

*Use "mailto:"

Break lines

<br>

*We are now cleaning all other variations like <br /> into <br>

Unordered lists

<ul>

<li>First item</li>

<li>Second item</li>

</ul>

* Start and end the list with an opening <ul> and closing</ul> pair.

**Each list item must be enclosed with the <li></li> pair.

 Missing either leads to a list catastrophe!!!


Looks like:

  • Artwork
  • Shortbread

Ordered lists

<ol>

<li>First item</li>

<li>Second item</li>

</ol>

* Start and end the list with an opening <ol> and closing</ol> pair.

**Each list item must be enclosed with the <li></li> pair.

 Missing any leads to a list catastrophe!!!


Looks like:

  1. Laptop
  2. Screen

Page last modified on 05 nov 12 15:41 by Ben Johnston


Page Support l Disclaimer
Page maintained by Publications and Marketing Services