Markup Languages. Γλώσσες Σήμανσης. Ανασκόπηση. Document Content «Περιεχόμενο» Εγγράφων. Γλώσσες Σήμανσης. Documents characterised by:

Σχετικά έγγραφα
3 Μ. Δικαιάκος, EΠΛ425. n Σήμανση εγγράφων (markup): η εισαγωγή και παράθεση στο. n Αφορούν στην περιγραφή της δομής (structure), της σημασιολογίας

SUPERPOSITION, MEASUREMENT, NORMALIZATION, EXPECTATION VALUES. Reading: QM course packet Ch 5 up to 5.6

1. For each of the following power series, find the interval of convergence and the radius of convergence:

Ψηφιακή Επεξεργασία Εικόνας

n Εξαίρεση το title, το οποίο εμφανίζεται στο πλαίσιο του n Τίτλο αρχείου n Οδηγίες που αφορούν στον πλοηγό n Μεταπληροφορίες για το αρχείο

The Simply Typed Lambda Calculus

On Generating Relations of Some Triple. Hypergeometric Functions

Homework 4.1 Solutions Math 5110/6830

IIT JEE (2013) (Trigonomtery 1) Solutions

Homework for 1/27 Due 2/5

ΦΥΛΛΟ ΕΡΓΑΣΙΑΣ Α. Διαβάστε τις ειδήσεις και εν συνεχεία σημειώστε. Οπτική γωνία είδησης 1:.

Last Lecture. Biostatistics Statistical Inference Lecture 19 Likelihood Ratio Test. Example of Hypothesis Testing.

Εργαστήριο 9. Styling with Javascript

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

Η γλώσσα XHTML: διαφορές με HTML, μετατροπή

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

Introduction of Numerical Analysis #03 TAGAMI, Daisuke (IMI, Kyushu University)

p n r

Γαβαλάς αµιανός

derivation of the Laplacian from rectangular to spherical coordinates

Instruction Execution Times

Εγκατάσταση λογισμικού και αναβάθμιση συσκευής Device software installation and software upgrade

Calculating the propagation delay of coaxial cable

Statistical Inference I Locally most powerful tests

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΕΙΡΑΙΩΣ ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΠΜΣ «ΠΡΟΗΓΜΕΝΑ ΣΥΣΤΗΜΑΤΑ ΠΛΗΡΟΦΟΡΙΚΗΣ» ΚΑΤΕΥΘΥΝΣΗ «ΕΥΦΥΕΙΣ ΤΕΧΝΟΛΟΓΙΕΣ ΕΠΙΚΟΙΝΩΝΙΑΣ ΑΝΘΡΩΠΟΥ - ΥΠΟΛΟΓΙΣΤΗ»

4.6 Autoregressive Moving Average Model ARMA(1,1)

ΠΑΝΕΠΙΣΤΗΜΙΟ ΚΥΠΡΟΥ - ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ ΕΠΛ 133: ΑΝΤΙΚΕΙΜΕΝΟΣΤΡΕΦΗΣ ΠΡΟΓΡΑΜΜΑΤΙΣΜΟΣ ΕΡΓΑΣΤΗΡΙΟ 3 Javadoc Tutorial

The challenges of non-stable predicates

Advanced Subsidiary Unit 1: Understanding and Written Response

14 Lesson 2: The Omega Verb - Present Tense

ΠΑΝΔΠΙΣΗΜΙΟ ΜΑΚΔΓΟΝΙΑ ΠΡΟΓΡΑΜΜΑ ΜΔΣΑΠΣΤΥΙΑΚΧΝ ΠΟΤΓΧΝ ΣΜΗΜΑΣΟ ΔΦΑΡΜΟΜΔΝΗ ΠΛΗΡΟΦΟΡΙΚΗ

Démographie spatiale/spatial Demography

SGML (Standard Generalized Markup Language) HTML (HyperText Markup Language) XML (extensible Markup Language)

ΑΝΑΠΑΡΑΣΤΑΣΗ ΓΝΩΣΗΣ ΣΤΟΝ ΠΑΓΚΟΣΜΙΟ ΙΣΤΟ

Modbus basic setup notes for IO-Link AL1xxx Master Block

Galatia SIL Keyboard Information

2 Composition. Invertible Mappings

Code Breaker. TEACHER s NOTES

Οδηγίες Αγοράς Ηλεκτρονικού Βιβλίου Instructions for Buying an ebook

Στο εστιατόριο «ToDokimasesPrinToBgaleisStonKosmo?» έξω από τους δακτυλίους του Κρόνου, οι παραγγελίες γίνονται ηλεκτρονικά.

Υπερκείμενο / Υπερμέσα

Μαθηματικά Λογισμικά και Γλώσσες Αναπαράστασης Γνώσης

Other Test Constructions: Likelihood Ratio & Bayes Tests

Ψηφιακή ανάπτυξη. Course Unit #1 : Κατανοώντας τις βασικές σύγχρονες ψηφιακές αρχές Thematic Unit #1 : Τεχνολογίες Web και CMS

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

Finite Field Problems: Solutions

Fractional Colorings and Zykov Products of graphs

Test Data Management in Practice

Assalamu `alaikum wr. wb.

Right Rear Door. Let's now finish the door hinge saga with the right rear door

Μηχανική Μάθηση Hypothesis Testing

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

HTML HTML5...CSS

Περιεχόμενα. Γαβαλάς Δαμιανός Τρέχον status της HTML

Math221: HW# 1 solutions

Mean bond enthalpy Standard enthalpy of formation Bond N H N N N N H O O O

Homework 3 Solutions

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

Special edition of the Technical Chamber of Greece on Video Conference Services on the Internet, 2000 NUTWBCAM

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

PortSip Softphone. Ελληνικά Ι English 1/20

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΑΤΡΩΝ ΤΜΗΜΑ ΗΛΕΚΤΡΟΛΟΓΩΝ ΜΗΧΑΝΙΚΩΝ ΚΑΙ ΤΕΧΝΟΛΟΓΙΑΣ ΥΠΟΛΟΓΙΣΤΩΝ ΤΟΜΕΑΣ ΣΥΣΤΗΜΑΤΩΝ ΗΛΕΚΤΡΙΚΗΣ ΕΝΕΡΓΕΙΑΣ

EPL 603 TOPICS IN SOFTWARE ENGINEERING. Lab 5: Component Adaptation Environment (COPE)

Bring Your Own Device (BYOD) Legal Challenges of the new Business Trend MINA ZOULOVITS LAWYER, PARNTER FILOTHEIDIS & PARTNERS LAW FIRM

Degenerate Perturbation Theory

Strain gauge and rosettes

Block Ciphers Modes. Ramki Thurimella

Web 論 文. Performance Evaluation and Renewal of Department s Official Web Site. Akira TAKAHASHI and Kenji KAMIMURA

ΕΠΛ 012 Εισαγωγή στο Παγκόσμιο Πλέγμα Πληροφοριών

ΕΘΝΙΚΟ ΜΕΤΣΟΒΙΟ ΠΟΛΥΤΕΧΝΕΙΟ


Ανάπτυξη διαδικτυακής διαδραστικής εκπαιδευτικής εφαρμογής σε λειτουργικό σύστημα Android

Εισαγωγή στον Παγκόσμιο ιστό και στη γλώσσα Html. Χρ. Ηλιούδης

ΕΠΙΧΕΙΡΗΣΙΑΚΗ ΑΛΛΗΛΟΓΡΑΦΙΑ ΚΑΙ ΕΠΙΚΟΙΝΩΝΙΑ ΣΤΗΝ ΑΓΓΛΙΚΗ ΓΛΩΣΣΑ

Bessel function for complex variable


Σημασιολογικός Ιστός (Semantic Web) - XML

ΑΚΑΔΗΜΙΑ ΕΜΠΟΡΙΚΟΥ ΝΑΥΤΙΚΟΥ ΜΑΚΕΔΟΝΙΑΣ ΣΧΟΛΗ ΜΗΧΑΝΙΚΩΝ ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ

Συντακτικές λειτουργίες

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

More CSS Syntax. Colors and Fonts. Color specification. CSS properties for colors. Χρώµατα και Γραµµατοσειρές. Κεφ. 3

Presentation of complex number in Cartesian and polar coordinate system

BRAND MANUAL AND USER GUIDELINES

ΑΡΙΣΤΟΤΕΛΕΙΟ ΠΑΝΕΠΙΣΤΗΜΙΟ ΘΕΣΣΑΛΟΝΙΚΗΣ

Overview. Transition Semantics. Configurations and the transition relation. Executions and computation

DSSSLkai TEX. 1. Eisagwgă. Apìstoloc Surìpouloc. 28ης Οκτωβρίου Ξάνθη

ΠΑΝΔΠΗΣΖΜΗΟ ΠΑΣΡΩΝ ΣΜΖΜΑ ΖΛΔΚΣΡΟΛΟΓΩΝ ΜΖΥΑΝΗΚΩΝ ΚΑΗ ΣΔΥΝΟΛΟΓΗΑ ΤΠΟΛΟΓΗΣΩΝ ΣΟΜΔΑ ΤΣΖΜΑΣΩΝ ΖΛΔΚΣΡΗΚΖ ΔΝΔΡΓΔΗΑ

Every set of first-order formulas is equivalent to an independent set

Κάθε γνήσιο αντίγραφο φέρει υπογραφή του συγγραφέα. / Each genuine copy is signed by the author.

The Heisenberg Uncertainty Principle

SPEEDO AQUABEAT. Specially Designed for Aquatic Athletes and Active People

Terabyte Technology Ltd

IT & Networking DEVELOPING , Programming in HTML5 with JavaScript and CSS3. Κωδικός Σεμιναρίου / Code MS-20480

Concrete Mathematics Exercises from 30 September 2016

Εργαστήριο Ανάπτυξης Εφαρμογών Βάσεων Δεδομένων. Εξάμηνο 7 ο

Maxima SCORM. Algebraic Manipulations and Visualizing Graphs in SCORM contents by Maxima and Mashup Approach. Jia Yunpeng, 1 Takayuki Nagai, 2, 1

Case 1: Original version of a bill available in only one language.

ΠΑΝΕΠΙΣΤΗΜΙΟ ΠΑΤΡΩΝ ΤΜΗΜΑ ΗΛΕΚΤΡΟΛΟΓΩΝ ΜΗΧΑΝΙΚΩΝ ΚΑΙ ΤΕΧΝΟΛΟΓΙΑΣ ΥΠΟΛΟΓΙΣΤΩΝ ΤΟΜΕΑΣ ΣΥΣΤΗΜΑΤΩΝ ΗΛΕΚΤΡΙΚΗΣ ΕΝΕΡΓΕΙΑΣ ΕΡΓΑΣΤΗΡΙΟ ΥΨΗΛΩΝ ΤΑΣΕΩΝ

ΠΤΥΧΙΑΚΗ ΕΡΓΑΣΙΑ ΒΑΛΕΝΤΙΝΑ ΠΑΠΑΔΟΠΟΥΛΟΥ Α.Μ.: 09/061. Υπεύθυνος Καθηγητής: Σάββας Μακρίδης

Transcript:

What is the logical structure of a documet? Markup Laguages Γλώσσες Σήμανσης What is the differece betwee logical structure (λογική δομή), sematics (σημασιολογία) ad presetatio (παρουσίαση) of a documet? What is the use of tags (οριοθέτες σήμανσης ή σημαντήρες)? What is DTD ad how do we compose oe? What is the differece betwee SGML ad HTML? What is the Ope Web Platform? What is the structure of a HTML file? What is the estig of HTML elemets ad how does it traslate to hierarchical file structure? What is the DOM ad how is it useful? Ανασκόπηση Documet Cotet «Περιεχόμενο» Εγγράφων Γλώσσες Σήμανσης Documets characterised by: Εισαγωγή στην HTML Βασικές έννοιες Σύνταξη Στοιχείων HTML Δομή αρχείων HTML Μοντέλο Αντικειμένου Εγγράφων (DOM) Σημασιολογία Καλές Πρακτικές Cotet - Περιεχόμενο / πληροφορίες Logical Structure - Λογική δομή - Ιεραρχική-δενδρική book author headig chapter Τυπολογία HTML εγγράφων -Doctypes Εισαγωγή στους Επάλληλους Οδηγούς Τεχνοτροπίας - Cascadig Style Sheets headig paragraph sectio headig paragraph paragraph figure 3 4

Documet Cotet vs Presetatio Documet markup (Σήμανση Εγγράφων) Cotet: iformatio cotaied i a documet, orgaised accordig to some logical structure Structured defied by the type of the documet (book, article etc) Presetatio: the formattig style applied whe presetig a documet i a physical medium (τεχνοτροπία παρουσίασης-στοιχειοθεσίας) - scree, paper Typically, presetatio follows rules idepedet of the cotet, about: fot paragraph umberig paragram format locatio of foototes etc 5 Markup: isertig ito a documet metadata describig the documet ad its cotets. These metadata: Refer to the descriptio of the structure (δομή), sematics (σημασιολογία), presetatio (παρουσίαση) or other characteristics of the documet ad/or its cotets. Are itroduced i a documet i a way that its reader (huma or program) ca distiguish without hesitatio the cotet from its aotatio («σχολιασμό»). Are defied i the cotext of distict markup elemets (στοιχείων σήμανσης). The markup elemets are specified by markig-up parts of a documet (οριοθέτηση τμημάτων περιεχομένου) which represet distict structural/logical/sematic uits. The mark-up is doe with the use of tags (σημαντήρες) A tag comprises the ame of a markup elemet, eclosed betwee markup delimiters (οριοθέτες σήμανσης): < ad > Eg. <author>erik Wilde</author> 6 SGML SGML (Stadard Geeralized Markup Laguage): A stadard for geeral mark-up laguages - ISO 8879. A markup laguages that defies tags ad grammar rules for their itroductio ito documet. The represetatio of a documet s structure happes with the markup of documet parts, which correspod to distict logical uits, usig the correspodig tags ad i compliace to SMGL stadards. Eg: <book><author>erik Wilde</author> <headig>wilde s WWW</headig> <chapter id= sgml ><headig>sgml</headig> <paragraph>. <sectio><headig>cotet & presetatio</headig>. </sectio> By itroducig tags ito a documet, the tags: Represet explicitly the structure/sematics/presetatio of the documet (επισημειώνουν) τη δομή/σημασιολογία/παρουσίαση του εγγράφου). Allow the separatio of the documet s cotet from its formattig. 7 SGML Example <book> <author>erik Wilde</author> <headig>wilde s WWW</headig> <chapter id= sgml ><headig>sgml</headig> <paragraph>. <sectio><headig>cotet & presetatio</headig>. </sectio> Markup tags help us recogise structure Each tag elemet ca have a differet structure Additioal (meta)iformatio ca be iserted to a markup elemet by itroducig attributes (ιδιοχαρακτηριστικά) iside the begiig tag of the elemet. 8

Documet Type Defiitio (DTD) Defies the grammar rules the determie how to ecode ad structure a documet described i SGML or aother markup laguage. SGML documets belogig to the same class/category are ecoded accordig to a commo DTD, which specifies: The logical elemets i documets of that category, alog with their structure ad attributes. The rules that gover the compositio of these elemets ito more complex oes formig a tree hierarchy. The DTD specificatio facilitates documet processig. I particular: Documet creatio Validatio Presetatio DTD Example DTD of a book: <!ELEMENT book (author, headig,chapter+) > <!ELEMENT chapter (headig, (paragraph figure)*,sectio*)> <!ELEMENT sectio (headig, (paragraph figure)*) > <!ATTLIST (chapter sectio) id CDATA #IMPLIED> <!ELEMENT author (#PCDATA) > Sematic extractio 9 10 Documet presetatio (pritig) steps 1. Documet validatio accordig to its DTD. 2. Substitutio of markup tags with formattig istructios i the presetatio system at had. Geeral SGML Processig SGML Declaratio DTD Documet 3. Cotext cotrol - e.g. the presetatio of a particular head appears differetly if the header is iside differet elemets (e.g. i a sectio or a chapter). 4. Executio of additioal processig istructios (e.g. build a idex from the headigs). Parser SGML Declaratio: βασικοί ορισμοί και συμβάσεις πάνω στις οποίες στηρίζεται η συγγραφή ενός έγκυρου DTD (π.χ. Λεπτομέρειες για την αναπαράσταση των σημαντήρων). Χρησιμοποιείται από τον parser για την ανάλυση του DTD και του εγγράφου SGML. 11 12

Specialised SGML Parser Specialised SGML Parser Π.χ.: XML DTD Documet Π.χ.: HTML Documet Parser SGML Declaratio SGML Declaratio Parser DTD 13 14 Hypertext Markup Laguage (HTML) HyperText Markup Laguage http://www.w3.org/wiki/the_basics_of_html describes the cotet (περιεχόμενο) ad structure (δομή) of iformatio o a web page ot the same as the presetatio (παρουσίαση - appearace o scree) surrouds text cotet with opeig ad closig tags (σημαντήρες-markers) each tag's ame is called a elemet (στοιχείο) sytax: <elemet> cotet </elemet> example: <p>this is a paragraph</p> most whitespace is isigificat i HTML (igored or collapsed to a sigle space) we will use a ewer versio called HTML5 16

HTML features HTML Files Allows the embeddig of hyperliks (υπερσυνδέσμων, δεικτών) to other HTML documets as well as other files (audio, video, aimatio, biary) Therefore, it ca be used for the desig ad developmet of hypermedia applicatios. It is extesible, i the sese that ew features ad fuctioalities ca be added without ivalidatig previous versios. HTML files typically have a suffix of.html or.htm (owadays this is ot so commo as before) Cotai ASCII/UTF-8 characters ad ca be created/edited with ay editor like sublime, vi, emacs, otepad. Multiple WYSIWYG tools. Importat to kow ad uderstad the specificatio, i additio to usig a powerful tool. You ca validate HTML files locally by opeig them with your browser. Look at existig files ad lear 17 18 Sublime Editor The Desig of HTML Simple, purist desig priciples HTML describes the logical structure of a documet Browsers are free to iterpret tags differetly HTML is a lightweight file format Size of file cotaiig just Hello World! : Postscript PDF MS Word HTML 11,274 bytes 4,915 bytes 19,456 bytes 28 bytes 20

The History of HTML 1992: HTML 1.0, Tim-Berers Lee origial proposal 1993: HTML+, some physical layout 1994: HTML 2.0, stadard with best features 1995: No-stadard Netscape features 1996: Competig Netscape ad Explorer features 1996: HTML 3.2, the Browser Wars ed 1997: HTML 4.0, stylesheets are itroduced 1999: HTML 4.01, we have a wier! 2000: XHTML 1.0, a XML versio of HTML 4.01 2001: XHTML 1.1, modularizatio 2002: XHTML 2.0, simplified ad geeralized (workig draft) 28/10/2014: HTML 5.0 -W3C Stable Recommedatio 21 HTML5 Capabilities for supportig more iteractivity, video, graphics, visual effects ad a full API. Adaptable to ay device: PC, laptop, hadehld, tablet, TV. Ope platform with free licesig. The term HTML5 is used to refer to Either the set of techologies that comprise the future: Ope Web Platform: HTML5 specificatio, CSS3, SVG, MathML, Geolocatio, XmlHttpRequest, Cotext 2D, Web Fots (WOFF) κ.α. The boudaries betwee these techologies are ot strict ad chage over time. The HTML5 specificatio per se. ΗΤΜL file structure ad DOM 23

The structure of a HTML file Documet type elemet, or doctype: maily serves to get the browser to reder the HTML i what is called "stadards mode", so it will work correctly. It also lets validatio software kow what versio of HTML to validate your code agaist. html elemet: a wrapper aroud the etire documet; the closig html tag is the last thig i ay documet. Iside the html elemet: the head elemet, a wrapper to cotai iformatio about the documet (the metadata). After the head elemet: a body elemet - the wrapper to cotai the actual cotet of the page -i this case, oly a level-oe header (h1) elemet, which cotais the text A eve simpler HTML example. Elemets ofte cotai other elemets. HTML body eds up ivolvig may ested elemets (φωλιασμένα στοιχεία). Structural elemets such as article, header ad div create the overall structure of the documet, ad will cotai subdivisios. These will cotai headigs, paragraphs, lists ad so o. Paragraphs ca cotai elemets that make liks to other documets, quotes, emphasis ad so o. 26 The Documet Object Model (DOM) Whe a browser reders HTML for display, it coverts it ito a Documet Object Model (DOM), which ca be thought of as a tree-like structure, or hierarchy. <head> <html> <body> Every elemet, attribute, ad chuk of text is represeted by a ode, which is a geeric cotaier for a piece of cotet iside the DOM. Whe a elemet cotais aother elemet, the cotaied elemet ca be referred to as a child (παιδί), ad the cotaier ca be referred to as a paret (γονέας). If you have two elemets iside aother elemet, those elemets are at the same level i the DOM, ad are referred to as sibligs (αδέλφια). These terms are stadard computer sciece terms used whe talkig about data models. <title> <h1> Elemet estig (φώλιασµα) A well-formed DOM is essetial to make sure that browsers iterpret your web page structure correctly ad cosistetly. Whe usig CSS ad JavaScript, you eed to travel up ad dow the differet levels of the DOM hierarchy to select elemets you wat to maipulate. The oly way to esure this will work correctly is to make sure that the DOM is well-formed. 28

The Documet Object Model (DOM) <h1> The Basics of <abbr> title Hypertext Markup Laguage HTML 29