Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Similar documents
HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

HTML: Parsing Library

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

introduction to XHTML

Wireframe :: tistory wireframe tistory.

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Certified HTML5 Developer VS-1029

Advanced HTML Scripting WebGUI Users Conference

Index. CSS directive, # (octothorpe), intrapage links, 26

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

HTML: Parsing Library

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

HTML Overview. With an emphasis on XHTML

Certified HTML Designer VS-1027

Announcements. Paper due this Wednesday

Intro to html. --- define every element, attribute, and entity along with the rules for their use

Advanced Web Programming C2. Basic Web Technologies

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

(X)HTML. Internet Engineering. Spring Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Html basics Course Outline

HTML & XHTML Tag Quick Reference

Fall Semester 2016 (2016-1)

Introduction to HTML5

XHTML & CSS CASCADING STYLE SHEETS

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Web Publishing Basics I

WML2.0 TUTORIAL. The XHTML Basic defined by the W3C is a proper subset of XHTML, which is a reformulation of HTML in XML.

Name Related Elements Type Default Depr. DTD Comment

CSC 121 Computers and Scientific Thinking

HTML: The Basics & Block Elements

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

HYPERTEXT MARKUP LANGUAGE ( HTML )

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Canvas & Brush Reference. Source: stock.xchng, Maarten Uilenbroek

Inline Elements Karl Kasischke WCC INP 150 Winter

Fundamentals: Client/Server

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

UNIT II Dynamic HTML and web designing

CPET 499/ITC 250 Web Systems. Topics

CSC Web Programming. Introduction to HTML

CSCU9B2: Web Tech Lecture 1

LING 408/508: Computational Techniques for Linguists. Lecture 14

A Balanced Introduction to Computer Science, 3/E

Web Programming Week 2 Semester Byron Fisher 2018

2.1 Origins and Evolution of HTML

HTML and CSS COURSE SYLLABUS

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Deccansoft Software Services

HyperText Markup Language (HTML)

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

HTML Overview formerly a Quick Review

A designers guide to creating & editing templates in EzPz

HTML. HTML Evolution

Implementing a chat button on TECHNICAL PAPER

Summary 4/5. (contains info about the html)

Structure Bars. Tag Bar

A Brief Introduction to HTML

QUICK REFERENCE GUIDE

Programming of web-based systems Introduction to HTML5

Creating Web Pages Using HTML

@namespace url( /* set default namespace to HTML */ /* bidi */

COMP519: Web Programming Lecture 4: HTML (Part 3)

How the Internet Works

The Structural Layer (Hypertext Markup Language) Webpage Design

Lab 4 CSS CISC1600, Spring 2012

Bridges To Computing

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Create a cool image gallery using CSS visibility and positioning property

INTRODUCTION TO WEB USING HTML What is HTML?

Chapter 4. Introduction to XHTML: Part 1

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

5-Sep-16 Copyright 2016 by GemTalk Systems LLC 1

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett

Web Design and Development ACS Chapter 3. Document Setup

Programmazione Web a.a. 2017/2018 HTML5

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Evaluation of alignment methods for HTML parallel text 1

Web Development and HTML. Shan-Hung Wu CS, NTHU

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Web Technology. HTML & xhtml

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Digital Asset Management 2. Introduction to Digital Media Format

HTML+ CSS PRINCIPLES. Getting started with web design the right way

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

Introducing Web Tables

11. HTML5 and Future Web Application

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

Designing UI. Mine mine-cetinkaya-rundel

Chapter 5. Introduction to XHTML: Part 2

Symbols INDEX. !important rule, rule, , 146, , rule,

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Table-Based Web Pages

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

Transcription:

Internet publishing HTML (XHTML) language Petr Zámostný room: A-72a phone.: 4222 e-mail: petr.zamostny@vscht.cz

Essential HTML components Element <p>element example</p> Start tag Element content End tag content-less elements HTML 4.01: no closing needed <br> XHTML: elements must be closed <br /> Element can contain another elements Well-formed documents

Essential HTML components Attribute Example Link <a href= somewhere.html">somewhere else</a> More detailed element specification Must be placed in starting element brackets Value must be enclosed in "" Element may have more attributes Attributes order is arbitrary

Essential HTML components Character entities Characters difficult to enter via keyboard HTML reserved characters <, >, & Example &entity_name; > > < < & & " Nonbreaking space &#character_unicode_number; Й Й

Essential HTML components Entities defined by XHTML http://www.w3.org/tr/xhtml1/dtd/xhtml-lat1.ent http://www.w3.org/tr/xhtml1/dtd/xhtml-symbol.ent http://www.w3.org/tr/xhtml1/dtd/xhtml-special.ent Entity given by number in UNICODE table - http://en.wikipedia.org/wiki/unicode Character listings http://alanwood.net/unicode/ In order to display properly, the characters must be supported by the browser as well as they must be included in specified font

XHTML page structure <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>...</title> </head> <body>... </body> </html> XML declaration Document type definition standard Core dokument

XML declaration <?xml version="1.0" encoding="utf-8"?> Specifies the XML version and encoding for applications working at the XML level It is not mandatory, but it is automatically included by some editors It can cause problems in some MSIE installations Recommendation: don not use it/delete it

Document type definition Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Strict <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd">

Document type definition Specifies the standard used for writing the document Lists elements that are allowed in the document and their nesting

Core document <html> element <html xmlns="http://www.w3.org/1999/xhtml"> <head>... </head> <body>... </body> </html> Must contain the namespace declaration xmlns=http://www.w3.org/1999/xhtml If it is missing it should work safely only in no other namespaces are used

Head element content <head> <title>example</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="keywords" content="html, XHTML" /> <meta name="authors" content="petr Zámostný" /> </head> <title> Name of the page displayed in the browser window caption <meta> Document metadata Usually they are not interpreted by browsers, used e.g. for fulltext search robots Exception: document type and encoding info <meta http-equiv="content-type" content="text/html; charset=utf-8" />

body element content <body> text elements </body> Text and formatting instructions Default behavior Consecutive spaces, tabs, line-breaks are rendered as single space Block and inline elements

Examples of elements (rehearsing) Block <p> <h1> <h6> <pre> <div> <hr> <dl> <ul> <ol> <table> <form> Inline <a> <img> <map> <br> <script> <sub> <sup> <span> <em> <strong> <code> <cite> <dfn> <samp> <kbd> <var> <abbr> <i> <b>

Standard attributes Can be used for all elements except base, head, html, meta, param, script, style a title More simply: they can be used in all visual elements

Standard attributes class specifies class (group) the element belongs to id assigns unique identifier to the element style can be used to directly set element style in CSS All attributes above are used for application of styles and dynamic behavior title specifies element tooltip

Language attributes For all elements except base, br, frame, frameset, hr, iframe, param a script dir can have valuesltr rtl and controls the text direction (left-to-right, right-toleft) lang document language

Text structure elements div section p paragraph span inline block br line-break (content-less <br />)

Text structure (example) <body> <div id= section1"> <p>1 st paragraph</p> <p>2 nd paragraph</p> </div> <div id= section2"> <p>3 rd paragraph</p> <p>4 th <span>paragraph</span> of<br /> text broken into 2 lines</p> </div> </body>

Headings <body> <h1>heading 1</h1> <h2>heading 2</h2> <h3>heading 3</h3> <h4>heading 4</h4> <h5>heading 5</h5> <h6>heading 6</h6> </body>

Formátting <body> <p><em>emphasized text</em></p> <p><strong>strong printed text</strong></p> <p><b>bold text</b></p> <p><i>italics</i></p> <p>text<sub>subscript</sub></p> <p>text<sup>superscript</sup></p> <p><code>monospace font</code></p> <pre> Preformatted text A B C 1 2 3 4 5 6 </pre> </body>

Lists <body> <h1>unordered list</h1> <ul> <li type="disc">kolečko</li> <li type="circle">kroužek</li> <li type="square">čtvereček</li> </ul> <h1>ordered list</h1> <ol type="a"> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ol> <h1>definition list</h1> <dl> <dt>html</dt><dd>hypertext Markup Language</dd> <dt>xml</dt><dd>extensible Markup Language</dd> </dl> </body>

Graphics img inserts image Attributes src URL of image file alt alternative text For users that cannot/does not want to display images height, width Enables the browser get image dimensions before they are actually downloaded speeds up document display Can be used to resize images.. But there are better ways to do it

Graphics (příklad) <body> <hr /> <img src="http://www.w3.org/icons/valid-xhtml10" alt="valid XHTML 1.0!" height="31" width="88" /> </body>

Tables Tables are created hierarchically by following elements table table tr row td cell th heading cell

Tables Important attributes of table element border cellspacing cellpadding frame, rules

Tables <table summary="anotace tabulky" border="1"> <tr> <th>záhlaví sloupce 1</th> <th>záhlaví sloupce 2</th> </tr> <tr> <td>buňka 1</td> <td>buňka 2</td> </tr> <tr> <td>buňka 3</td> <td>buňka 4</td> </tr> </table> http://www.vscht.cz/kot/resources/studijni-materialy/ip-s-002/p01.html

Table borders <table border="0"> <caption>bez okraje</caption> <tr><td>1. buňka</td><td>2. buňka</td></tr> <tr><td>3. buňka</td><td>4. buňka</td></tr> </table> <br /> <table border="1"> <caption>s okrajem</caption> <tr><td>1. buňka</td><td>2. buňka</td></tr> <tr><td>3. buňka</td><td>4. buňka</td></tr> </table> <br /> <table border="1" frame="void"> <caption>vnější okraj tabulky</caption> <tr><td>1. buňka</td><td>2. buňka</td></tr> <tr><td>3. buňka</td><td>4. buňka</td></tr> </table> <br /> <table border="1" rules="none"> <caption>vnitřní okraj tabulky</caption> <tr><td>1. buňka</td><td>2. buňka</td></tr> <tr><td>3. buňka</td><td>4. buňka</td></tr> </table> <br />

Structuring <table summary="anotace tabulky" border="1"> <caption>sklizeň ovoce</caption> <thead> <tr> <th></th> <th>hrušky</th> <th>jablka</th> </tr> </thead> <tfoot> <tr> <th>celkem</th> <td>25</td> <td>17</td> </tr> </tfoot> <tbody> <tr> <th>petr</th> <td>10</td> <td>10</td> </tr> <tr> <th>pavel</th> <td>15</td> <td>7</td> </tr> </tbody> </table> http://www.vscht.cz/kot/resources/studijni-materialy/ip-s-002/p02.html

Table dimensions <table border="1"> <caption>implicitní chování</caption> <tr> <td>1. buňka</td> <td>2. trochu větší buňka</td> </tr> </table> <table border="1" width="500"> <caption>pevná šířka</caption> <tr> <td>1. buňka</td> <td>2. trochu větší buňka</td> </tr> </table> <table border="1" width="80%"> <caption>šířka v % okna</caption> <tr> <td>1. buňka</td> <td>2. trochu větší buňka</td> </tr> </table> http://www.vscht.cz/kot/resources/studijni-materialy/ip-s-002/p03.html

Table alignment <table border="1" width="100%"> <caption>vodorovné zarovnání</caption> <tr><td align="left">buňka zarovnaná vlevo </td></tr> <tr><td align="right">buňka zarovnaná vpravo </td></tr> <tr><td align="center">buňka zarovnaná na střed </td></tr> <tr><td align="justify">buňka zarovnaná do bloku </td></tr> </table> <br /> <table border="1" width="100%"> <caption>svislé zarovnání</caption> <tr height="50"><td valign="top">buňka zarovnaná nahoru </td></tr> <tr height="50"><td valign="middle">buňka zarovnaná na střed </td></tr> <tr height="50"><td valign="bottom">buňka zarovnaná dolů </td></tr> <tr height="50"><td valign="baseline">buňka zarovnaná na základní čáru</td></tr> </table> <br /> http://www.vscht.cz/kot/resources/studijni-materialy/ip-s-002/p04.html

Merging cells <table border="1"> <tr><td>buňka</td><td>buňka</td><td>buňka</td><td>buňka</td></tr> <tr><td>buňka</td><td rowspan="2" colspan="2">expandovaná buňka</td><td>buňka</td></tr> <tr><td>buňka</td><td>buňka</td></tr> <tr><td>buňka</td><td>buňka</td><td>buňka</td><td>buňka</td></tr> </table><br /> http://www.vscht.cz/kot/resources/studijni-materialy/ip-s-002/p05.html