Whitman Archive HTML Structure

From Whitman Archive

The template for Archive pages is applied by html_wrapper.xsl. The input for this transformation should be a valid XHTML page (with namespace http://www.w3.org/1999/xhtml). The wrapper stylesheet will add the header, footer, and metadata to to final HTML output. The stylesheet will also look for certain tags within the input file that will affect the output page.

Title

<title>

Styling

If there is styling that is specific to one page it can be added by using this tag in the <head>. If the styling can be recycled for other pages, it should be added to the main CSS for the archive (/css/body.css).

<style type="text/css" title="include" >

<link type="text/css" rel="stylesheet" href="file.css" title="include" >

Page Headings

<h1 class="docTitle"> <h2 class="docTitle">

Section

<meta name="section">


HTML template

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>

<h1 class="docTitle"></h1>
<h2 class="docTitle"></h2>

</body>
</html>

Good HTML Practices

When writing HTML code for the archive the page should validate, and the tags should focus on semantics over styling. A good reference for "semantic" HTML tags is http://brainstormsandraves.com/articles/semantics/structure/.