SlideShare a Scribd company logo
Studio 3: Semantic HTML
Prof. Alvarado
MDST 3703
12 September 2013
Business
• About the Readings
– Primary sources, not digested
– Coming from many directions
– Not required to know everything!
– Salient points discussed in class
• Exercises
– Not graded directly
– Not highly structured on purpose
Review
• What is an "Interface”?
Text interface (aka command-line interface)
A window from a Graphical User Interface (aka GUI)
First Mac interface
The IBM 7090 had an interface of switches and
lights
Review
• I have used the word “interface” in contrast with
source code
– As in “web interface”
• But source code is accessed through an interface
too
– E.g. JEdit
– Key contrast is between that which is source and
product of interpretation
– Sometimes, we think the product of interpretation
(structuralism) is closer to the original
Review
• Is Text shadow or puppet?
Review
• Text is shadow and puppet
– Shadow in that is it created by an author to
produce effects
– Puppet in that writing is a powerful form of
representation that can express both rules and
patterns (O'Shea's point)
– What's a puppet and what's a shadow has more to
do with context
– One's man's shadow is another man's puppet
Semantic HTML
Semantic HTML
• Elements should stand for meaningful units, not
layout instructions
– E.g. <i>The Name of the Rose</i> is not
semantic
• So, two new elements:
– DIV: Defines and arbitrary block of text
– SPAN: Defines and arbitrary segment of text (i.e. no
implied hard return)
• And two new attributes:
– CLASS: Associates a DIV or SPAN with a category
– ID: Identifies a unique DIV or SPAN in a document
Semantic HTML
• So, we do things like this instead:
<span class=“book-title”>The Name of the
Rose</span>
<div id=“abstract”><p>Blah, blah, blah.
Blah? Of course, blah.</div>
• We can make up our own class and id names as
we go along
Applying CSS
• Why do we do this?
– So we can use HTML to define structure and CSS
to define style
– We want our code to map onto the levels of text
– Principle of “separation of concerns”
• The CSS looks like this:
.book-title { font-style: italic; }
#abstract { font-size: 90%; }
Example of a CSS directive
.foo {
font-size:14pt;
font-weight:bold;
}
CSS Syntax: Selectors
.important {
background-color: yellow;
}
The “selector” indicates what elements
the styles apply to. Can address
element names, classes, and ID.
CSS Syntax: Selectors
#abstract {
font-size:11pt;
font-weight:bold;
}
Here the selector finds
an element with an ID
attribute with the value
“foo” …
e.g. <div id=“foo”>Hey.</div>
Example selectors
div
Any DIV element
span#important
Any SPAN element with a class of
important
.importatn
Any element with a class of
important
#abstract
The one element with an id of abstract
CSS Syntax: Declarations
.important {
font-size:14pt;
font-weight:bold;
}
The “declarations” specify
properties and values to apply to
the element.
Format = property-name: value;
Example Directives
font-family: Georgia, Garamond, serif;
color: blue;
color: #eeff99;
background-color: gray;
border: 1px solid black;
CSS Box Model
Basic Idea
• A CSS file is just a series of “rules” that
associated styles with elements
• A CSS rule has two parts
– A selector to identify elements (tag name, class,
id)
– One or more declarations of style
• CSS rules have a simple syntax
– Selectors followed by curly braces
– Key/value pairs separated by colons
– Rules separated by semi-colons
Exercises
Exercise 1: Add semantic markup to
the Poetics
1. Create a folder for this week (09-12)
2. Make a copy of the poetics.html file you
created last week and paste it into today’s
folder
3. Add some semantic HTML to the document
and add a style
– E.g. mark up some people’s names in the text
and give them the class “person”
Exercise 2: Mark up Oedipus
• Create an empty HTML document (with the
four basic elements)
– Call it “oedipus.html”
• Go to the Oedipus link provided in today’s
blog post
• Grab the source and paste it into your new
document
Exercise 3: Inspect the source code
• Form into groups of 5 and discuss the
question: Does it use semantic html?
– 5 minutes of discussion
– 1 respondent from each group
Exercise 4: Markup Challenge
• Stay in your groups and respond to the
following challenge as a group
– Using the page anchors as clues, how would you
go about visually representing page breaks?
– Based on your answer, implement your solution
• Scribes: describe what was done
– What are the problems that you see in terms of
the structure?
– Why would you want to show pages?

More Related Content

PPTX
Presentation1
PPTX
Mdst3703 2013-09-17-text-models
PPTX
UVA MDST 3073 Texts and Models-2012-09-11
PPT
Ontology Engineering: ontology construction II
PPTX
Marac subject guides pflug
PDF
W3C Data Shapes Working Group 2014
ODP
Lyx : A Book Writer's Dream - NEWLUG
PDF
Building and using ontologies
Presentation1
Mdst3703 2013-09-17-text-models
UVA MDST 3073 Texts and Models-2012-09-11
Ontology Engineering: ontology construction II
Marac subject guides pflug
W3C Data Shapes Working Group 2014
Lyx : A Book Writer's Dream - NEWLUG
Building and using ontologies

What's hot (10)

PPTX
Introduction to XML
PPTX
An hour with Database and SQL
PPTX
20140916 mcn pro_slidesppt
PPT
Website with HTML CSS
PPTX
Week 1 - Intro to the Internet
PDF
SSSW 2012 - Reusing XML Schemas' Information as a Foundation for Designing Do...
PDF
SDL Trados Studio 2014 - Working with advanced file types
PPTX
Chatter sharing session presenation 13th july 2015 by manish
Introduction to XML
An hour with Database and SQL
20140916 mcn pro_slidesppt
Website with HTML CSS
Week 1 - Intro to the Internet
SSSW 2012 - Reusing XML Schemas' Information as a Foundation for Designing Do...
SDL Trados Studio 2014 - Working with advanced file types
Chatter sharing session presenation 13th july 2015 by manish
Ad

Viewers also liked (9)

PPTX
UVA MDST 3703 The Stack of Scholarship 2012-09-24
PPTX
Mdst3705 2013-02-12-finding-data
PPTX
UVA MDST 3703 Studio 01 2012-08-30
PPTX
MDST 3703 F10 Seminar 14
PPTX
MDST 3703 F10 Studio 2
PPTX
Mdst3703 2013-10-08-thematic-research-collections
PPTX
Mdst3703 maps-and-timelines-2012-11-13
PPTX
Mdst3703 shiva-2012-10-18
PPT
Hd Overview
UVA MDST 3703 The Stack of Scholarship 2012-09-24
Mdst3705 2013-02-12-finding-data
UVA MDST 3703 Studio 01 2012-08-30
MDST 3703 F10 Seminar 14
MDST 3703 F10 Studio 2
Mdst3703 2013-10-08-thematic-research-collections
Mdst3703 maps-and-timelines-2012-11-13
Mdst3703 shiva-2012-10-18
Hd Overview
Ad

Similar to Mdst3703 2013-09-12-semantic-html (20)

PPTX
HTML5 and CSS Fundamentals MOOC Course College Presentation
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PDF
Cmsc 100 xhtml and css
PDF
Html / CSS Presentation
PPTX
UVA MDST 3073 CSS 2012-09-20
PPTX
Lab#1 - Front End Development
PDF
WEB Module 1.pdf
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
Introduction to HTML+CSS+Javascript.pptx
PPTX
gdg Introduction to HTML-CSS-Javascript.pptx
PPTX
Introduction to HTML-CSS-Javascript.pptx
PPT
Web design-workflow
PPTX
html css js bootstrap framework thisis i
PDF
Html5 deciphered - designing concepts part 1
PDF
Intro to HTML and CSS basics
PPTX
Html-Prabakaran
PPTX
Introduction to Html5, css, Javascript and Jquery
ODP
Light introduction to HTML
PDF
Introduction to HTML-CSS-Javascript.pdf
HTML5 and CSS Fundamentals MOOC Course College Presentation
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
Cmsc 100 xhtml and css
Html / CSS Presentation
UVA MDST 3073 CSS 2012-09-20
Lab#1 - Front End Development
WEB Module 1.pdf
Introduction to HTML+CSS+Javascript.pptx
Introduction to HTML+CSS+Javascript.pptx
gdg Introduction to HTML-CSS-Javascript.pptx
Introduction to HTML-CSS-Javascript.pptx
Web design-workflow
html css js bootstrap framework thisis i
Html5 deciphered - designing concepts part 1
Intro to HTML and CSS basics
Html-Prabakaran
Introduction to Html5, css, Javascript and Jquery
Light introduction to HTML
Introduction to HTML-CSS-Javascript.pdf

More from Rafael Alvarado (20)

PPTX
Mdst3703 2013-10-01-hypertext-and-history
PPTX
Mdst3703 2013-09-24-hypertext
PPTX
Mdst3703 2013-09-10-textual-signals
PPTX
Mdst3703 2013-09-05-studio2
PPTX
Mdst3703 2013-09-03-plato2
PPTX
Mdst3703 2013-08-29-hello-world
PPTX
UVA MDST 3703 2013 08-27 Introduction
PPTX
MDST 3705 2012-03-05 Databases to Visualization
PPTX
Mdst3705 2013-02-26-db-as-genre
PPTX
Mdst3705 2013-02-19-text-into-data
PPTX
Mdst3705 2013-02-05-databases
PPTX
Mdst3705 2013-01-29-praxis
PPTX
Mdst3705 2013-01-31-php3
PPTX
Mdst3705 2012-01-22-code-as-language
PPTX
Mdst3705 2013-01-24-php2
PPTX
Mdst3705 2012-01-15-introduction
PPTX
Mdst3703 graph-theory-11-20-2012
PPTX
Mdst3703 culturomics-2012-11-01
PPTX
Mdst3703 visualization-2012-10-23
PPTX
Mdst3703 ontology-overrated-2012-10-16
Mdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-09-24-hypertext
Mdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-03-plato2
Mdst3703 2013-08-29-hello-world
UVA MDST 3703 2013 08-27 Introduction
MDST 3705 2012-03-05 Databases to Visualization
Mdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-05-databases
Mdst3705 2013-01-29-praxis
Mdst3705 2013-01-31-php3
Mdst3705 2012-01-22-code-as-language
Mdst3705 2013-01-24-php2
Mdst3705 2012-01-15-introduction
Mdst3703 graph-theory-11-20-2012
Mdst3703 culturomics-2012-11-01
Mdst3703 visualization-2012-10-23
Mdst3703 ontology-overrated-2012-10-16

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Empathic Computing: Creating Shared Understanding
PDF
Modernizing your data center with Dell and AMD
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
NewMind AI Weekly Chronicles - August'25 Week I
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Empathic Computing: Creating Shared Understanding
Modernizing your data center with Dell and AMD
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectral efficient network and resource selection model in 5G networks
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Understanding_Digital_Forensics_Presentation.pptx
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Reach Out and Touch Someone: Haptics and Empathic Computing
Dropbox Q2 2025 Financial Results & Investor Presentation

Mdst3703 2013-09-12-semantic-html

  • 1. Studio 3: Semantic HTML Prof. Alvarado MDST 3703 12 September 2013
  • 2. Business • About the Readings – Primary sources, not digested – Coming from many directions – Not required to know everything! – Salient points discussed in class • Exercises – Not graded directly – Not highly structured on purpose
  • 3. Review • What is an "Interface”?
  • 4. Text interface (aka command-line interface)
  • 5. A window from a Graphical User Interface (aka GUI)
  • 7. The IBM 7090 had an interface of switches and lights
  • 8. Review • I have used the word “interface” in contrast with source code – As in “web interface” • But source code is accessed through an interface too – E.g. JEdit – Key contrast is between that which is source and product of interpretation – Sometimes, we think the product of interpretation (structuralism) is closer to the original
  • 9. Review • Is Text shadow or puppet?
  • 10. Review • Text is shadow and puppet – Shadow in that is it created by an author to produce effects – Puppet in that writing is a powerful form of representation that can express both rules and patterns (O'Shea's point) – What's a puppet and what's a shadow has more to do with context – One's man's shadow is another man's puppet
  • 12. Semantic HTML • Elements should stand for meaningful units, not layout instructions – E.g. <i>The Name of the Rose</i> is not semantic • So, two new elements: – DIV: Defines and arbitrary block of text – SPAN: Defines and arbitrary segment of text (i.e. no implied hard return) • And two new attributes: – CLASS: Associates a DIV or SPAN with a category – ID: Identifies a unique DIV or SPAN in a document
  • 13. Semantic HTML • So, we do things like this instead: <span class=“book-title”>The Name of the Rose</span> <div id=“abstract”><p>Blah, blah, blah. Blah? Of course, blah.</div> • We can make up our own class and id names as we go along
  • 14. Applying CSS • Why do we do this? – So we can use HTML to define structure and CSS to define style – We want our code to map onto the levels of text – Principle of “separation of concerns” • The CSS looks like this: .book-title { font-style: italic; } #abstract { font-size: 90%; }
  • 15. Example of a CSS directive .foo { font-size:14pt; font-weight:bold; }
  • 16. CSS Syntax: Selectors .important { background-color: yellow; } The “selector” indicates what elements the styles apply to. Can address element names, classes, and ID.
  • 17. CSS Syntax: Selectors #abstract { font-size:11pt; font-weight:bold; } Here the selector finds an element with an ID attribute with the value “foo” … e.g. <div id=“foo”>Hey.</div>
  • 18. Example selectors div Any DIV element span#important Any SPAN element with a class of important .importatn Any element with a class of important #abstract The one element with an id of abstract
  • 19. CSS Syntax: Declarations .important { font-size:14pt; font-weight:bold; } The “declarations” specify properties and values to apply to the element. Format = property-name: value;
  • 20. Example Directives font-family: Georgia, Garamond, serif; color: blue; color: #eeff99; background-color: gray; border: 1px solid black;
  • 22. Basic Idea • A CSS file is just a series of “rules” that associated styles with elements • A CSS rule has two parts – A selector to identify elements (tag name, class, id) – One or more declarations of style • CSS rules have a simple syntax – Selectors followed by curly braces – Key/value pairs separated by colons – Rules separated by semi-colons
  • 24. Exercise 1: Add semantic markup to the Poetics 1. Create a folder for this week (09-12) 2. Make a copy of the poetics.html file you created last week and paste it into today’s folder 3. Add some semantic HTML to the document and add a style – E.g. mark up some people’s names in the text and give them the class “person”
  • 25. Exercise 2: Mark up Oedipus • Create an empty HTML document (with the four basic elements) – Call it “oedipus.html” • Go to the Oedipus link provided in today’s blog post • Grab the source and paste it into your new document
  • 26. Exercise 3: Inspect the source code • Form into groups of 5 and discuss the question: Does it use semantic html? – 5 minutes of discussion – 1 respondent from each group
  • 27. Exercise 4: Markup Challenge • Stay in your groups and respond to the following challenge as a group – Using the page anchors as clues, how would you go about visually representing page breaks? – Based on your answer, implement your solution • Scribes: describe what was done – What are the problems that you see in terms of the structure? – Why would you want to show pages?