HTML Basic Information

  1. XHTML and HTML - XHTML is a version of SGML which is XML compliant and which attempts to support all HTML tags. SGML stands for Standard Generalized Markup Language. XML stands for eXtensible Markup Language.
  2. Comments - Comments begin with <!-- and end with --> Comments can span several lines.
  3. URLs - A complete URL includes the protocol, server, and the pathname of a document. For example: http://tornado/ROP/index.html
  4. Absolulte and Relative URLs - URLs can be absolute (spell out the entire path) or they can be relative to the current location. Pages stored in the same directory as the current page , for instance, can be accessed using only their file names.
  5. Cascading Style Sheets - Here's the basic code for a simple page which tests to see if a browser uses CSS: <html> <head> <style type="text/CSS"> <!-- H1 {color: red} --> </style> <body> <H1>This will be red if CSS works with your browser</H1> </body> </html>
  6. The DIR Attribute for the HTML tag - The default value for the dir attribute is ltr (which means left to right). You can set this to rtl (right to left). This isn't very useful, but it is kind of interesting.
  7. BODY Attributes - alink, background, bgcolor, bgproperties, class, dir, id, lang, leftmargin, link, onblur, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseup, onunload, style, text, title, topmargin, vlink.
  8. Frames - A frame document does not have a body tag. Instead it has a frameset tag. This divides the display window into one or more independent windows, each displaying a different document.
  9. Editorial Markup - Defines inserted and deleted document content.

    Example:

    This is an example of how to use ins and del new information here [old information here]

    Code:

    This is an example of how to use ins and del <ins datetime=2003-05-30T10:26Z cite="http://163.150.155.238/INFO/HTML/index.html"> new information here </ins> <del>[old information here]</del>
  10. The bdo Tag - The bdo tag changes the direction of text. For instance: This is a short sentence displayed rtl. <bdo dir=rtl>This is a short sentence displayed rtl.</bdo>