HTML5 and CSS3 The Future of the Web Programming HTML. Sergio Luján Mora



Similar documents
HTML, CSS, XML, and XSL

Introduction to HTML

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

Introduction to XHTML. 2010, Robert K. Moniot 1

HTML Basics(w3schools.com, 2013)

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

CSE 3. Marking Up with HTML. Tags for Bold, Italic, and underline. Structuring Documents. An HTML Web Page File

ICT 6012: Web Programming

Introduction to Web Design Curriculum Sample

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Website Planning Checklist

So we're set? Have your text-editor ready. Be sure you use NotePad, NOT Word or even WordPad. Great, let's get going.

An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.

Interaction between browser and server. HTML (Hyper Text Markup Language)

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright XHTML

Web Development 1 A4 Project Description Web Architecture

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

ICE: HTML, CSS, and Validation

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Lesson Review Answers

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

Script Handbook for Interactive Scientific Website Building

Overview. History HTML What is HTML5? New Features Features Removed Resources 10/8/2014

CS412 Interactive Lab Creating a Simple Web Form

Short notes on webpage programming languages

Introduction to Web Design Final Review - Farris

HTML & XHTML Tag Quick Reference

Create Webpages using HTML and CSS

Web Programming with XHTML

How to code, test, and validate a web page

Tutorial 6 Creating a Web Form. HTML and CSS 6 TH EDITION

Web Design with Dreamweaver Lesson 4 Handout

Accessibility in e-learning. Accessible Content Authoring Practices

HTML Forms and CONTROLS

Programming the Web 06CS73 SAMPLE QUESTIONS

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Creating HTML authored webpages using a text editor

Urban Planet Website Content Management System. Step-by-Step Instructions

LAB MANUAL CS (22): Web Technology

JISIS and Web Technologies

Website Development. 2 Text. 2.1 Fonts. Terry Marris September We see how to format text and separate structure from content.

Semantic HTML. So, if you're wanting your HTML to be semantically-correct...

HTML Tables. IT 3203 Introduction to Web Development

Advanced Web Design. Zac Van Note.

About webpage creation

Cascading Style Sheet (CSS) Tutorial Using Notepad. Step by step instructions with full color screen shots

A user-friendly reference guide HTML5 & CSS3 SAMPLE CHAPTER. Rob Crowther MANNING

CSS - Cascading Style Sheets

Web Design and Databases WD: Class 7: HTML and CSS Part 3

COMP519 Web Programming Autumn Cascading Style Sheets

Internet Technologies

ITNP43: HTML Lecture 4

UNIVERSITY OF CALICUT

Creating an HTML Document Using Macromedia Dreamweaver

HTML. A computer network is a collection of computers linked through cables or wireless means.

Website Login Integration

ISBN-13: ISBN-10: Cengage Learning International Offices

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

AJAX The Future of Web Development?

Advanced Drupal Features and Techniques

In this tutorial, you learn how to create a new view master page and create a new view content page based on the master page.

BlueHornet Whitepaper

c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.

How to Properly Compose HTML Code : 1

Structure type dun document XHTML

<script type="text/javascript"> var _gaq = _gaq []; _gaq.push(['_setaccount', 'UA ']); _gaq.push(['_trackpageview']);

With tags you can create italic or bold characters, and can control the color and size of the lettering.

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

The Web Web page Links 16-3

Web Accessibility Guidelines. For UN Websites

Formatting Text in Blackboard

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

Making Content Editable. Create re-usable templates with total control over the sections you can (and more importantly can't) change.

JavaScript and Dreamweaver Examples

Intell-a-Keeper Reporting System Technical Programming Guide. Tracking your Bookings without going Nuts!

HTML Forms. Pat Morin COMP 2405

07 Forms. 1 About Forms. 2 The FORM Tag. 1.1 Form Handlers

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

Selectors in Action LESSON 3

Transcription:

HTML5 and CSS3 The Future of the Web Programming HTML Sergio Luján Mora 1

Content Introduction HTML syntax Differences HTML/XHTML Tags More information INTRODUCTION 2

Wikipedia: Introduction HyperText Markup Language (HTML) is the predominant markup language for web pages. HTML elements are the basic building-blocks of webpages. Introduction HTML is written in the form of HTML elements consisting of tags, enclosed in angle brackets (like <html>), within the web page content. HTML tags most commonly come in pairs like <h1> and </h1>, although some tags, known as empty elements, are unpaired, for example <img>. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). In between these tags web designers can add text, tags, comments and other types of text-based content. 3

Introduction HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of markup tags HTML uses markup tags to describe web pages Introduction Standard defined by the W3C: HTML 4.01 HTML 5 (en desarrollo) XHTML 1.0 XHTML 1.1 XHTML 2 (cancelled) (December 2011) 4

5

Introduction HTML 1 HTML 4.01: Based on Standard Generalized Markup Language (SGML) XHTML 1: Based on extensible Markup Language (XML) Introduction Old HTML (until 4.01): Defines the visual presentation of the web page: Font face and font size Colors Size of elements Some special effects 6

Introduction New HTML (XHTML 1, HTML5): Visual presentation CSS HTML SYNTAX 7

HTML syntax HTML tags are keywords surrounded by angle brackets like <html> HTML tags normally come in pairs like <b> and </b> The first tag in a pair is the start tag, the second tag is the end tag Start and end tags are also called opening tags and closing tags 8

HTML syntax Element <p class="important">this is a paragraph</p> Start tag Attribute Value Content End tag HTML syntax <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <title>the title of the web page</title> </head> <body> <p>a paragraph of text</p> </body> </html> 9

HTML syntax Versions HTML 4.01: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/tr/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/tr/html4/frameset.dtd"> Tag: Individual: < > Pair: < > </ > HTML syntax Attributes: <img src="a.gif"> <input type="radio" checked="checked"> Upper and lower-case: <HTML>, <Html>, <html> 10

HTML syntax <!-- Comentario --> New lines and blank spaces are ignored: <br /> HTML syntax How can we know if a web page is correctly written? Validation W3C: http://validator.w3.org/ 11

DIFFERENCES HTML/XHTML 12

Differences HTML/XHTML extensible HyperText Markup Language XHTML is based on XML Syntax is more strict XHTML is a stricter and cleaner version of HTML XHTML is almost identical to HTML 4.01 13

Differences HTML/XHTML An XHTML document must have only one root element Case-sensitive for element and attribute names Everything in lower-case This is wrong: < table WIDTH="100%"> This is correct: < table width="100%"> Differences HTML/XHTML All elements be closed, either by a separate closing tag or using self closing syntax (e.g. <br />) This is wrong: < p>this is a paragraph < p>this is another paragraph This is correct: < p>this is a paragraph</p> < p>this is another paragraph</p> 14

Differences HTML/XHTML Attribute values must be quoted (single or double quotes) This is wrong: <table width=100%> This is correct: <table width="100%"> Differences HTML/XHTML Attribute minimization is not allowed This is wrong: <input checked> <input readonly> <input disabled> <option selected> This is correct: <input checked="checked" /> <input readonly="readonly" /> <input disabled="disabled" /> <option selected="selected" /> 15

Differences HTML/XHTML Three versions: XHTML Strict XHTML Transitional XHTML Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1- strict.dtd"> 16

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>an XHTML 1.0 Strict standard template</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="content-style-type" content="text/css" /> </head> <body> <p> Your HTML content here </p> </body> </html> TAGS 17

Tags (1) Tags that define the structure of the document: <html>, <head>, <body> Tags that can be used in the <head> section: <title>, <base>, <meta>, <style>, <link> Tags (2) Tags that define text blocks: <address>, <blockquote>, <div>, <h1> <h6>, <p>, <pre>, <xmp> Tags that define lists: <dir>, <dl>, <dt>, <dd>, <menu>, <ol>, <ul>, <li> 18

Tags (3) Tags that define text format: <b>, <basefont>, <big>, <cite>, <code>, <em>, <font>, <i>, <kbd>, <small>, <span>, <strike>, <strong>, <sub>, <sup>, <tt>, <u>, <var> Tags that define anchors and links: <a> Tags (4) Tags that define images and image maps: <img>, <area>, <map> Tags that define tables: <table>, <caption>, <thead>, <tbody>, <tfoot>, <tr>, <th>, <td> 19

Tags (5) Tags that define forms: <form>, <fieldset>, <input>, <select>, <option>, <textarea>, <label>, <legend>, <isindex> Tags that define frames: <frame>, <frameset>, <noframes>, <iframe> Tags (6) Tags that define scripts: <script>, <noscript> Tags that define applets and plug-ins: <applet>, <param>, <object> (<embed> not standard) Tags that adjust text: <br>, <center>, <hr> 20

Metadata (1) Data about data Section <head>: <meta http-equiv="property" content="content" /> <meta name="property" content="content" /> <html> <head> <meta http-equiv="refresh" content="5;url=http://www.ua.es" /> <meta name="author" content="programming in Internet" /> </head> <body> <p>in five seconds, this page must change...</p> </body> </html> 21

Metadata (2) <meta name="copyright" content="company, author, designer" /> <meta name="keywords" content="keywords, separated, by, comas" /> Metadata (3) <meta name="description" content="description of the content and the purpose of the website" /> <meta name="author" content="a person or a company" /> <meta name="robots" content="index, follow" /> 22

Metadata (4) <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="content- Language" content="es" /> <meta http-equiv="content- Script-Type" content="javascript" /> 23

Text format (1) Headings: <h1>,..., <h6> Physic styles: <b>, <i>,... Logical styles: <cite>, <code>, <em>, <strong>... Text format (2) <font face="" size=""> YOU NEVER MUST USE FONT You must use CSS instead of 24

CSS: Inline: Text format (3) style="font-face: ; font-size: " Embedded: <style type="text/css"> selector {font-face: ; font-size: } </style> External file: selector {font-face: ; font-size: } Text format (4) Serif font types: Letra Courier New Letra Georgia Letra Times New Roman Sans-serif font types: Letra Arial Letra Tahoma Letra Verdana 25

26

Lists Definition list <dl>, <dt>, <dd> Ordered list <ol>, <li> Unordered list <ul>, <li> 27

Links (1) Link to a target in the same document (internal link): Link: <a href="#name"> </a> Target: <a name="name"> </a> 28

Links (2) Link to another document (external link): <a href="page.html"> </a> Links (3) Link to a target in another document: Link: <a href="page.html#name"> </a> Target: <a name="name"> </a> 29

Be careful with: Links (4) Upper and lower case Strange characters (use only English alphabet) Physical paths ( file:///c:\myweb\groups.html ) Tables (1) Don t use tables for layout, only for data Tags and structure: <table> </table> <tr> </tr> <th> </th> <td> </td> 30

Tables (2) Other tags: <thead>, <tbody>, <tfoot> <caption> 31

32

33

34

<img> Images (1) Mandatory attributes: src, alt Optional attributes: width, height longdesc border Deprecated Types of images: Images (2) GIF (maximum 256 colors) JPG, (maximum 16M colors) PNG 35

36

Forms (1) Send data from Client Server <form name="name" action="page.html" method="methd"> Form controls </form> Methods: POST GET 37

Forms (2) Attributes: name and value Buttons (to send data, to reset form and other actions): <input type="submit"> <input type="reset"> <input type="button">, <button> <input type="image"> 38

Forms (3) Check boxes: <input type="checkbox"> Radio buttons: <input type="radio"> Text boxes: <input type="text"> 39

Forms (4) Password text boxes: <input type="password"> Hidden fields: <input type="hidden"> Sending a file: <input type="file"> Selection lists: Forms (5) <select>, <option>, <optgroup> Text areas: <textarea> Label of a control: <label> Group of controls: <fieldset>, <legend> 40

41

MORE INFORMATION 42

43