SlideShare una empresa de Scribd logo
1 de 40
(x)HTML MDST 3559:  DataestheticsProf. Alvarado02/01/2011
Review: Working with CSV Process Grab data from some source Clean, convert, combine Visualize Contextualize ...  Purpose Tell a story ... this is where we take up today.
Overview: HTML  Introduce HTML as a language for encoding compound documents Effectively, a language to create stories around embed data islands Requires that we view documents as data structures Just as data can be viewed as a kind of document Documents can be queried and filtered too Then we define Markup languages XML (X)HTML And learn basic HTML elements
What is contextualization?
To contextualize is literally to surround with text
Texts come packaged as documents
We are used to creating documents with word processors But there are problems with this approach ...
Against Word Processing Hard to control programmatically Although it is possible, e.g. through Visual Basic Word processors are designed for paper printing, not web publishing Not natively networked Word processors conflate the process of writing with that of styling and presentation Text and layout are independent variables
How can we characterize the structure of a document? See example ...
Document Elements and Structures Play Act + Scene + Line + Book Chapter + Verse + Letter Heading Return Address Date Recipient Info Name Title Address Content Salutation Paragraph + Closing
Structure consists of elements and relations  Relations can be modeled as trees, networks, or other structures
Markup Languages Markup languages allow us to define structure of documents for computational purposes All documents have at least three levels: Text Words, images, embedded data, etc. Structure Books, chapters, verses, paragraphs, etc. Layout font style, colors, space, etc.
XML XML is a way to define the abstract structure of a document by means of embedded signs It uses tags to signify elements Tags are not elements! For example ...
XML Three kinds of tag Start and End, e.g<p> and </p> Singleton, e.g<br /> Start and singleton tags can have attributes Simple key/value pairs <div class="stanza" style="color:red;"> Basic rules All attributes must be quoted All tags must nest (no overlaps!)
XML A Document Type Definition (DTD) Defines elements, attributes, and possible combinations Examples: XHTML, TEI, RSS, FBML E.g. in XHTML, the ol and ul elements must contain li elements DTDs expose the data models implicit in texts TEI is a powerful way of describing primary source materials for scholars
HTML aka XHTML And now becoming HTML5 An instance of XML (formerly SGML)  An interface language Language of the World Wide Web Everything is a tag <p>This is a paragraph</p> Tags have attributes <a href="http://some.website.com">Click me to go to the web site</a> Tags represent document elements
HTML Document Structure Head Title [Directives] Body H1+ H2+ P+ UL LI
Basic Elements with associated Tags
Exercise Use W3Schools interactive editor Embed a Google Doc and a ManyEyes object Create Home Directory Accounts Create HTML document that contexutalizes the objects you worked on last Thursday
Create a file in Home Directory Set up Home Directory Service Save a file called “index.html” in the public_html directory View on the web at  http://www.people.virginia.edu/~userid
CSS “Cascading Style Sheets” Allows you to add styles to HTML  Styles include: Font characteristics Line characteristics Text block  Background colors and images Etc.
<html> 	<head> 		<title>I’m an HTML document</title> 	</head> 	<body> 		<h1>Here is the first header</h1> 		<p>Here is some conent</p> 	</body> </html> Standard HTML Doc
<html> 	<head> 		<title>I’m an HTML document</title> 	</head> 	<body> 		<h1>Here is the first header</h1> 		<p>Here is some content:</p> <h1> <p>Some Text I want to emphasize.</p> </h1> 	</body> </html> What not to do!
<html> 	<head> 		<title>I’m an HTML document</title> 	</head> 	<body> 		<h1>Here is the first header</h1> 		<p>Here is some conent</p> 		<div style=“font-size:14pt;"> <p>Some Text I want to emphasize.</p> </div> 	</body> </html> Instead, use CSS
<html> 	<head> 		<title>I’m an HTML document</title> <style type="text/css"> 		div { font-size:14pt; 			font-weight:bold; 		} 		</style> 	</head> 	<body> 		<h1>Here is the first header</h1> 		<p>Here is some conent</p> 		<div> 	<p>Some Text I want to emphasize.</p> </div> 	</body> </html> Better yet, put CSS here
<html> 	<head> 		<title>I’m an HTML document</title> <style type="text/css"> 		.foo { font-size:14pt; 			font-weight:bold; 		} 		</style> 	</head> 	<body> 		<h1>Here is the first header</h1> 		<p>Here is some conent</p> 		<div class=“foo”> <p>Some Text I want to emphasize.</p> </div> 	</body> </html> with CSS in header using class attribute
<html> 	<head> 		<title>I’m an HTML document</title> <link rel=“stylesheet” type=“text/css” href=“default.css” /> 	</head> 	<body> 		<h1>Here is the first header</h1> 		<p>Here is some conent</p> 		<div> <p>Some Text I want to emphasize.</p> </div> 	</body> </html> Even better: CSS in linked file
default.css .foo { 	font-size:14pt; 	font-weight:bold; } This is what the content of the default.css file would look like.
CSS Syntax: Selectors .foo { 	font-size:14pt; 	font-weight:bold; } The “selector” indicates what elements the styles apply to.  Can address element names, classes, and ID.
CSS Syntax: Selectors #foo { 	font-size:14pt; 	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 p			Any p element			 p.foo	Any p element with a class of foo .foo	Any element with a class of foo #foo	The element with an id of foo
CSS Syntax: Declarations .foo { 	font-size:14pt; 	font-weight:bold; } The “declarations” specify properties and values to apply to the element. Form =property-name: value;
Example Directives font-family: Georgia, Garamond, serif; color: blue; color: #eeff99; background-color: gray; border: 1px solid black;
Basic Idea A CSS file is just a series of “rules” 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
Basic idea You can apply any number of rules to a document Rules may appear in attributes, headers, or external files Rules are “cascaded” Later ones inherit previous ones Later ones have precedence (can overwrite) earlier ones

Más contenido relacionado

La actualidad más candente

The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersRasin Bekkevold
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basicsAliMUSSA3
 
sanjivsangamHtml online ppt
sanjivsangamHtml online pptsanjivsangamHtml online ppt
sanjivsangamHtml online pptSanjiv Sangam
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
basic introduction of html tags
basic introduction  of html tagsbasic introduction  of html tags
basic introduction of html tagsManish jariyal
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Kosie Eloff
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part IUnaib Aslam
 
Html, Xml, 그리고 시맨틱웹
Html, Xml, 그리고 시맨틱웹Html, Xml, 그리고 시맨틱웹
Html, Xml, 그리고 시맨틱웹Jihoon Jeong
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.Beqa Chacha
 

La actualidad más candente (20)

Html basic
Html basicHtml basic
Html basic
 
Html
HtmlHtml
Html
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
 
Basic html
Basic htmlBasic html
Basic html
 
Design Tools Html Xhtml
Design Tools Html XhtmlDesign Tools Html Xhtml
Design Tools Html Xhtml
 
Html
HtmlHtml
Html
 
Lecture 2 introduction to html basics
Lecture 2 introduction to html basicsLecture 2 introduction to html basics
Lecture 2 introduction to html basics
 
sanjivsangamHtml online ppt
sanjivsangamHtml online pptsanjivsangamHtml online ppt
sanjivsangamHtml online ppt
 
What is xml
What is xmlWhat is xml
What is xml
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
basic introduction of html tags
basic introduction  of html tagsbasic introduction  of html tags
basic introduction of html tags
 
Html Simple Tutorial
Html Simple TutorialHtml Simple Tutorial
Html Simple Tutorial
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
Html, Xml, 그리고 시맨틱웹
Html, Xml, 그리고 시맨틱웹Html, Xml, 그리고 시맨틱웹
Html, Xml, 그리고 시맨틱웹
 
HTML
HTMLHTML
HTML
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html Slide Part-1
Html Slide Part-1Html Slide Part-1
Html Slide Part-1
 

Destacado

Naruto CLASSICO V1-3
Naruto CLASSICO V1-3Naruto CLASSICO V1-3
Naruto CLASSICO V1-3aniamlog
 
Multiple uses of bread loaf
Multiple uses of bread loafMultiple uses of bread loaf
Multiple uses of bread loafsubbaiah_t
 
Snoring husbands sleeping wives final solution
Snoring husbands sleeping wives final solutionSnoring husbands sleeping wives final solution
Snoring husbands sleeping wives final solutionsubbaiah_t
 
Naruto Clássico manga 1-5
Naruto Clássico manga 1-5Naruto Clássico manga 1-5
Naruto Clássico manga 1-5aniamlog
 
NARUTO CLASSICO 1-4
NARUTO CLASSICO 1-4NARUTO CLASSICO 1-4
NARUTO CLASSICO 1-4aniamlog
 
Naruto Manga 01 1
Naruto Manga 01   1Naruto Manga 01   1
Naruto Manga 01 1aniamlog
 
ANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETA
ANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETAANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETA
ANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETAaniamlog
 
Snoring husbands sleeping wives2
Snoring husbands sleeping wives2Snoring husbands sleeping wives2
Snoring husbands sleeping wives2subbaiah_t
 
Naruto Classico V1 2
Naruto Classico   V1 2Naruto Classico   V1 2
Naruto Classico V1 2aniamlog
 
MDST 3703 F10 Seminar 13
MDST 3703 F10 Seminar 13MDST 3703 F10 Seminar 13
MDST 3703 F10 Seminar 13Rafael Alvarado
 
Mdst 3559-03-31-case-1-narrative
Mdst 3559-03-31-case-1-narrativeMdst 3559-03-31-case-1-narrative
Mdst 3559-03-31-case-1-narrativeRafael Alvarado
 
Innovación pública: definición, acción y evaluación
Innovación pública: definición, acción y evaluaciónInnovación pública: definición, acción y evaluación
Innovación pública: definición, acción y evaluaciónDavid Rey Jordan
 

Destacado (17)

Naruto CLASSICO V1-3
Naruto CLASSICO V1-3Naruto CLASSICO V1-3
Naruto CLASSICO V1-3
 
Multiple uses of bread loaf
Multiple uses of bread loafMultiple uses of bread loaf
Multiple uses of bread loaf
 
Snoring husbands sleeping wives final solution
Snoring husbands sleeping wives final solutionSnoring husbands sleeping wives final solution
Snoring husbands sleeping wives final solution
 
Naruto Clássico manga 1-5
Naruto Clássico manga 1-5Naruto Clássico manga 1-5
Naruto Clássico manga 1-5
 
Stop snoring
Stop snoringStop snoring
Stop snoring
 
NARUTO CLASSICO 1-4
NARUTO CLASSICO 1-4NARUTO CLASSICO 1-4
NARUTO CLASSICO 1-4
 
Naruto Manga 01 1
Naruto Manga 01   1Naruto Manga 01   1
Naruto Manga 01 1
 
ANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETA
ANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETAANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETA
ANIMALOG NARUTO CLASSICO VOLUME 1 - 1 BETA
 
Snoring husbands sleeping wives2
Snoring husbands sleeping wives2Snoring husbands sleeping wives2
Snoring husbands sleeping wives2
 
Naruto Classico V1 2
Naruto Classico   V1 2Naruto Classico   V1 2
Naruto Classico V1 2
 
Mdst 3559-03-24-case-1
Mdst 3559-03-24-case-1Mdst 3559-03-24-case-1
Mdst 3559-03-24-case-1
 
MDST 3703 F10 Seminar 13
MDST 3703 F10 Seminar 13MDST 3703 F10 Seminar 13
MDST 3703 F10 Seminar 13
 
I pot
I potI pot
I pot
 
Mdst 3559-02-10-jquery
Mdst 3559-02-10-jqueryMdst 3559-02-10-jquery
Mdst 3559-02-10-jquery
 
MDST 3703 F10 Seminar 8
MDST 3703 F10 Seminar 8MDST 3703 F10 Seminar 8
MDST 3703 F10 Seminar 8
 
Mdst 3559-03-31-case-1-narrative
Mdst 3559-03-31-case-1-narrativeMdst 3559-03-31-case-1-narrative
Mdst 3559-03-31-case-1-narrative
 
Innovación pública: definición, acción y evaluación
Innovación pública: definición, acción y evaluaciónInnovación pública: definición, acción y evaluación
Innovación pública: definición, acción y evaluación
 

Similar a Mdst 3559-02-01-html

Similar a Mdst 3559-02-01-html (20)

Web1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSSWeb1O1 - Intro to HTML/CSS
Web1O1 - Intro to HTML/CSS
 
Web publishing and XHTML
Web publishing and XHTMLWeb publishing and XHTML
Web publishing and XHTML
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
Pmm05 16
Pmm05 16Pmm05 16
Pmm05 16
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Lotusphere 2006 AD212 Introduction to DXL
Lotusphere 2006 AD212 Introduction to DXLLotusphere 2006 AD212 Introduction to DXL
Lotusphere 2006 AD212 Introduction to DXL
 
Diva
DivaDiva
Diva
 
Xml
XmlXml
Xml
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
O9xml
O9xmlO9xml
O9xml
 
Html
HtmlHtml
Html
 
Html guide
Html guideHtml guide
Html guide
 
Web Services Part 1
Web Services Part 1Web Services Part 1
Web Services Part 1
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Xml
XmlXml
Xml
 

Más de Rafael Alvarado

Mdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collectionsMdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collectionsRafael Alvarado
 
Mdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-historyMdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-historyRafael Alvarado
 
Mdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertextMdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertextRafael Alvarado
 
Mdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-htmlMdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-htmlRafael Alvarado
 
Mdst3703 2013-09-17-text-models
Mdst3703 2013-09-17-text-modelsMdst3703 2013-09-17-text-models
Mdst3703 2013-09-17-text-modelsRafael Alvarado
 
Mdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signalsMdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signalsRafael Alvarado
 
Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2Rafael Alvarado
 
Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2Rafael Alvarado
 
Mdst3703 2013-08-29-hello-world
Mdst3703 2013-08-29-hello-worldMdst3703 2013-08-29-hello-world
Mdst3703 2013-08-29-hello-worldRafael Alvarado
 
UVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 IntroductionUVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 IntroductionRafael Alvarado
 
MDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to VisualizationMDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to VisualizationRafael Alvarado
 
Mdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genreMdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genreRafael Alvarado
 
Mdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-dataMdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-dataRafael Alvarado
 
Mdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-dataMdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-dataRafael Alvarado
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesRafael Alvarado
 
Mdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxisMdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxisRafael Alvarado
 
Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3Rafael Alvarado
 
Mdst3705 2012-01-22-code-as-language
Mdst3705 2012-01-22-code-as-languageMdst3705 2012-01-22-code-as-language
Mdst3705 2012-01-22-code-as-languageRafael Alvarado
 
Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2Rafael Alvarado
 

Más de Rafael Alvarado (20)

Mdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collectionsMdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collections
 
Mdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-historyMdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-history
 
Mdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertextMdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertext
 
Presentation1
Presentation1Presentation1
Presentation1
 
Mdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-htmlMdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-html
 
Mdst3703 2013-09-17-text-models
Mdst3703 2013-09-17-text-modelsMdst3703 2013-09-17-text-models
Mdst3703 2013-09-17-text-models
 
Mdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signalsMdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signals
 
Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2
 
Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2
 
Mdst3703 2013-08-29-hello-world
Mdst3703 2013-08-29-hello-worldMdst3703 2013-08-29-hello-world
Mdst3703 2013-08-29-hello-world
 
UVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 IntroductionUVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 Introduction
 
MDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to VisualizationMDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to Visualization
 
Mdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genreMdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genre
 
Mdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-dataMdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-data
 
Mdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-dataMdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-data
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databases
 
Mdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxisMdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxis
 
Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3
 
Mdst3705 2012-01-22-code-as-language
Mdst3705 2012-01-22-code-as-languageMdst3705 2012-01-22-code-as-language
Mdst3705 2012-01-22-code-as-language
 
Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2
 

Último

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
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
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
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
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
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
"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
 

Último (20)

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
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
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
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 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!
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
"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
 

Mdst 3559-02-01-html

  • 1. (x)HTML MDST 3559: DataestheticsProf. Alvarado02/01/2011
  • 2. Review: Working with CSV Process Grab data from some source Clean, convert, combine Visualize Contextualize ... Purpose Tell a story ... this is where we take up today.
  • 3. Overview: HTML Introduce HTML as a language for encoding compound documents Effectively, a language to create stories around embed data islands Requires that we view documents as data structures Just as data can be viewed as a kind of document Documents can be queried and filtered too Then we define Markup languages XML (X)HTML And learn basic HTML elements
  • 5. To contextualize is literally to surround with text
  • 6. Texts come packaged as documents
  • 7. We are used to creating documents with word processors But there are problems with this approach ...
  • 8. Against Word Processing Hard to control programmatically Although it is possible, e.g. through Visual Basic Word processors are designed for paper printing, not web publishing Not natively networked Word processors conflate the process of writing with that of styling and presentation Text and layout are independent variables
  • 9. How can we characterize the structure of a document? See example ...
  • 10.
  • 11. Document Elements and Structures Play Act + Scene + Line + Book Chapter + Verse + Letter Heading Return Address Date Recipient Info Name Title Address Content Salutation Paragraph + Closing
  • 12.
  • 13.
  • 14. Structure consists of elements and relations Relations can be modeled as trees, networks, or other structures
  • 15. Markup Languages Markup languages allow us to define structure of documents for computational purposes All documents have at least three levels: Text Words, images, embedded data, etc. Structure Books, chapters, verses, paragraphs, etc. Layout font style, colors, space, etc.
  • 16. XML XML is a way to define the abstract structure of a document by means of embedded signs It uses tags to signify elements Tags are not elements! For example ...
  • 17.
  • 18. XML Three kinds of tag Start and End, e.g<p> and </p> Singleton, e.g<br /> Start and singleton tags can have attributes Simple key/value pairs <div class="stanza" style="color:red;"> Basic rules All attributes must be quoted All tags must nest (no overlaps!)
  • 19. XML A Document Type Definition (DTD) Defines elements, attributes, and possible combinations Examples: XHTML, TEI, RSS, FBML E.g. in XHTML, the ol and ul elements must contain li elements DTDs expose the data models implicit in texts TEI is a powerful way of describing primary source materials for scholars
  • 20. HTML aka XHTML And now becoming HTML5 An instance of XML (formerly SGML) An interface language Language of the World Wide Web Everything is a tag <p>This is a paragraph</p> Tags have attributes <a href="http://some.website.com">Click me to go to the web site</a> Tags represent document elements
  • 21.
  • 22. HTML Document Structure Head Title [Directives] Body H1+ H2+ P+ UL LI
  • 23. Basic Elements with associated Tags
  • 24. Exercise Use W3Schools interactive editor Embed a Google Doc and a ManyEyes object Create Home Directory Accounts Create HTML document that contexutalizes the objects you worked on last Thursday
  • 25. Create a file in Home Directory Set up Home Directory Service Save a file called “index.html” in the public_html directory View on the web at http://www.people.virginia.edu/~userid
  • 26. CSS “Cascading Style Sheets” Allows you to add styles to HTML Styles include: Font characteristics Line characteristics Text block Background colors and images Etc.
  • 27. <html> <head> <title>I’m an HTML document</title> </head> <body> <h1>Here is the first header</h1> <p>Here is some conent</p> </body> </html> Standard HTML Doc
  • 28. <html> <head> <title>I’m an HTML document</title> </head> <body> <h1>Here is the first header</h1> <p>Here is some content:</p> <h1> <p>Some Text I want to emphasize.</p> </h1> </body> </html> What not to do!
  • 29. <html> <head> <title>I’m an HTML document</title> </head> <body> <h1>Here is the first header</h1> <p>Here is some conent</p> <div style=“font-size:14pt;"> <p>Some Text I want to emphasize.</p> </div> </body> </html> Instead, use CSS
  • 30. <html> <head> <title>I’m an HTML document</title> <style type="text/css"> div { font-size:14pt; font-weight:bold; } </style> </head> <body> <h1>Here is the first header</h1> <p>Here is some conent</p> <div> <p>Some Text I want to emphasize.</p> </div> </body> </html> Better yet, put CSS here
  • 31. <html> <head> <title>I’m an HTML document</title> <style type="text/css"> .foo { font-size:14pt; font-weight:bold; } </style> </head> <body> <h1>Here is the first header</h1> <p>Here is some conent</p> <div class=“foo”> <p>Some Text I want to emphasize.</p> </div> </body> </html> with CSS in header using class attribute
  • 32. <html> <head> <title>I’m an HTML document</title> <link rel=“stylesheet” type=“text/css” href=“default.css” /> </head> <body> <h1>Here is the first header</h1> <p>Here is some conent</p> <div> <p>Some Text I want to emphasize.</p> </div> </body> </html> Even better: CSS in linked file
  • 33. default.css .foo { font-size:14pt; font-weight:bold; } This is what the content of the default.css file would look like.
  • 34. CSS Syntax: Selectors .foo { font-size:14pt; font-weight:bold; } The “selector” indicates what elements the styles apply to. Can address element names, classes, and ID.
  • 35. CSS Syntax: Selectors #foo { font-size:14pt; font-weight:bold; } Here the selector finds an element with an ID attribute with the value “foo” … e.g. <div id=“foo”>Hey.</div>
  • 36. Example selectors p Any p element p.foo Any p element with a class of foo .foo Any element with a class of foo #foo The element with an id of foo
  • 37. CSS Syntax: Declarations .foo { font-size:14pt; font-weight:bold; } The “declarations” specify properties and values to apply to the element. Form =property-name: value;
  • 38. Example Directives font-family: Georgia, Garamond, serif; color: blue; color: #eeff99; background-color: gray; border: 1px solid black;
  • 39. Basic Idea A CSS file is just a series of “rules” 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
  • 40. Basic idea You can apply any number of rules to a document Rules may appear in attributes, headers, or external files Rules are “cascaded” Later ones inherit previous ones Later ones have precedence (can overwrite) earlier ones

Notas del editor

  1. Test comes in the form of documents