Today we will be talking about:
<head> section)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Some books I've read</title>
</head>
<body>
<p>Of all the books I've read in graduate school, the <em>least</em> worthwhile was <cite>Infinite Jest</cite>.</p>
<p>On the other hand, I quite enjoyed <cite>House of Leaves</cite>.</p>
</body>
</html>
<!DOCTYPE> declaration is (to you) a string of gibberish whose purpose is to tell the browser what flavor of HTML you’re using.xmlns= attribute on the <html> tag tells XML parsers how to parse the HTML.Caddy came to the door and stood there, looking at Father and Mother. Her eyes flew at me, and away. I began to cry. It went loud and I got up. Caddy came in and stood with her back to the wall, looking at me. I went toward her, crying, and she shrank against the wall and I saw her but I pulled at her dress. Her eyes ran.
Versh said, Your name Benjamin now. You know how come your name Benjamin now. They making a bluegum out of you.
William Faulkner, The Sound and the Fury (page 44 in the Norton Critical Edition)
<head> contents<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
<title>Some Books I've Read</title>
</head>
<body>
[...]<meta> tag<head> section of the document.<meta name="generator" content="Bluefish 2.2.3" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="author" content="Patrick Mooney" />
<meta name="copyright" content="Copyright © 2014 Patrick Mooney" />
<meta name="keywords" content="Southern literature, UCSB, spring 2014, Faulkner, Eudora Welty" />
<meta name="description" content="Notes for my discussion section in English 133SO, Spring 2014, at UC Santa Barbara." />
<meta name="date" content="2014-05-29T03:47:45-0700" />lang= attribute to any HTML tag:
<body lang="en">
<p lang="en-US">In J.M. Synge’s <cite>The Playboy of the Western World</cite>, Christy Mahon refers to a shovel as a <q lang="en-IE">loy</q>.</p>
</body>jp means “Japanese”; jp-JP means “Japanese as spoken in Japan.”<tag id="something">
<tag class="something something_else">
One of these “purposes of your own” involves marking content for styling. There are other purposes …
hCard<span> ... </span> or <div> ... </div>. Give this element the class vcard.hCard vocabulary.
fn (“formatted name”), but you can provide a lot of other information if you’d like: email, telephone, web page, address, birthday, photo, etc.An “about me” web page on your site.
Why bother?
<head>:
<link rel="profile" href="http://microformats.org/profile/hcard" /><div>s and <span>s. Remember that HTML rendering collapses whitespace, and you can take advantage of this.hCalendar<head>:
<link rel="profile" href="http://microformats.org/profile/hcalendar">class="vevent".dtstart) and its description (summary).<abbr> (abbreviation) tag to encode a machine-friendly version in the tag’s title attribute:
<p class="vevent"><span class="summary">First paper due</span> at <abbr class="dtstart" title="2014-05-19T12:00">noon on May 19</abbr>.</p>
<div> or <body>) the class vcalendar.<head>:
<link rel="profile" href="http://gmpg.org/xfn/11">rel="[something meaningful]" to your <a href> links.| relationship category | XFN values |
|---|---|
| friendship | friend, acquaintance, contact (at most one) |
| physical | met |
| professional | co-worker, colleague |
| geographical | co-resident, neighbor (at most one) |
| family | child, parent, sibling, spouse, kin (at most one) |
| romantic | muse, crush, date, sweetheart |
| identity | me |
rel="me", which means “The page I’m pointing to also represents me.”rel= values, though we’re not discussing them.rel="author" markup:
<a href="[your Google+ profile URL]?rel=author">,
<link rel="author" href="[your Google+ profile URL]"> in your document’s <head>.sitemap.xml, at the root of the site’s directory.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://patrickbrianmooney.nfshost.com/~patrick/</loc>
<changefreq>weekly</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>http://patrickbrianmooney.nfshost.com/~patrick/credits.html</loc>
<changefreq>weekly</changefreq>
<priority>0.1</priority>
</url>
</urlset><head>.<html> element:
<html prefix="og: http://ogp.me/ns#">
<meta property="og:title" content="Discussion Notes for George Eliot's Middlemarch" />
<meta property="og:type" content="website" />
<meta property="og:url" content="[the document’s actual URL]" />
<meta property="og:image" content="[an image URL]" /><h1>, <h2>, etc.