Tuesday, 4 September 2007

HTML tags

Tags and effects:
  • <.br> - line break: the following text is moved to a new line.
  • <.title> - page title: the text within the tags is used for the text in the title bar of the explorer.
  • <.h1> -- <.h6> - headers: creates a header on the page, size getting smaller as the numbers increase.
  • <.hr> - horizontal rule: creates a separation line on the page.
  • < .p> - paragraph: text within the tags is grouped into and formatted into a paragraph.
  • <.body> - body of the page: the main part of the html (the main part of the page)
  • <.!--comments--> - comments: used to create comments within the code.
  • <.a href="..."> <./a> - anchor: creates link to new page, href="..." is the url of the page.
    ~ anchor points can be used to locate a specific part of a page. For example, to create an anchor point on a page you use <.a name="example"> Example <./a>
    Then, to locate this in a url, you use '#' and the 'name' of the section: <.a href " www. . .com # example " > (no spaces).
    ~ also, adding target = "_blank" will cause the link to open in a new explorer window.

<<-- click...

No comments: