re-
VISION

PHOTOGRAPHY AND GRAPHICS BY JAY BOERSMA

WebworkMinimal HTML Document

Web Page:
This paragraph is a very simple HTML sample containing only text with very few tags. Compare this to its source code to see the minimum elements required for an HTML document.
HTML Source Code:

<html>

<head>
<title>
Minimal HTML Document
</title>
</head>

<body>

This paragraph is a very simple HTML sample containing only text with very few tags. Compare this to its source code to see the minimum elements required for an HTML document.

</body>

</html>


Some HTML generalities:

  1. HTML tags should be lower case.
  2. Carriage returns in HTML documents are ignored by the browser (though they're very useful for organizing the HTML source document so you can easily go back and revise it). To create a break between lines of text or paragraphs in a web page, use <br> (break) or <p> (paragraph).
  3. Multiple spaces in HTML docs are compressed into a single space onscreen. If you want to force multiple spaces to occur, use the "non-breaking space" special character.
  4. <!-- Viewers won't see what's here -->
    The <!-- and --> tags place "comments" in the HTML document that will not be visible onscreen - also useful for organizing your source document.
The primary parts of an HTML doc:
<html>tells the browser that what follows is HTML text
<head>the section of the document that contains the title (can also contain other things like meta tags and scripts)
<title>whatever you put between the title tags appears in the top of the browser window.
(The title of this page is "Minimal HTML Document"
</title>closes the title tag
</head>closes the head tag
<body>begins the body of the document, the place where the page's content goes
  (The contents of your web page go between the body tags.)
</body>closes the body tag
</html>closes the HTML tag




<Previous | Webwork Table of Contents | Next>