SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
Introduction to Web Design
For Literary Theorists
Third Workshop:
Machines Read, Too (just not well)
30 May 2014
Patrick Mooney
Co-Lead TA, 2013-2015
Department of English
UC Santa Barbara
Objectives for this workshop series
● To learn the basic skills involved in building a
small website for a course or section.
● To actually build such a web site, and to do a
good job of it.
● To engage in practices that minimize the labor
required to do so.
● To make your teaching practices more visible
on the web.
● To be able to read various versions of HTML
and CSS in other places on the web.
Objectives for today’s workshop
● In the last two workshops, I’ve argued that your
markup for your site should be semantic
(indicating the structure of your document)
rather than presentational (because HTML is not
a word-processing application).
● In the last workshop, we talked about how to
control the presentation of your documents with
CSS.
● Today will present the other half of that
argument: semantic markup makes your pages
intelligible to machines as well as humans.
More specifically …
● Today we will be talking about:
– Additional HTML tags (especially in the <head>)
– Microformats (http://microformats.org)
– Sitemaps (http://sitemaps.org)
– OpenGraph (http://ogp.me)
– Some things Google likes
Details, details ...
● I’m going to be moving over a lot of details
rather quickly today.
● You don’t need to memorize them all.
– There are great references on the web, of course.
– This presentation will be online in a few days.
– What’s important is that you pick up major concepts
and work along with them.
– Come talk to me in my Lead TA office hours if you
have questions!
● A collection of useful links is online at
http://is.gd/todoho.
Reminders from previous workshops
● HTML is the standard language for displaying
content on web sites.
● An HTML document (“web page”) is a plain text file
with markup (“tags”) that indicate the structure of the
document to machines that render or otherwise
interpret it.
● Your HTML should focus on describing the
document’s structure, rather than its appearance.
– To put it another way, you should separate content from
information about its presentation.
– Describing the appearance of well-structured content is
the function of CSS.
A minimally acceptable XHTML
document
● The <!DOCTYPE> declaration is (to you) a string of gibberish whose purpose is to
tell the browser what flavor of HTML you’re using.
● The xmlns= attribute on the <html> tag tells XML parsers how to parse the HTML.
● You can just look up these values, or (even better) use existing documents as
templates.
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)
So how do machines see text?
Why be nice to machines?
1. It’s helpful to your users in various ways,
especially the tech-savvy ones.
2. It can enhance the visual appeal of your
information when it’s been processed by
machines:
– Search engine results
– Shares on Facebook, Google+, etc.
3. Like any constituency, machines appreciate it
when you pander to their preferences.
Some additional <head> contents
●
<link> – indicates that the HTML file depends on (in
some sense) another file to be properly rendered or
otherwise processed.
● An example you saw in workshop two:
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
<title>Some Books I've Read</title>
</head>
<body>
[...]
● But there are other ways for HTML documents to
depend on other documents. We’ll talk about some
of these later today.
The <meta> tag
● Always goes in the <head> section of the
document.
● As you might expect, encodes meta-
information about the document.
● This information is not directly visible to the
viewer, but is meaningful to various types of
automatic processing.
● There is no authoritative and definitive
vocabulary for meta-information, but there are
very common vocabularies.
Some examples
<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" />
Indicating the (natural) language of
your text
● You can add the 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>
● You should generally be only as specific as
you need to be.
– jp means “Japanese”; jp-JP means “Japanese as
spoken in Japan.”
Microformats
● Are a way of easily indicating certain types of
information to automatic processors while
remaining invisible to users in browsers:
– Identity information (name, address, phone
number, website, etc.)
– Calendar information (event times, locations, etc.)
– Relationships
– Recipes
– Etc.
● Think of them as a way of pointing and yelling
“Here it is!” at parsing software.
Attributes for any tag
● <tag id="something">
– Attaches a unique ID to an individual tag for some
purpose of your own.
● <tag class="something something_else">
– Indicates that the tag belongs to one or more
groups that you yourself designate for some
purpose of your own.
● One of these “purposes of your own” involves
marking content for styling.
● There are other purposes …
Marking up personal information
with hCard
● Find the HTML tag that encloses all of the
relevant information or, if there isn’t one,
surround the information with <span> ... </span>
or <div> ... </div>. Give this element the class
vcard.
● Mark up whatever relevant information is there
with class names from the hCard vocabulary.
– The only required piece of information is fn
(“formatted name”), but you can provide a lot of
other information if you’d like: email, telephone,
web page, address, birthday, photo, etc.
Example:
An “about me” web page on your site.
Also:
Why bother?
Some more notes
● If you have full control over your page’s code, you
should add the hCard profile to your document’s
<head>:
<link rel="profile"
href="http://microformats.org/profile/hcard" />
● Remember that all you’re really doing is pointing
out to non-browser parsers where a certain type of
information is.
● You can wind up with a lot of extra <div>s and
<span>s. Remember that HTML rendering
collapses whitespace, and you can take
advantage of this.
Another microformat: hCalendar
● Used for describing events in a machine-
readable way.
● If you can, add the profile to your document’s
<head>:
<link rel="profile"
href="http://microformats.org/profile/hcalendar">
● Mark up the element containing all of the
information as class="vevent".
● Required information: when the event starts
(dtstart) and its description (summary).
Other considerations
● What if the human-readable information is not
machine-friendly?
– Use the <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>
● If you have multiple events on a web page, you
can be polite to the parser by giving an element
that contains all of them (perhaps <div> or <body>)
the class vcalendar.
Examples
Marking up events on a section guidelines
handout.
Validating your semantic markup.
A final microformat: XFN
● Used for indicating relationships between
people.
● If you can, add the profile to your document’s
<head>:
<link rel="profile" href="http://gmpg.org/xfn/11">
● Really simple: just add rel="[something
meaningful]" to your <a href> links.
● Theoretically, you should use this to talk about
your relationship to a real human when you
like to a web page representing them: a blog,
a Facebook or LinkedIn profile.
What you can put in rel= values
relationship
category
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 muse, crush, date,
sweetheart
identity me
● The only one I myself
use with any
regularity is rel="me",
which means “The
page I’m pointing to
also represents me.”
● There are plenty of
other things you can
do with rel= values,
though we’re not
discussing them.
Be nice to Google
● One of the reasons for using microformats:
Google leverages them for deciding how to
display search results.
– If you know them, you can also use RDF or microdata.
● Indicate to Google that your content belongs to
you with rel="author" markup:
– <a href="[your Google+ profile URL]?
rel=author">, or
– <link rel="author" href="[your Google+ profile
URL]"> in your document’s <head>.
– Also link back to your website from your G+ profile.
Sitemaps
● A way of providing hints to search engines:
– Where are files they might not otherwise find?
– How should various documents on your own
website be ranked relative to each other?
– How often should search engines check for
document updates?
● An XML file, called sitemap.xml, at the root of
the site’s directory.
– XML is just another markup language, conceptually
similar to HTML, without a completely fixed
vocabulary. XML vocabularies depend on context.
A sample
<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>
● 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.
Some considerations
● Sitemaps are understood by Google, Bing,
Yahoo!, and other search engines.
● Information in your sitemap that points to a
domain name other than the one on which your
sitemap is hosted will be ignored.
● As in so many other ways, if a search engine
can tell that you’re trying to deceive it somehow,
this actually hurts your search engine ranking.
● You can sign up for Google Webmaster Tools
(there’s one for Bing, too) to see stats about your
website and make sure that your sitemap is
understood.
Open Graph
● A way of providing basic information that
controls how social networks display your web
pages.
● Facebook-originated, but also understood by
LinkedIn and Google+ (and others).
● Consists of a set of tags you put in your
document’s <head>.
● If you omit it, social networks will try to guess
based on other page information.
● Twitter and Pinterest understand it but prefer
that you use their own metadata vocabularies.
● Add a bit of verbiage to your root <html> element:
<html prefix="og: http://ogp.me/ns#">
● Alas, this is technically invalid in any version of HTML other
than HTML5.
● However, even if it’s technically invalid, it still works fine.
● 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="[an image
URL]" />
● There are other properties you can specify for
more control.
Increasing your search engine ranking
● Write valid HTML.
● Engage in good semantic markup practices so
that search engines understand the structure
of your document.
– Put meaningful values in <h1>, <h2>, etc.
– Use microformats (or microdata or RDF).
– Check the validity of your documents using
validators. There are good ones available free on
the Internet.
● Never ever try to deceive search engines.
● Treat your own home page as a central hub
for your online presence.
– Link to it from your other online presences.
– Link back to your other online presences from it.
– This process of reciprocal linking helps search
engines to determine that your identity hub is, in
fact, your identity hub.
● Hope for links to your content from other
places.
● Use good metadata to describe your site.
How much of this is worthwhile?
● Admittedly, doing all of this for every HTML
document that you write would be an awful lot
of work, especially at first.
● The short answer: you should do whatever
you feel comfortable doing and have time to
do. Each of the techniques we’ve talked about
today will benefit you in some ways.
● As with any skill, it gets easier as you do it
more often.

Weitere ähnliche Inhalte

Was ist angesagt?

Code inhtml5andcss3
Code inhtml5andcss3Code inhtml5andcss3
Code inhtml5andcss3Irfan Razzaq
 
WEB DESIGNING MODULE
WEB DESIGNING MODULEWEB DESIGNING MODULE
WEB DESIGNING MODULEmar jun
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3bluejayjunior
 
Html beginner
Html beginnerHtml beginner
Html beginnerwihrbt
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTMLbwire sedrick
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web TechnologyRob Bertholf
 
Xml Case Learns 2008
Xml Case Learns 2008Xml Case Learns 2008
Xml Case Learns 2008Rich Wisneski
 
Wisneski TeI workshop 2009-2010
Wisneski TeI workshop 2009-2010Wisneski TeI workshop 2009-2010
Wisneski TeI workshop 2009-2010Rich Wisneski
 
Lab 4: Introduction to HTML
Lab 4: Introduction to HTMLLab 4: Introduction to HTML
Lab 4: Introduction to HTMLvanessajade
 

Was ist angesagt? (12)

Code inhtml5andcss3
Code inhtml5andcss3Code inhtml5andcss3
Code inhtml5andcss3
 
WEB DESIGNING MODULE
WEB DESIGNING MODULEWEB DESIGNING MODULE
WEB DESIGNING MODULE
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Html beginner
Html beginnerHtml beginner
Html beginner
 
INTRODUCTION TO HTML
INTRODUCTION TO HTMLINTRODUCTION TO HTML
INTRODUCTION TO HTML
 
HTML
HTMLHTML
HTML
 
Introduction to Web Technology
Introduction to Web TechnologyIntroduction to Web Technology
Introduction to Web Technology
 
BYOWHC823
BYOWHC823BYOWHC823
BYOWHC823
 
Xml Case Learns 2008
Xml Case Learns 2008Xml Case Learns 2008
Xml Case Learns 2008
 
Wisneski TeI workshop 2009-2010
Wisneski TeI workshop 2009-2010Wisneski TeI workshop 2009-2010
Wisneski TeI workshop 2009-2010
 
Lab 4: Introduction to HTML
Lab 4: Introduction to HTMLLab 4: Introduction to HTML
Lab 4: Introduction to HTML
 
HTML
HTMLHTML
HTML
 

Andere mochten auch

Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...
Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...
Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...Patrick Mooney
 
Lecture 11 - Criticism and Theory
Lecture 11 - Criticism and TheoryLecture 11 - Criticism and Theory
Lecture 11 - Criticism and TheoryPatrick Mooney
 
Lecture 04 - Hybrid Life
Lecture 04 - Hybrid LifeLecture 04 - Hybrid Life
Lecture 04 - Hybrid LifePatrick Mooney
 
Lecture 03 - The End, and Afterwards
Lecture 03 - The End, and AfterwardsLecture 03 - The End, and Afterwards
Lecture 03 - The End, and AfterwardsPatrick Mooney
 
Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...
Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...
Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...Everyday Democracy
 
Lecture 08 - Imagining the Future
Lecture 08 - Imagining the FutureLecture 08 - Imagining the Future
Lecture 08 - Imagining the FuturePatrick Mooney
 
Lecture 18: Who Speaks, and Who Answers?
Lecture 18: Who Speaks, and Who Answers?Lecture 18: Who Speaks, and Who Answers?
Lecture 18: Who Speaks, and Who Answers?Patrick Mooney
 
Cómo ayudar a tener éxito a todos los estudiantes
Cómo ayudar a tener éxito a todos los estudiantesCómo ayudar a tener éxito a todos los estudiantes
Cómo ayudar a tener éxito a todos los estudiantesEveryday Democracy
 
Lecture 14: The Beginning Is the End Is the Beginning
Lecture 14: The Beginning Is the End Is the BeginningLecture 14: The Beginning Is the End Is the Beginning
Lecture 14: The Beginning Is the End Is the BeginningPatrick Mooney
 
Google docs
Google docsGoogle docs
Google docsopositus
 
Lecture 08 - “the walking dead in a horror film”
Lecture 08 - “the walking dead in a horror film”Lecture 08 - “the walking dead in a horror film”
Lecture 08 - “the walking dead in a horror film”Patrick Mooney
 
Lecture 17 - Anything Goes? (30 May 2012)
Lecture 17 - Anything Goes? (30 May 2012)Lecture 17 - Anything Goes? (30 May 2012)
Lecture 17 - Anything Goes? (30 May 2012)Patrick Mooney
 
Factoring Polynomials ch 5
Factoring Polynomials ch 5Factoring Polynomials ch 5
Factoring Polynomials ch 5applepi
 
Math MSA Determine a point from an Equation
Math MSA Determine a point from an EquationMath MSA Determine a point from an Equation
Math MSA Determine a point from an Equationapplepi
 
Lecture 07 - Purity, Deviation, and Judgment
Lecture 07 - Purity, Deviation, and JudgmentLecture 07 - Purity, Deviation, and Judgment
Lecture 07 - Purity, Deviation, and JudgmentPatrick Mooney
 
Lecture 16: "if separate species we be"
Lecture 16: "if separate species we be"Lecture 16: "if separate species we be"
Lecture 16: "if separate species we be"Patrick Mooney
 
Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)
Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)
Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)Patrick Mooney
 
Lecture 13 - “Endless quantities of the Real”
Lecture 13 - “Endless quantities of the Real”Lecture 13 - “Endless quantities of the Real”
Lecture 13 - “Endless quantities of the Real”Patrick Mooney
 

Andere mochten auch (20)

Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...
Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...
Lecture 15 - "It will go fast, now": Time and Place in 'salem's Lot (21 May 2...
 
Lecture 11 - Criticism and Theory
Lecture 11 - Criticism and TheoryLecture 11 - Criticism and Theory
Lecture 11 - Criticism and Theory
 
Lecture 04 - Hybrid Life
Lecture 04 - Hybrid LifeLecture 04 - Hybrid Life
Lecture 04 - Hybrid Life
 
Lecture 03 - The End, and Afterwards
Lecture 03 - The End, and AfterwardsLecture 03 - The End, and Afterwards
Lecture 03 - The End, and Afterwards
 
Amador
AmadorAmador
Amador
 
Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...
Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...
Rostros diferentes, comunidades cambiantes: Immigración y racismo, empleos, e...
 
Lecture 08 - Imagining the Future
Lecture 08 - Imagining the FutureLecture 08 - Imagining the Future
Lecture 08 - Imagining the Future
 
Lecture 18: Who Speaks, and Who Answers?
Lecture 18: Who Speaks, and Who Answers?Lecture 18: Who Speaks, and Who Answers?
Lecture 18: Who Speaks, and Who Answers?
 
Cómo ayudar a tener éxito a todos los estudiantes
Cómo ayudar a tener éxito a todos los estudiantesCómo ayudar a tener éxito a todos los estudiantes
Cómo ayudar a tener éxito a todos los estudiantes
 
Lecture 14: The Beginning Is the End Is the Beginning
Lecture 14: The Beginning Is the End Is the BeginningLecture 14: The Beginning Is the End Is the Beginning
Lecture 14: The Beginning Is the End Is the Beginning
 
Google docs
Google docsGoogle docs
Google docs
 
Lecture 08 - “the walking dead in a horror film”
Lecture 08 - “the walking dead in a horror film”Lecture 08 - “the walking dead in a horror film”
Lecture 08 - “the walking dead in a horror film”
 
Lecture 17 - Anything Goes? (30 May 2012)
Lecture 17 - Anything Goes? (30 May 2012)Lecture 17 - Anything Goes? (30 May 2012)
Lecture 17 - Anything Goes? (30 May 2012)
 
ANALISIS DE SABANAGRANDE
ANALISIS DE SABANAGRANDE ANALISIS DE SABANAGRANDE
ANALISIS DE SABANAGRANDE
 
Factoring Polynomials ch 5
Factoring Polynomials ch 5Factoring Polynomials ch 5
Factoring Polynomials ch 5
 
Math MSA Determine a point from an Equation
Math MSA Determine a point from an EquationMath MSA Determine a point from an Equation
Math MSA Determine a point from an Equation
 
Lecture 07 - Purity, Deviation, and Judgment
Lecture 07 - Purity, Deviation, and JudgmentLecture 07 - Purity, Deviation, and Judgment
Lecture 07 - Purity, Deviation, and Judgment
 
Lecture 16: "if separate species we be"
Lecture 16: "if separate species we be"Lecture 16: "if separate species we be"
Lecture 16: "if separate species we be"
 
Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)
Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)
Lecture 10 - What Language Does: Gender in Lonely Hunter (2 May 2012)
 
Lecture 13 - “Endless quantities of the Real”
Lecture 13 - “Endless quantities of the Real”Lecture 13 - “Endless quantities of the Real”
Lecture 13 - “Endless quantities of the Real”
 

Ähnlich wie Web Design for Literary Theorists III: Machines Read, Too (just not well) (v 1.0)

Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....
Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....
Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....Patrick Mooney
 
Web Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLWeb Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLPatrick Mooney
 
Web Design for Literary Theorists II: Overview of CSS (v 1.0)
Web Design for Literary Theorists II: Overview of CSS (v 1.0)Web Design for Literary Theorists II: Overview of CSS (v 1.0)
Web Design for Literary Theorists II: Overview of CSS (v 1.0)Patrick Mooney
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfAshleyJovelClavecill
 
Online sub-editing - extended
Online sub-editing - extendedOnline sub-editing - extended
Online sub-editing - extendedFiona C
 
Introduction to Web Page Design.ppt
Introduction to Web Page Design.pptIntroduction to Web Page Design.ppt
Introduction to Web Page Design.pptHamzaAhmad861123
 
Essentials of HTML (2007)
Essentials of HTML (2007)Essentials of HTML (2007)
Essentials of HTML (2007)Matteo Wyllyamz
 
How We Make Websites
How We Make WebsitesHow We Make Websites
How We Make Websitesfantasticlife
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup languageBasmaa Mostafa
 
WebProgrammingTutorial
WebProgrammingTutorialWebProgrammingTutorial
WebProgrammingTutorialJacob Johnson
 
DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...
DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...
DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...Abdelhalim DADOUCHE
 
Week 1 - Interactive News Editing and Producing
Week 1 - Interactive News Editing and ProducingWeek 1 - Interactive News Editing and Producing
Week 1 - Interactive News Editing and Producingkurtgessler
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiCss Founder
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notesDurgadevi palani
 

Ähnlich wie Web Design for Literary Theorists III: Machines Read, Too (just not well) (v 1.0) (20)

Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....
Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....
Introduction to Web Design for Literary Theorists I: Introduction to HTML (v....
 
Web Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLWeb Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTML
 
Web Design for Literary Theorists II: Overview of CSS (v 1.0)
Web Design for Literary Theorists II: Overview of CSS (v 1.0)Web Design for Literary Theorists II: Overview of CSS (v 1.0)
Web Design for Literary Theorists II: Overview of CSS (v 1.0)
 
Lesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdfLesson 8 Computer Creating your Website.pdf
Lesson 8 Computer Creating your Website.pdf
 
HTML5 - My First Webpage
HTML5 - My First Webpage HTML5 - My First Webpage
HTML5 - My First Webpage
 
Online sub-editing - extended
Online sub-editing - extendedOnline sub-editing - extended
Online sub-editing - extended
 
cotd6.pptx
cotd6.pptxcotd6.pptx
cotd6.pptx
 
Introduction to Web Page Design.ppt
Introduction to Web Page Design.pptIntroduction to Web Page Design.ppt
Introduction to Web Page Design.ppt
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Essentials of HTML (2007)
Essentials of HTML (2007)Essentials of HTML (2007)
Essentials of HTML (2007)
 
How We Make Websites
How We Make WebsitesHow We Make Websites
How We Make Websites
 
HTML - hypertext markup language
HTML - hypertext markup languageHTML - hypertext markup language
HTML - hypertext markup language
 
WebProgrammingTutorial
WebProgrammingTutorialWebProgrammingTutorial
WebProgrammingTutorial
 
DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...
DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...
DevRel Salon - Writing Decent Documentation, a learning journey with plenty o...
 
Week 1 - Interactive News Editing and Producing
Week 1 - Interactive News Editing and ProducingWeek 1 - Interactive News Editing and Producing
Week 1 - Interactive News Editing and Producing
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
SeniorProject_Jurgun
SeniorProject_JurgunSeniorProject_Jurgun
SeniorProject_Jurgun
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
Day1
Day1Day1
Day1
 

Mehr von Patrick Mooney

[2015 07-28] lecture 22: ... Nothing, Something
[2015 07-28] lecture 22:  ... Nothing, Something[2015 07-28] lecture 22:  ... Nothing, Something
[2015 07-28] lecture 22: ... Nothing, SomethingPatrick Mooney
 
Lecture 21: Whatever You Say, Say ...
Lecture 21: Whatever You Say, Say ...Lecture 21: Whatever You Say, Say ...
Lecture 21: Whatever You Say, Say ...Patrick Mooney
 
Lecture 20: The Sonnet, Again
Lecture 20: The Sonnet, AgainLecture 20: The Sonnet, Again
Lecture 20: The Sonnet, AgainPatrick Mooney
 
Lecture 19: NU MISH BOOT ZUP KO
Lecture 19: NU MISH BOOT ZUP KOLecture 19: NU MISH BOOT ZUP KO
Lecture 19: NU MISH BOOT ZUP KOPatrick Mooney
 
Lecture 17: The Re-Emergence of the Real
Lecture 17: The Re-Emergence of the RealLecture 17: The Re-Emergence of the Real
Lecture 17: The Re-Emergence of the RealPatrick Mooney
 
Lecture 16: "Convulsions, coma, miscarriage"
Lecture 16: "Convulsions, coma, miscarriage"Lecture 16: "Convulsions, coma, miscarriage"
Lecture 16: "Convulsions, coma, miscarriage"Patrick Mooney
 
Lecture 15: "rich in codes and messages"
Lecture 15: "rich in codes and messages"Lecture 15: "rich in codes and messages"
Lecture 15: "rich in codes and messages"Patrick Mooney
 
Lecture 14: "To speke of wo that Is in mariage"
Lecture 14: "To speke of wo that Is in mariage"Lecture 14: "To speke of wo that Is in mariage"
Lecture 14: "To speke of wo that Is in mariage"Patrick Mooney
 
Lecture 13: Theory of … What?
Lecture 13: Theory of … What?Lecture 13: Theory of … What?
Lecture 13: Theory of … What?Patrick Mooney
 
Lecture 11: How We Find Out Who We Are
Lecture 11: How We Find Out Who We AreLecture 11: How We Find Out Who We Are
Lecture 11: How We Find Out Who We ArePatrick Mooney
 
Lecture 10: Who's Speaking, and What Can They Say?
Lecture 10: Who's Speaking, and What Can They Say?Lecture 10: Who's Speaking, and What Can They Say?
Lecture 10: Who's Speaking, and What Can They Say?Patrick Mooney
 
Lecture 09: The Things You Can't Say (in Public)
Lecture 09: The Things You Can't Say (in Public)Lecture 09: The Things You Can't Say (in Public)
Lecture 09: The Things You Can't Say (in Public)Patrick Mooney
 
Lecture 08: “two sides of the same coin”
Lecture 08: “two sides of the same coin”Lecture 08: “two sides of the same coin”
Lecture 08: “two sides of the same coin”Patrick Mooney
 
Lecture 07: Whom Can You Trust?
Lecture 07: Whom Can You Trust?Lecture 07: Whom Can You Trust?
Lecture 07: Whom Can You Trust?Patrick Mooney
 
Lecture 06: Sonnets and Odes
Lecture 06: Sonnets and OdesLecture 06: Sonnets and Odes
Lecture 06: Sonnets and OdesPatrick Mooney
 
Lecture 05: Interpretation and Bullshit
Lecture 05: Interpretation and BullshitLecture 05: Interpretation and Bullshit
Lecture 05: Interpretation and BullshitPatrick Mooney
 
Lecture 04: Dishonesty and Deception, 25 June 2015
Lecture 04: Dishonesty and Deception, 25 June 2015Lecture 04: Dishonesty and Deception, 25 June 2015
Lecture 04: Dishonesty and Deception, 25 June 2015Patrick Mooney
 
Lecture 03: A Gentle Introduction to Theory
Lecture 03: A Gentle Introduction to TheoryLecture 03: A Gentle Introduction to Theory
Lecture 03: A Gentle Introduction to TheoryPatrick Mooney
 
Lecture 02: Poetics and Poetry: An Introduction
Lecture 02: Poetics and Poetry: An IntroductionLecture 02: Poetics and Poetry: An Introduction
Lecture 02: Poetics and Poetry: An IntroductionPatrick Mooney
 
Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014Patrick Mooney
 

Mehr von Patrick Mooney (20)

[2015 07-28] lecture 22: ... Nothing, Something
[2015 07-28] lecture 22:  ... Nothing, Something[2015 07-28] lecture 22:  ... Nothing, Something
[2015 07-28] lecture 22: ... Nothing, Something
 
Lecture 21: Whatever You Say, Say ...
Lecture 21: Whatever You Say, Say ...Lecture 21: Whatever You Say, Say ...
Lecture 21: Whatever You Say, Say ...
 
Lecture 20: The Sonnet, Again
Lecture 20: The Sonnet, AgainLecture 20: The Sonnet, Again
Lecture 20: The Sonnet, Again
 
Lecture 19: NU MISH BOOT ZUP KO
Lecture 19: NU MISH BOOT ZUP KOLecture 19: NU MISH BOOT ZUP KO
Lecture 19: NU MISH BOOT ZUP KO
 
Lecture 17: The Re-Emergence of the Real
Lecture 17: The Re-Emergence of the RealLecture 17: The Re-Emergence of the Real
Lecture 17: The Re-Emergence of the Real
 
Lecture 16: "Convulsions, coma, miscarriage"
Lecture 16: "Convulsions, coma, miscarriage"Lecture 16: "Convulsions, coma, miscarriage"
Lecture 16: "Convulsions, coma, miscarriage"
 
Lecture 15: "rich in codes and messages"
Lecture 15: "rich in codes and messages"Lecture 15: "rich in codes and messages"
Lecture 15: "rich in codes and messages"
 
Lecture 14: "To speke of wo that Is in mariage"
Lecture 14: "To speke of wo that Is in mariage"Lecture 14: "To speke of wo that Is in mariage"
Lecture 14: "To speke of wo that Is in mariage"
 
Lecture 13: Theory of … What?
Lecture 13: Theory of … What?Lecture 13: Theory of … What?
Lecture 13: Theory of … What?
 
Lecture 11: How We Find Out Who We Are
Lecture 11: How We Find Out Who We AreLecture 11: How We Find Out Who We Are
Lecture 11: How We Find Out Who We Are
 
Lecture 10: Who's Speaking, and What Can They Say?
Lecture 10: Who's Speaking, and What Can They Say?Lecture 10: Who's Speaking, and What Can They Say?
Lecture 10: Who's Speaking, and What Can They Say?
 
Lecture 09: The Things You Can't Say (in Public)
Lecture 09: The Things You Can't Say (in Public)Lecture 09: The Things You Can't Say (in Public)
Lecture 09: The Things You Can't Say (in Public)
 
Lecture 08: “two sides of the same coin”
Lecture 08: “two sides of the same coin”Lecture 08: “two sides of the same coin”
Lecture 08: “two sides of the same coin”
 
Lecture 07: Whom Can You Trust?
Lecture 07: Whom Can You Trust?Lecture 07: Whom Can You Trust?
Lecture 07: Whom Can You Trust?
 
Lecture 06: Sonnets and Odes
Lecture 06: Sonnets and OdesLecture 06: Sonnets and Odes
Lecture 06: Sonnets and Odes
 
Lecture 05: Interpretation and Bullshit
Lecture 05: Interpretation and BullshitLecture 05: Interpretation and Bullshit
Lecture 05: Interpretation and Bullshit
 
Lecture 04: Dishonesty and Deception, 25 June 2015
Lecture 04: Dishonesty and Deception, 25 June 2015Lecture 04: Dishonesty and Deception, 25 June 2015
Lecture 04: Dishonesty and Deception, 25 June 2015
 
Lecture 03: A Gentle Introduction to Theory
Lecture 03: A Gentle Introduction to TheoryLecture 03: A Gentle Introduction to Theory
Lecture 03: A Gentle Introduction to Theory
 
Lecture 02: Poetics and Poetry: An Introduction
Lecture 02: Poetics and Poetry: An IntroductionLecture 02: Poetics and Poetry: An Introduction
Lecture 02: Poetics and Poetry: An Introduction
 
Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014
 

Kürzlich hochgeladen

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Kürzlich hochgeladen (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Web Design for Literary Theorists III: Machines Read, Too (just not well) (v 1.0)

  • 1. Introduction to Web Design For Literary Theorists Third Workshop: Machines Read, Too (just not well) 30 May 2014 Patrick Mooney Co-Lead TA, 2013-2015 Department of English UC Santa Barbara
  • 2. Objectives for this workshop series ● To learn the basic skills involved in building a small website for a course or section. ● To actually build such a web site, and to do a good job of it. ● To engage in practices that minimize the labor required to do so. ● To make your teaching practices more visible on the web. ● To be able to read various versions of HTML and CSS in other places on the web.
  • 3. Objectives for today’s workshop ● In the last two workshops, I’ve argued that your markup for your site should be semantic (indicating the structure of your document) rather than presentational (because HTML is not a word-processing application). ● In the last workshop, we talked about how to control the presentation of your documents with CSS. ● Today will present the other half of that argument: semantic markup makes your pages intelligible to machines as well as humans.
  • 4. More specifically … ● Today we will be talking about: – Additional HTML tags (especially in the <head>) – Microformats (http://microformats.org) – Sitemaps (http://sitemaps.org) – OpenGraph (http://ogp.me) – Some things Google likes
  • 5. Details, details ... ● I’m going to be moving over a lot of details rather quickly today. ● You don’t need to memorize them all. – There are great references on the web, of course. – This presentation will be online in a few days. – What’s important is that you pick up major concepts and work along with them. – Come talk to me in my Lead TA office hours if you have questions! ● A collection of useful links is online at http://is.gd/todoho.
  • 6. Reminders from previous workshops ● HTML is the standard language for displaying content on web sites. ● An HTML document (“web page”) is a plain text file with markup (“tags”) that indicate the structure of the document to machines that render or otherwise interpret it. ● Your HTML should focus on describing the document’s structure, rather than its appearance. – To put it another way, you should separate content from information about its presentation. – Describing the appearance of well-structured content is the function of CSS.
  • 7. A minimally acceptable XHTML document ● The <!DOCTYPE> declaration is (to you) a string of gibberish whose purpose is to tell the browser what flavor of HTML you’re using. ● The xmlns= attribute on the <html> tag tells XML parsers how to parse the HTML. ● You can just look up these values, or (even better) use existing documents as templates.
  • 8. 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) So how do machines see text?
  • 9. Why be nice to machines? 1. It’s helpful to your users in various ways, especially the tech-savvy ones. 2. It can enhance the visual appeal of your information when it’s been processed by machines: – Search engine results – Shares on Facebook, Google+, etc. 3. Like any constituency, machines appreciate it when you pander to their preferences.
  • 10. Some additional <head> contents ● <link> – indicates that the HTML file depends on (in some sense) another file to be properly rendered or otherwise processed. ● An example you saw in workshop two: <head> <link rel="stylesheet" type="text/css" href="styles.css"> <title>Some Books I've Read</title> </head> <body> [...] ● But there are other ways for HTML documents to depend on other documents. We’ll talk about some of these later today.
  • 11. The <meta> tag ● Always goes in the <head> section of the document. ● As you might expect, encodes meta- information about the document. ● This information is not directly visible to the viewer, but is meaningful to various types of automatic processing. ● There is no authoritative and definitive vocabulary for meta-information, but there are very common vocabularies.
  • 12. Some examples <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" />
  • 13. Indicating the (natural) language of your text ● You can add the 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> ● You should generally be only as specific as you need to be. – jp means “Japanese”; jp-JP means “Japanese as spoken in Japan.”
  • 14. Microformats ● Are a way of easily indicating certain types of information to automatic processors while remaining invisible to users in browsers: – Identity information (name, address, phone number, website, etc.) – Calendar information (event times, locations, etc.) – Relationships – Recipes – Etc. ● Think of them as a way of pointing and yelling “Here it is!” at parsing software.
  • 15. Attributes for any tag ● <tag id="something"> – Attaches a unique ID to an individual tag for some purpose of your own. ● <tag class="something something_else"> – Indicates that the tag belongs to one or more groups that you yourself designate for some purpose of your own. ● One of these “purposes of your own” involves marking content for styling. ● There are other purposes …
  • 16. Marking up personal information with hCard ● Find the HTML tag that encloses all of the relevant information or, if there isn’t one, surround the information with <span> ... </span> or <div> ... </div>. Give this element the class vcard. ● Mark up whatever relevant information is there with class names from the hCard vocabulary. – The only required piece of information is fn (“formatted name”), but you can provide a lot of other information if you’d like: email, telephone, web page, address, birthday, photo, etc.
  • 17. Example: An “about me” web page on your site. Also: Why bother?
  • 18. Some more notes ● If you have full control over your page’s code, you should add the hCard profile to your document’s <head>: <link rel="profile" href="http://microformats.org/profile/hcard" /> ● Remember that all you’re really doing is pointing out to non-browser parsers where a certain type of information is. ● You can wind up with a lot of extra <div>s and <span>s. Remember that HTML rendering collapses whitespace, and you can take advantage of this.
  • 19. Another microformat: hCalendar ● Used for describing events in a machine- readable way. ● If you can, add the profile to your document’s <head>: <link rel="profile" href="http://microformats.org/profile/hcalendar"> ● Mark up the element containing all of the information as class="vevent". ● Required information: when the event starts (dtstart) and its description (summary).
  • 20. Other considerations ● What if the human-readable information is not machine-friendly? – Use the <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> ● If you have multiple events on a web page, you can be polite to the parser by giving an element that contains all of them (perhaps <div> or <body>) the class vcalendar.
  • 21. Examples Marking up events on a section guidelines handout. Validating your semantic markup.
  • 22. A final microformat: XFN ● Used for indicating relationships between people. ● If you can, add the profile to your document’s <head>: <link rel="profile" href="http://gmpg.org/xfn/11"> ● Really simple: just add rel="[something meaningful]" to your <a href> links. ● Theoretically, you should use this to talk about your relationship to a real human when you like to a web page representing them: a blog, a Facebook or LinkedIn profile.
  • 23. What you can put in rel= values relationship category 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 muse, crush, date, sweetheart identity me ● The only one I myself use with any regularity is rel="me", which means “The page I’m pointing to also represents me.” ● There are plenty of other things you can do with rel= values, though we’re not discussing them.
  • 24. Be nice to Google ● One of the reasons for using microformats: Google leverages them for deciding how to display search results. – If you know them, you can also use RDF or microdata. ● Indicate to Google that your content belongs to you with rel="author" markup: – <a href="[your Google+ profile URL]? rel=author">, or – <link rel="author" href="[your Google+ profile URL]"> in your document’s <head>. – Also link back to your website from your G+ profile.
  • 25. Sitemaps ● A way of providing hints to search engines: – Where are files they might not otherwise find? – How should various documents on your own website be ranked relative to each other? – How often should search engines check for document updates? ● An XML file, called sitemap.xml, at the root of the site’s directory. – XML is just another markup language, conceptually similar to HTML, without a completely fixed vocabulary. XML vocabularies depend on context.
  • 27. Some considerations ● Sitemaps are understood by Google, Bing, Yahoo!, and other search engines. ● Information in your sitemap that points to a domain name other than the one on which your sitemap is hosted will be ignored. ● As in so many other ways, if a search engine can tell that you’re trying to deceive it somehow, this actually hurts your search engine ranking. ● You can sign up for Google Webmaster Tools (there’s one for Bing, too) to see stats about your website and make sure that your sitemap is understood.
  • 28. Open Graph ● A way of providing basic information that controls how social networks display your web pages. ● Facebook-originated, but also understood by LinkedIn and Google+ (and others). ● Consists of a set of tags you put in your document’s <head>. ● If you omit it, social networks will try to guess based on other page information. ● Twitter and Pinterest understand it but prefer that you use their own metadata vocabularies.
  • 29. ● Add a bit of verbiage to your root <html> element: <html prefix="og: http://ogp.me/ns#"> ● Alas, this is technically invalid in any version of HTML other than HTML5. ● However, even if it’s technically invalid, it still works fine. ● 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="[an image URL]" /> ● There are other properties you can specify for more control.
  • 30. Increasing your search engine ranking ● Write valid HTML. ● Engage in good semantic markup practices so that search engines understand the structure of your document. – Put meaningful values in <h1>, <h2>, etc. – Use microformats (or microdata or RDF). – Check the validity of your documents using validators. There are good ones available free on the Internet. ● Never ever try to deceive search engines.
  • 31. ● Treat your own home page as a central hub for your online presence. – Link to it from your other online presences. – Link back to your other online presences from it. – This process of reciprocal linking helps search engines to determine that your identity hub is, in fact, your identity hub. ● Hope for links to your content from other places. ● Use good metadata to describe your site.
  • 32. How much of this is worthwhile? ● Admittedly, doing all of this for every HTML document that you write would be an awful lot of work, especially at first. ● The short answer: you should do whatever you feel comfortable doing and have time to do. Each of the techniques we’ve talked about today will benefit you in some ways. ● As with any skill, it gets easier as you do it more often.