Biocomputing II Andrew C.R. Martin Adrian Shepherd Lorenz Wernisch.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

HTML popo.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Web Development & Design Foundations with XHTML
Dr. Alexandra I. Cristea XHTML.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
OMT II Mam Saima Gul. * Static web page * a web page with contents that remain fixed and unchanged once it has been created by the author Web server Client.
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Marking Up With Html: A Hypertext Markup Language Primer
Developing a Basic Web Page with HTML
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Computer Science 101 HTML. World Wide Web Invented by Tim Berners-Lee at CERN, the European Laboratory for Particle Physics in Geneva, Switzerland (roughly.
Web page - A Web page is a simple text file that contains HTML tags (code) that describe what should be displayed on the browser. -The Web browser interprets.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
Webpage design for researchers Dr Jim Briggs 1.
CS 299 – Web Programming and Design Introduction to HTML.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
HTML - basic tags - How to learn more. What is HTML? HyperText Markup Language HTML5: – Recommended by the W3C.
Reading & Exam Zeid: Chapter 9: XHTML Essential p Read before EXAM 1 Exam is Monday Oct. 25 th Review on Friday Oct. 22 nd.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
Chapter 8 Introduction to HTML and Applets Fundamentals of Java.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Introduction to web development and HTML MGMT 230 LAB.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
HTML: Hyptertext Markup Language Doman’s Sections.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
LBSC 690 Session 4 Programming. Languages How do we learn a language? Learn by listening Then reading Then writing How do we teach programming? Learn.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Revision Lecture: HTML, CSS and XML Perl/CGI, Perl/DOM, Perl/DBI, Remote Procedure Calls Dr. Andrew C.R. Martin
Marking Up with XHTML Tags describe how a web page should look
Introduction to XHTML.
Introducing HTML & XHTML:
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
HyperText Markup Language
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Biocomputing II Andrew C.R. Martin Adrian Shepherd Lorenz Wernisch

Biocomputing II  Web and Perl applications  Integrating web pages, Perl  Java  An introduction to programming in Java

Perl applications  Biocomputing II  1. HTML/CSS  2. CGI scripting  3. Remote procedure calling from Perl  Databases module  4. Accessing databases from Perl  5. Accessing XML from Perl

Biocomputing II  Java  General introduction  Classes and objects  Input and output  Inheritance  Collections  Exceptions

HTML, CSS and XML Dr. Andrew C.R. Martin

Aims and objectives  Understand the nature of the web and markup languages  Be able to write web pages in HTML  Understand CSS styles  Be able to write a CSS style for an HTML page  Understand the relationship with XML  Gain an overview of problems with the web and future directions

The World Wide Web  Developed in early 1990s by Tim Berners-Lee  hyperlinks  documents on same or different servers  Rapid evolution over the last 10 years.

Understanding a URL Protocol: typically http or ftp Domain nameDirectory on serverSpecific filename Assumes this is a file - finds it isn’t and then tries again as a directory Knows that this is a directory

The World Wide Web  Plain text with ‘markup’  Markup:  plain text labels introduced by some ‘special’ character  Markup language of the Web is HTML  HyperText Markup Language

HTML  Inspired by SGML  Standard Generalized Markup Language  SGML, standardized in 1986  ISO:8879, 1986  complex standard for document markup  used by a few large companies and research organizations

HTML  Markup consists of ‘tags’.  Start tag: label between angle brackets ( )  Followed by the tag content  may include nested tags  A closing-tag: (or end-tag) identical to the opening tag, but starts with </ rather than <

HTML  For example, the following would indicate a piece of text to be set in a bold font: This text is in bold tag closing-tag

HTML  Tags may contain ‘attributes’: a type/value pair contained within an opening tag. My bioinformatics page attribute

HTML  Some tags do not require an end tag  the tag is started with

The most useful HTML tags

 Encompasses the whole of an HTML document …my document goes here…

The most useful HTML tags  Define things that relate to the whole document, but are not actually displayed. …data go here…

The most useful HTML tags  Placed within the tag  Gives the title to go in the browser window frame My document

The most useful HTML tags  All the HTML relating to what appears on the page is contained in this tag. My document …content goes here…

The most useful HTML tags,,,,,  Headings and subheadings  By convention, only one tag Page title …some html… A heading …some html… Another heading …some html… A subheading …some html… Page title …some html… A heading …some html… Another heading …some html… A subheading …some html…

The most useful HTML tags  Enclose a paragraph of text This is some text which will appear as a paragraph in the web page.

The most useful HTML tags  Indicates a hyper-link to another page  URL may be absolute or relative My bioinformatics page More pages Another page

The most useful HTML tags  Displays the specified image

The most useful HTML tags  Forces a line break  Displays a horizontal rule

The most useful HTML tags,,,  Creates a table Head1 Head2 data11 data12 data21 data22 Head1Head2 data11data12 data21data22

The most useful HTML tags  ‘pre-formatted’ text This is pre-formatted text: very useful for code int main(int argc, char **argv) { print “hello world\n”; return(0); } This is pre-formatted text: very useful for code int main(int argc, char **argv) { print “hello world\n”; return(0); }

The most useful HTML tags  Text displayed in bold  Text displayed in italics  Text displayed in a mono-spaced font  Text displayed underlined

The most useful HTML tags,,  Ordered and un-ordered lists Ordered list is numbered Un-ordered list is bulleted 1. Ordered list 2. Is numbered Un-ordered list is bulleted

The most useful HTML tags  Specifies the font to be used for the enclosed text <font face=’Helvetica,Arial,sans-serif’ size=’14pt’ color=’green’> Some text in 14pt green Helvetica!

HTML A lecture on HTML Dr. Andrew C.R. Martin The World Wide Web The World Wide Web was developed in the early 1990s... Rapid evolution of the Internet... The most useful HTML tags Tag Purpose <html> The whole page should be contained in this tag. <head> Used to define things that relate to the whole document, but are not really part of the displayed text. Should contain a <title> tag

Cascading style sheets (CSS)  Provides additional separation between content and presentation  Avoid display control within the HTML  Easier to produce consistent documents  Allows font, colour and other rendering styles for tags to be defined once

Cascading style sheets (CSS) h1 { margin: 0em; border: none; background: black; color: white; font: bold 18pt Helvetica, Arial, sans-serif; padding: 0.25em; } h2 { font: bold 18pt Helvetica, Arial, sans-serif;} h3 { font: bold italic 14pt Helvetica, Arial, sans-serif; color: red;} p { font: 12pt Helvetica, Arial, sans-serif;}

Cascading style sheets (CSS) CSS can be placed within the tag: or in a file referenced from the tag: <! CSS GOES HERE > <link rel=’stylesheet’ type=’text/css’ href=’example1.css’ />

Cascading style sheets (CSS)  Even better! Can create ‘classes’ offering further control and separation: { text-align: right; }. { font-weight: bold; }

Cascading style sheets (CSS)  CSS is depracating many HTML tags and attributes.  e.g.  tag  align=‘xxxx’ attribute  color=‘xxxx’ attribute

XML

eXtensible Markup Language  Similar in style to HTML  Simply marks up the content to describe its semantics  Like a flat-file database  Invent tags which identify the content

x-ray x-ray x-ray Note similarity to HTML Tags with closing tags Tags contain data Tags may have attributes

XML  XML is much stricter than HTML:  Case sensitive  Every opening tag must have a closing tag  Tags must be correctly nested  Attributes must always have associated values  Attribute values must always be in inverted commas

XML  XML tells you nothing about how data should be presented  Often used for data that are not for presentation  Many programs use XML to store configuration data  Large databases such as InterPro, dbSNP and the PDB are now distributed in XML

Pros and cons Pros  Simple format  Familiarity  Straightforward to parse  parsers available Cons  File size bloat  though files compress well  Format perhaps too flexible  Semantics may vary – what is a 'gene'?

Format flexibility How to distribute data between tag content and attributes?...compared with... L36 TRP ALA

DTDs Data Type Definitions  Formal definition of allowed content  Two conflicting standards:  XML-DTD – original standard; still widely used  XML-Schema – newer standard; more flexible, is itself XML

XSLT eXtensible Stylesheet Language Transformations  Specialist programming language  Code is written in XML!  Takes XML as input  Can produce output in  XML  HTML  plain text (e.g. SQL)  Can be used to convert between XML formats or to generate reports in HTML

XSL eXtensible Stylesheet Language  Full stylesheet language for XML  Describes how data should be presented

Web standards  Rapid evolution of the Web has led to many new and evolving standards  HTML evolution has led to new tags. Unwieldy and, in some cases, browser-specific  Some web pages only render properly only on a given browser

Web standards Many browsers are very forgiving:  allow missing end tags (e.g. for )  inaccurate nesting  attributes without values  attribute values not enclosed in inverted commas.

 Case sensitive  Opening tags must have closing tags  Tags must be correctly nested  Attributes must have values  Attribute values must be in inverted commas HTML4.0 (XHTML) New standard is now described in XML and therefore much more strict..foo....foo.. illegal illegal illegal

HTML4.0 (XHTML)  XHTML segregates core functionality from additional packages  these support more advanced features (tables, forms, vector graphics, multimedia, maths, music and chemistry)  Modular design useful for pervasive web computing  Document provides a profile describing browser requirements.  Browser provides device profile describing which tag modules it supports.

Problems of the web  HTML is computer readable, not computer understandable  Separation between content and presentation is only minimal  Restructuring of data for display results in information loss  Semantic meaning is lost and perhaps only a subset of available information presented

Problems of the web  Web page with attractive layout and tables – powerful visual image, easy to digest.  Extraction of data from HTML visual markup results in further information loss.  If layout changes, the parser no longer works.

Problems of the web Data Web page Extract data Data Partial data Semantics lost Errors in data extraction Extract data Provider Consumer Visual markup Partial (error- prone) data

The Semantic Web  Designed to address these problems  Semantic markup  the Web will itself become a huge database  Software agents to retrieve relevant results  Tim Berners-Lee Scientific American (Berners-Lee, et al., 2001)

The Semantic Web  Data stored and sent in XML together with a style sheet.  Responsible for formatting and display  Key difference: use of XML supported by ontologies  Data presented by:  direct display of XML using XSL  translation to HTML using XSLT followed by formatting with CSS

Technology Web browser XSL-enabled Web browser -or- Java Applet Other Applications Future browsers and applications Robots and agents 1st Generation 2nd Generation 3rd Generation: Semantic Web HTTP SOAP XSLT XSLT-enabled Web browser HTTP Database RDBMS eXist HTML XML RDF UDDI

Summary  HTML and XML markup languages  Problems of visual markup  Separation of content and presentation  Semantic web