Advanced Web Programming C2. Basic Web Technologies

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

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.

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

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

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

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

Deccansoft Software Services

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

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

HTML and CSS COURSE SYLLABUS

NAME: name a section of the page TARGET = "_blank" "_parent" "_self" "_top" window name which window the document should go in

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

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

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

Name Related Elements Type Default Depr. DTD Comment

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

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

introduction to XHTML

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

UNIT II Dynamic HTML and web designing

Certified HTML5 Developer VS-1029

QUICK REFERENCE GUIDE

Programmazione Web a.a. 2017/2018 HTML5

Hyper Text Markup Language HTML: A Tutorial

CSC 121 Computers and Scientific Thinking

1 of 7 11/12/2009 9:29 AM

Html basics Course Outline

Duke Library Website Preliminary Accessibility Assessment

HTML: Parsing Library

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

Certified HTML Designer VS-1027

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

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

COMPUTER APPLICATIONS 10. HTML - Structural Tags SECTION-B

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

Wireframe :: tistory wireframe tistory.

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

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

ROLE OF WEB BROWSING LAYOUT ENGINE EVALUATION IN DEVELOPMENT

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

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Index LICENSED PRODUCT NOT FOR RESALE

HTML TUTORIAL ONE. Understanding What XHTML is Not

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

Announcements. Paper due this Wednesday

HTML & XHTML Tag Quick Reference

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

A Balanced Introduction to Computer Science, 3/E

Appendix D CSS Properties and Values

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

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

Introducing Web Tables

HTML Hints & Tips. HTML is short for HyperText Markup Language.

Structure Bars. Tag Bar

HTML: Parsing Library

Web Design and Application Development

Part 1: HTML Language HyperText Make-up Language

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

CS105 Course Reader Appendix A: HTML Reference

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

1.264 Lecture 12. HTML Introduction to FrontPage

IMY 110 Theme 6 Cascading Style Sheets

CSC Web Programming. Introduction to HTML

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

Chapter 4. Introduction to XHTML: Part 1

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

A Brief Introduction to HTML

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Web and Apps 1) HTML - CSS

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

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

Website Development with HTML5, CSS and Bootstrap

Chapter 2 Creating and Editing a Web Page

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

HYPERTEXT MARKUP LANGUAGE ( HTML )

INTRODUCTION TO HTML5! HTML5 Page Structure!

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

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

GRAPHIC WEB DESIGNER PROGRAM

Static Webpage Development

CASCADING STYLESHEETS

2.1 Origins and Evolution of HTML

Techno Expert Solutions An institute for specialized studies!

Table-Based Web Pages

Web Development & Design Foundations with HTML5

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

Basic HTML Lecture 14

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

Tutorial 2 - HTML basics

Brief Intro to HTML. CITS3403 Agile Web Development. 2018, Semester 1

Appendix A. XHTML 1.1 Module Reference

Transcription:

Politehnica University of Timisoara Advanced Web Programming C2. Basic Web Technologies 2013 UPT-AC Assoc.Prof.Dr. Dan Pescaru

HTML Originally developed by Tim Berners-Lee in 1990 at CERN (Conseil Européen pour la Recherche Nucléaire) Supported by the NCSA Mosaic browser Should work well across different browsers and platforms Several versions: HTML 1, 2, 3, 4 HTML 5 is currently under development Dan Pescaru Advanced Web Programming. C2 2

HTML 4 HTML 4 (1997) extends HTML 3 with: Style sheets (CSS) Scripting (<script type="text/javascript>) Frames (<frameset>, <frame>) Embedding objects (<object>, e.g. Flash) Mixed direction text (e.g. Arabic or Hebrew) Richer tables (<tbody>, <colgroup>) Dan Pescaru Advanced Web Programming. C2 3

HTML 4. Accessibility Better distinction between document structure and presentation (using style sheets) Better forms, including the addition of access keys, semantic grouping, active labels A new client-side image map mechanism Support for the title and lang attributes on all elements, internalization features Better tables, including captions, column groups, and mechanisms to facilitate non-visual rendering (e.g. speech synthesizers) Dan Pescaru Advanced Web Programming. C2 4

HTML 4 Validation Validate the Web page against standard http://validator.w3.org/ http://www.htmlhelp.com/tools/validator/ The version of HTML against which the document is validated is based on the DOCTYPE information <DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN > Dan Pescaru Advanced Web Programming. C2 5

HTML DocType Doctype specify the version of ML used Strict contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (e.g. font). Framesets are not allowed Transitional contains all HTML elements and attributes, INCLUDING presentational and deprecated elements. Framesets are not allowed HTML 4.01 Frameset as Transitional, but allows the use of frameset content Dan Pescaru Advanced Web Programming. C2 6

HTML Document Structure Dan Pescaru Advanced Web Programming. C2 7

HEAD Elements TITLE goes on browser s title bar BASE base URL or default target META meta information for robots BGSOUND background sounds SCRIPT / NOSCRIPT scripting/ alternative code/error message STYLE add styles (CSS) Dan Pescaru Advanced Web Programming. C2 8

META Elements Records document information Name = author Name = keywords Name = description Refresh or forward the page HTTP-EQUIV = refresh Contents = milliseconds URL= auto-forward target Dan Pescaru Advanced Web Programming. C2 9

BODY Elements BGCOLOR background color of the page BACKGROUND background picture TEXT color of the text on the page LINK color of links not followed yet VLINK color of links that have been followed ALINK color of links while you are clicking on them BGPROPERTIES - if the background image should not scroll (BGPROPERTIES=FIXED) Dan Pescaru Advanced Web Programming. C2 10

Font Elements <FONT> SIZE size of the font (ex. SIZE=4) COLOR color of the text (ex. COLOR= #FF3399 ) FACE typestyle (ex. FACE="Arial ) WEIGHT thickness (ex. WEIGHT= 900 ) <TT>/<PRE> teletype (fixed width) <SUB> subscript <SUP> superscript Dan Pescaru Advanced Web Programming. C2 11

Text Elements <STRIKE>/<S> strikeout <U> underline <B> bold <I> italics <BIG> bigger than normal <SMALL> smaller than normal <BLINK> causes the text to blink Dan Pescaru Advanced Web Programming. C2 12

Text Structural Elements <P> paragraph ALIGN alignment of text within the paragraph (left, center, right, justify) <BR> line break <CENTER> a section that is centered <HR> horizontal rule SIZE height, WIDTH - width of the line COLOR color of the line <H1> <H6> headings Dan Pescaru Advanced Web Programming. C2 13

Special characters Desired character < > & Space HTML code < > & " Dan Pescaru Advanced Web Programming. C2 14

Lists Elements <OL> ordered list TYPE - type of numerals (1, A, a, I, i) START - where to start counting <UL> unordered list TYPE - type of bullets (DISC, CIRCLE, SQUARE) <LI> list item Dan Pescaru Advanced Web Programming. C2 15

Special lists <DL> definition list COMPACT - take up less space <DT> definition term <DD> definition description <DIR> directory list (use <UL> instead) Dan Pescaru Advanced Web Programming. C2 16

Image Elements <IMG> external image SRC - where to get the picture ALT - text to show if you don't show the picture WIDTH - how wide is the picture HEIGHT - how tall is the picture ALIGN - how text should flow around the picture BORDER - border around the picture HSPACE - horizontal distance between the picture and the text VSPACE - vertical distance between the picture and the text ISMAP - is this a clickable map? Dan Pescaru Advanced Web Programming. C2 17

TABLE Attributes <TABLE> create a table WIDTH - width of the table as a whole HEIGHT - height of the table as a whole BORDER - size of border around the table BORDERCOLOR - color of border around the table BGCOLOR - color of the background BACKGROUND - picture to use as background CELLPADDING - space between the edge and the cell contents CELLSPACING - space between cells Dan Pescaru Advanced Web Programming. C2 18

TABLE Elements <TR> - table row <TD> - table data <TH> - table header <COLGROUP> - column group with common properties <CAPTION> - table caption <THEAD> - table header section (group of rows) <TBODY> - table body section (group of rows) <TFOOT> - table footer section Dan Pescaru Advanced Web Programming. C2 19

TABLE Example <TABLE CELLPADDING=6 RULES=GROUPS FRAME=BOX> <THEAD> <TR> <TH>Weekday</TH> <TH>Date</TH> <TH>Manager</TH> <TH>Qty</TH> </TR> </THEAD> <TBODY> <TR> <TD>Mon</TD> <TD>09/11</TD> <TD>Kelsey</TD> <TD>639</TD> </TR> <TR> <TD>Tue</TD> <TD>09/12</TD> <TD>Lindsey</TD> <TD>596</TD> </TR> <TR> <TD>Wed</TD> <TD>09/13</TD> <TD>Randy</TD> <TD>1135</TD> </TR> <TR> <TD>Thu</TD> <TD>09/14</TD> <TD>Susan</TD> <TD>1002</TD> </TR> <TR> <TD>Fri</TD> <TD>09/15</TD> <TD>Randy</TD> <TD>908</TD> </TR> <TR> <TD>Sat</TD> <TD>09/16</TD> <TD>Lindsey</TD> <TD>371</TD> </TR> <TR> <TD>Sun</TD> <TD>09/17</TD> <TD>Susan</TD> <TD>272</TD> </TR> </TBODY> <TFOOT> <TR> <TH ALIGN=LEFT COLSPAN=3>Total</TH> <TH>4923</TH> </TR> </TFOOT> </TABLE> Dan Pescaru Advanced Web Programming. C2 20

Links <A> - link anchor HREF - URL you are linking to NAME - name a section of the page TARGET - which window the document should go in <BASE> - base address. Any relative reference will be calculated from the URL given by it instead of the actual URL HREF - default address for hypertext links TARGET - default window for linked documents Dan Pescaru Advanced Web Programming. C2 21

Frames Elements <FRAMESET> - defines the general layout of a web page that uses frames COLS/ROWS - how many cols/rows in the frameset FRAMEBORDER: if the frames should have borders FRAMESPACING: space between the frames <FRAME> - sets a single frame SRC - what file to put in the frame NAME - the name of the frame <NOFRAMES> - text for older browsers <IFRAME> - frame over a page ( floating ) Dan Pescaru Advanced Web Programming. C2 22

Forms Elements <FORM> - display an HTML form ACTION - URL of a SSC or CGI program METHOD - how to transfer the data to the server <INPUT> - creates a data entry field <TEXTAREA> - a form field for large text <SELECT> - a selectable list <OPTION> - an option inside a <select> list <BUTTON> - creates a button <LABEL> - a text associated with an element Dan Pescaru Advanced Web Programming. C2 23

HTML - ref HTML tutorial http://www.w3schools.com/html/default.asp Dan Pescaru Advanced Web Programming. C2 24

XHTML XHTML (extensible Hypertext Markup Language) - a family of XML languages developed to extend HTML The main goal: to make HTML more extensible and increase interoperability with other data formats through XML mechanisms Allows mixing of HTML code with other XML based languages like Scalable Vector Graphics (SVG) or MathML Dan Pescaru Advanced Web Programming. C2 25

XHTML versus HTML There are several differences between HTML and XHTML: all elements (tags) has to be closed (incl. </input> or </br>) XML is case-sensitive for element and attribute names XML does not allowed attribute minimization (ex. <option selected="selected">) behavior on parse errors differ (processing could be aborted) support for namespaces differences in JavaScript processing (ex. document.write() will not work in XHTML) There are three different XHTML 1.0 corresponding to the three different versions of HTML 4 as: XHTML 1.0 Strict, XHTML 1.0 Transitional and XHTML 1.0 Frameset. Dan Pescaru Advanced Web Programming. C2 26

CSS CSS - Cascading Style Sheets is a language used to describe the appearance (the look and formatting) of a document written in a markup language (ex. HTML) The main objective was to enable the separation of document content from the document presentation CSS specifications are maintained by the W3C Dan Pescaru Advanced Web Programming. C2 27

CSS Syntax Three Ways to Insert CSS External style sheet Internal style sheet Inline style Syntax: selector { propriety: value; } Selectors Element: p {color:red;} Class:.redText {color:red;} Id: #textc {text-align:center;} Hierarchical: #bigtable td {text-align:left;} Dan Pescaru Advanced Web Programming. C2 28

CSS Solving Conflicts <html> <head> <style type="text/css">.red{ font-size:15px; color:red; } </style> <title>apple Example</title> </head> <body> <p class="red" style="color:green">apple</p> </body> </html> Dan Pescaru Advanced Web Programming. C2 29

CSS Styling Text color:.. color....hex....rgb.. direction: ltr rtl letter-spacing: nomal..px.. word-spacing: normal..px.. text-align: left right center justify text-decoration: none underline line-through blink text-ident:..px.. % text-transform: none capitalize uppercase lowercase white-space: normal pre nowrap Dan Pescaru Advanced Web Programming. C2 30

CSS Styling Font font-family:..font.. font-size: %..px....pt....cm....em.. font-style: normal italic obligue font-variant: normal small-caps font-weight: normal bold bolder lighter 100 900 line-height: %..nr.. Dan Pescaru Advanced Web Programming. C2 31

CSS Styling Lists and Tables list-style-image: none url list-style-position: inside outside list-style-type: disc circle lower-greek.. border: size border-type color; border-collapse: separate collapse; width: size; height: size; text-align: left right center; padding: size; color: color rgb(r,g,b); background-color: color rgb(r,g,b); Dan Pescaru Advanced Web Programming. C2 32

CSS - ref CSS Tutorial http://www.w3schools.com/css/default.asp Free CSS Menu Editor http://purecssmenu.com/ Dan Pescaru Advanced Web Programming. C2 33

HTML 5 Next standard Some browsers offer some limited support Aims Reduce the need for external plugins (like Flash) Better error handling More markup to replace scripting Device independent (e.g. various mobile devices) Dan Pescaru Advanced Web Programming. C2 34

HTML 5 New Features Some of the new features: Canvas element - drawing Video and audio elements - media playback Better support for local offline storage New content specific elements (article, footer, header, nav, section) New form controls (calendar, date, time, email, url, search) Dan Pescaru Advanced Web Programming. C2 35

HTML 5 New Media Tags <audio> audio streams: sounds, music (mpeg4, ogg, WebM) <video> video content: movie clips (mp3, ogg vorbis, wav) <source> for media elements, defined inside video or audio elements <embed> for embedded content, such as a plug-in <canvas> runtime drawings with a script (e.g. javascript) Dan Pescaru Advanced Web Programming. C2 36

HTML 5 Data Storage Two new objects for storing data on the client localstorage - stores data with no time limit sessionstorage - stores data for current session Data is not passed on by every server request, but used only when asked for. It is possible to store large amounts of data without affecting the website's performance The data is stored in different areas for different websites, and a website can only access data stored by itself JavaScript is used to store and access the data. Dan Pescaru Advanced Web Programming. C2 37

HTML 5 Local Storage E.g. Page counter <script type="text/javascript"> if (localstorage.counter) { localstorage.counter=number(localstorage.counter)+1; } else { localstorage.counter=1; } document.write("visitor #"+localstorage.counter); </script> Dan Pescaru Advanced Web Programming. C2 38

HTML5 - ref HTML5 Tutorial http://www.w3schools.com/html/html5_intro.asp W3C HTML5 Reference http://www.w3.org/tr/html5/ Dan Pescaru Advanced Web Programming. C2 39