Department of Mathematics

Math 300: Mathematical Computing

Hypertext Markup Language

Hypertext Markup Language, better known as HTML, is the dominant format for the transfer of information across the Internet. It was the coupling of the idea for a browser with HTML that engendered the use of the term World Wide Web .

Each HTML file is a flat text file containing tags that indicate formatting or other kinds of objects (e.g. images) to insert. HTML files follow just a few rules. Some rules are optional - they really have to do with XHTML, a replacement for HTML which we will learn later.

  1. Every HTML command is enclosed in < and > characters: e.g. <p>
  2. Basic HTML atoms are often called "tags". Every opening tag must have a closing tag. Closing tags are the same as opening tags, except that the name of the tag is preceded by a slash: e.g. <p> has closing tag </p>.
  3. The opening and closing tags enclose text whose format or content they specify.
  4. If a tag does not enclose text, it can end itself: put a slash before the > character: e.g. <br/>
  5. Tags must be nested properly: e.g. <b><i>bold italic text<i><b> is correct; <b><i>bold italic text<b><i> is not.
  6. The behavior of HTML commands can be modified by inserting style specifications in the opening tag: e.g. <p style="text-align:center"> A Centered Paragraph <p>
  7. HTML tags should be in lower case

Historically, HTML tags did not need to be closed, did not need to be nested properly, and it was even considered good style to write them in upper case letters. It is only with more recent updates to the language that these rules have become more important.

There are many tutorials available for HTML on the web - we list a few below.

In this class we will emphasize HTML5. It has attained the status of an international standard, and most browsers support it. It provides a great deal of power that was not available in HTML4, and which required more machinery to use in XHTML. In short, it makes things that used to be difficult seem easier. It might be fair to say that it has all but killed XHTML.

Some points of style seem to be worth making.

There is a terrific site giving details of HTML and CSS at blooberry.

The last test will take place at the final exam time on Tuesday, 12 December, from 1:30-3:30. It will be written as a one-hour (not 50 minute) exam, but you may have the full two hours for it. In other respects it will be very like the other tests, but comprehensive - it will emphasize Python, but cover all the topics we have seen.

Assignment A is posted.

Department of Mathematics, PO Box 643113, Neill Hall 103, Washington State University, Pullman WA 99164-3113, 509-335-3926, Contact Us
Copyright © 1996-2020 Kevin Cooper