uva mdst 3703 html 2012-09-06

24
Studio 2: HTML Prof. Alvarado MDST 3703/7703 6 September 2012

Upload: rafael-alvarado

Post on 21-Nov-2014

916 views

Category:

Education


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: UVA MDST 3703 HTML 2012-09-06

Studio 2: HTML

Prof. AlvaradoMDST 3703/77036 September 2012

Page 2: UVA MDST 3703 HTML 2012-09-06

Review• The concept of hypertext is as old as the

computer– Although the memex was not a computer, Bush was one of the

“fathers” of the computer• Bush’s and Nelson’s visions remain

unrealized– We still don’t have a system for capturing trails– Our systems our built on the metaphor of the “file”

• Tim Berners-Lee revolutionized hypertext by inventing the social link– The World Wide Web connect lexia across the network– This was a brand new idea not envisioned by hypertext

theorists

Page 3: UVA MDST 3703 HTML 2012-09-06

Hypertext is the first big idea of the digital liberal arts

It represents a rethinking of knowledge through the

critical and practical investigation of text

Page 4: UVA MDST 3703 HTML 2012-09-06

Hypertext as an idea is based on the premise that text shapes knowledge

See media determinism and the

rationalization effect

Page 5: UVA MDST 3703 HTML 2012-09-06

Concepts

• Rationalization Effect– The condition of having to rethink assumptions and

tacit knowledge as a result of technological disruption

– ‘Rationalization’ in the sense defined by Max Weber• Media Determinism– The view that media forms determine, or at least

strongly shape, cognitive and social forms – E.g. literacy hierarchy logical rationality

Page 6: UVA MDST 3703 HTML 2012-09-06

HTML and the WorldWideWeb

Page 7: UVA MDST 3703 HTML 2012-09-06

How it Works

• The World Wide Web is a system that sits on top of the Internet– The Internet is the global network of computers

that began in 1969 between UCLA and Stanford• The system consists of HTML and

HTTP– HTML is a language used to write documents and

is interpreted by browsers on clients– HTTP is a protocol that servers use to connect and

transfer documents across the network

Page 8: UVA MDST 3703 HTML 2012-09-06

The Internet as ARPANET in 1970

Page 9: UVA MDST 3703 HTML 2012-09-06

GLOBAL HYPERTEXT

Page 10: UVA MDST 3703 HTML 2012-09-06

Some more vocabulary

NetworkA spatially distributed set of computers that can communicate with each other

ServerA computer or a program that exchanges information with other computers

ClientA computer or a program that receives information from a server for humans to consume

ProtocolThe language that servers use to communicate (e.g. HTTP, FTP, NNTP, SMTP, etc.)

Page 11: UVA MDST 3703 HTML 2012-09-06

Internet Communication

SERVERS TALKING TO EACH OTHER

Page 12: UVA MDST 3703 HTML 2012-09-06

Basic HTML

The document mark-up language of the World Wide Web

An example of “source code” that is “interpreted” by browsers

Page 13: UVA MDST 3703 HTML 2012-09-06

Break up into groups

Help each other with small questions

Page 14: UVA MDST 3703 HTML 2012-09-06

Exercise 1: View Source

• Find a web page … – http//faculty.vassar.edu/mijoyce/Ted_sed.html

• Open “View Source” on your browser– Chrome: View > Developer > View Source– Firefox: Tools > Web Developer > Page Source

• Notice the pattern– Lots of angle brackets– What do they look like they are doing there?– What is the difference between “source” and the

rendered view of the page?

Page 15: UVA MDST 3703 HTML 2012-09-06

Angle brackets are called tagsTags are used to define elements

of textStart tags can have attributes

We will discuss the significance of these next

Tuesday

Page 16: UVA MDST 3703 HTML 2012-09-06

In general, tags produce effects on elementsEffects include: position and style, but also

behaviors, like linking

Page 17: UVA MDST 3703 HTML 2012-09-06

Exercise 2: Hello, World!

• Download JEdit (a decent, cross-platform text editor)– See blog post on course site

• Create a new file• Save the file – Call it “index.html”

• Write the following string<p>Hello, World!</p>

• Open the file in your browser

Page 18: UVA MDST 3703 HTML 2012-09-06

Some Basic Elements

• Paragraphs: <p>…</p>• Headers: <h1>…</h1>, <h2>…</h2>• Format: <b>…</b>, <i>…</i>, <u>…</u>• Images:

<img src=“http://foo.com/img.gif”></img>

• Links = <a href=“http://foo.com/page.html”>Label of link</a>

• Other elements– Lists, tables, etc.– See http://www.w3schools.com/html/default.asp

Page 19: UVA MDST 3703 HTML 2012-09-06

Exercise 3: Add More Elements

• Create some headers and add some paragraphs with formatted text

• Add an image• Add a link• You can grab text from a “lorem

ipsum” generator on the web– http://www.lipsum.com/ – http://slipsum.com/ (EXPLICIT)

Page 20: UVA MDST 3703 HTML 2012-09-06

The Prime Directive: Tags must always nest

NO OVERLAPPING TAGS

Page 21: UVA MDST 3703 HTML 2012-09-06

Nesting Tags

<p>This is <b>OK</b></p>

<p>This is <b>NOT OK</p></b>

Page 22: UVA MDST 3703 HTML 2012-09-06

Anatomy of a URL

• All web addresses are expressed as URLs– Uniform Resource Locators

• Everything on the web has to have a URL• URLs have the following parts:

http://www.virginia.edu/someresource.html#some_place?key=value

THE PROTOCOL

THE SERVER

THE PAGE (DEFAULT index.html)

THE ANCHOR (OPTIONAL)

THE PARAMETERS (OPTIONAL)

Page 23: UVA MDST 3703 HTML 2012-09-06

Exercise 4: Put the file on the web

• Install the Home Directory Service tool– See blog post for URL

• Drag the file into the public_html directory– Create it if it is not there

• Look at the page in your browswer– http://www.people.virginia.edu/~rca2t• Replace rca2t with your netid

Page 24: UVA MDST 3703 HTML 2012-09-06

Exercise 5: Link to your page from WP

• Create a new post• Create a link to your newly

created home page