xhtml and style. history of the internet internet has been around since the early 1960’s as part...

28
xHTML and Style

Upload: giles-hunter

Post on 31-Dec-2015

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

xHTML and Style

Page 2: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

History of the Internet

• Internet has been around since the early 1960’s as part of a program with universities and the US government

• Mosaic, the first graphic based browser, was developed in 1993.

• Traffic on the Internet expands at a 341,634% annual growth rate.

Page 3: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

HTML vs xHTML

• HTML is a subset of XML

• XML has exact standards for structuring documents and presentations

• HTML broke all the standards over the years and xHTML is a means of moving HTML back into XML standards

Page 4: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

HTML vs xHTML

• Having standards allows xHTML to be more universal in its application

• xHTML allows for “web pages” to be viewed on a growing number of platforms and devices including PDA’s and cell phones.

Page 5: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

HTML vs xHTML

• xHTML allows you to separate the data from the presentation layer.

• The presentation layer ensures that the communications passing through are in the appropriate form for the recipient

• You no longer have a “flat document”

Page 6: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

HTML vs xHTML

Page 7: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

xHTML Fundamentals

• Markup Language

• Elements are xHTML instructions

• Attributes specify parameters

• Styles specify formatting

Page 8: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

xHTML document structure

• xHTML tags need to be nested in order and tags properly closed

<html>

<head>[information about the document]</head>

<body>

[data to appear on browser page]

</body>

</html>

Page 9: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

xHTML Basics

• Tags begin with opening brackets < > and are closed with closing brackets </ >

• There are exceptions, e.g. The “break tag” - <br /> - open & close in one tag.

• Creating an xHTML document is about planning for scalability

• Spelling and typo’s count

Page 10: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

xHTML Basics

• Get in the habit of typing in lower case

• Do not use spaces in file names

• Use underscores _ or dashes – in file names

• Number files, documents, etc using 01, 02, 03,… instead of 1, 2, 3, …

Page 11: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Proper numbering allows you to view files in order

Correct Miss a number Disorder

Page 12: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

File structure:

Page 13: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Learning more about XHTML

• xHTML will fully replace HTML

• New standards will mean more will be done with Cascading Style Sheets in terms of presentation and design

• Through the use of CSS and XML will make HTML obsolete.

Page 14: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Colour on the Web

• Image file formats– JPG (joint photographic group)– GIF (graphic interlace file)– PNG (portable network graphic)

• RGB and Hex

• 216 ‘Web-safe’ colors

Page 15: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Cascading style sheets - CSS

• A “language” separate from xHTML• CSS controls the style of xHTML

elements.• Classes of xHTML elements can be

created.• Basic xHTML code can be maintained• CSS can be managed separately from

the xHTML documents

Page 16: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

CSS and xHTML

• Separate CSS allows you to use xHTML tags for the purpose they are designed.

• Its more about what the tags mean instead of what the effect.

• Use tags for the intended original purpose – providing structure.

Page 17: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Summary

• HTML is a language to create or render web documents.

• HTML is superceded by XHTML• HTML will be phased out over the next few years• HTML tags provide structure for information in a web

page.

Page 22: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

Site Structure: too deep

http://info.med.yale.edu/caim/manual/interface/navigation.html

Page 23: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

Site Structure: balanced

http://info.med.yale.edu/caim/manual/interface/navigation.html

Page 24: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

Site Structure: sequence

http://info.med.yale.edu/caim/manual/interface/navigation.html

Page 25: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

Site Structure: hierarchy

http://info.med.yale.edu/caim/manual/interface/navigation.html

Page 26: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

Site Structure: grid

http://info.med.yale.edu/caim/manual/interface/navigation.html

Page 27: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

Site Structure: web

http://info.med.yale.edu/caim/manual/interface/navigation.html

Page 28: XHTML and Style. History of the Internet Internet has been around since the early 1960’s as part of a program with universities and the US government

Creating Web Pages HTML/XHTML Intro

http://info.med.yale.edu/caim/manual/interface/navigation.html