Patrick Mooney
Co-Lead TA, 2013-2015
Department of English
UC Santa Barbara
Today we will be talking about:
<head>)... has these elements:
<!DOCTYPE> declaration: (to you) a string of gibberish that tells the browser what flavor of HTML you're using.<html> tag, with an xmlns= attribute to tell XML parsers how to parse the HTML.<head> tag, containing (at least) a <title> tag.<body> tag containing content.Think about how your students encounter difficult texts:
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<link> — indicates that the HTML file (in some sense) depends on another file to be properly rendered or otherwise processed.
<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>
ja means Japanese;
ja-JP means Japanese as spoken in Japan.
Here it is! And here's what it is!at non-human parsers.
<tag id="something">
<tag class="something something_else">
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.<head>:
<link rel="profile" href="http://microformats.org/profile/hcard" /><div>s and <span>s.
hCalendar<head>:
<link rel="profile" href="http://microformats.org/profile/hcalendar">class="vevent".
<span> or a <div> to enclose it.dtstart) and its description (summary).url; location (an address); end time (dtend); latitude/longitude coordinates (geo); attendee, contact, organizer (ideally represented with hCards); several others.2015-02-21)
<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]" as an attribute to your <a href> links.rel= values| relationship category | sample XFN values |
|---|---|
| friendship (at most one) | friend, acquaintance, contact |
| physical | met |
| professional | co-worker, colleague |
| geographical (at most one) | co-resident, neighbor |
| family (at most one) | child, parent, sibling, spouse, kin |
| romantic | crush, date, sweetheart |
| identity | me |
rel=rel="me", which means the page I'm pointing to also represents me.
rel= values, though we're not discussing them.One of the reasons for using microformats: Google leverages them for deciding how to display search results.
rel="author" is less widely useful than it used to be.
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>
[...]
</url>
</urlset>
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" just specifies the location of a machine-intelligible document that explains the XML vocabulary to parsers.<head>.<html> element<html prefix="og: http://ogp.me/ns#">
Four characteristics are mandatory to be minimally compliant:
<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="[URL of a thumbnail image]" />
<h1>, <h2>, etc.