More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54

Slides:



Advertisements
Similar presentations
HTML5 Overview Owen Williams owen at dynabooks daht com Owen Williams owen at dynabooks daht com.
Advertisements

HTML5, OVERVIEW AND NEW FEATURES PowerPoint by Mason O’Mara.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
HTML5 (H YPER T EXT M ARKUP L ANGUAGE ) Lab 223 潘建廷 何偉聖
9-May-15 More CSS. 2 A different emphasis CSS is the same for XML as it is for HTML and XHTML, but-- XML contains no display information If you want your.
Week 9 Using the Box Properties. 9-2 The CSS Visual Formatting Model Describes how the element content boxes should be displayed by the browser –Based.
Tutorial 4: Creating page layout with css
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
INF Web Design Using Multimedia on the Web Video - Part 1.
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
HTML Advanced: HTML 5. Welcome This slideshow presentation is designed to introduce you to HTML 5. It is the third of three HTML workshops available at.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
14-Jul-15 CSS Applications to XML. 2 A different emphasis CSS is the same for XML as it is for HTML, but-- HTML already does a pretty good job of layout.
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
Chapter 14 Introduction to HTML
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Mark Branom, Continuing Studies.  HTML5 overview – what’s new?  New HTML5 elements  New HTML5 features  Guided Demonstrations  Forms  Video  Geolocation.
Session: 11. © Aptech Ltd. 2HTML5 Audio and Video / Session 11  Describe the need for multimedia in HTML5  List the supported media types in HTML5 
Computer Information System Information System California State University Los Angeles Jongwook Woo CIS 461 Web Development I HTML 5 Jongwook Woo, PhD.
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
IT Engineering I Instructor: Rezvan Shiravi
Computer Concepts 2014 Chapter 7 The Web and .
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
HTML 5 Tutorial Chapter 5 Canvas. Canvas The tag is used to display graphics. The Canvas is a rectangular area we control each and every pixel of it.
Proglan Session 1. .  HTML5 will be the new standard for HTML.  The previous version of HTML, HTML 4.01, came in The web has changed a lot since.
MIS 425 Lecture 3 – HTML 5 and CSS Instructor: Martin Neuhard
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements  Always name.
HTML 5 Tutorial Chapter 3 Video. Video HTML 5.0 provides a standard for showing video. Using the element we can easily embed video within our web page.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
HTML 5 Tutorial Chapter 6 Web Storage. Storing Data on The Client HTML5 offers two new objects for storing data on the client: localStorage - stores data.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
1. History, Vision & Future of HTML5 1.1 What Is HTML5? Successor of HTML 4.01 and XHTML 1.1 It comes with new tags, features and APIs Below is a non exhaustive.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
(1) HTML5, CSS, Twitter Bootstrap. (2) HTML5 Will be the new standard New features Drag and Drop and Support for local storage,,,, New input types Removed.
End User Computing Applied CSS: Building our course homepage Sujana Jyothi Department of Computer Science
Let’s look what flash can do: OK, that wasn’t flash! That was HTML5.
Tutorial #5 Working with the Box Model. Tutorial #4 Review - CSS Create a homework page Final Project Discussion Exam on Blackboard Styling Lists (List-style-type,
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
What is HTML5? HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01, came in The web has changed a lot since then. HTML5.
TNPW1 Ing. Jiří Štěpánek.  In current version (XHTML 1.0 strict)  No multimedia elements  No semantics elements  Only few input types  Only few document.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
HTML 5 Tutorial Chapter 7 Input Type. New Input Type HTML5 has several new input types for forms. These new features allow for better input control and.
Chapter 9 HTML 5 Video and Audio
The HTML5 logo was introduced by W3C in 2010
HTML Advanced: HTML 5 With Adaptations by Dilvan Moreira.
HTML 5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
HTML Advanced: HTML 5.
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
Chapter 4: HTML5 Media - <video> & <audio>
Audio and Video on the Web
HTML 5 Tutorial Chapter 1 Introduction.
Dive Into HTML5 - Start Using It Now! Mark Branom, Continuing Studies
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Audio and Video Chapter 10.
More CSS Page layout Boriana Koleva Room: C54
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Giuseppe Attardi Università di Pisa
Creating a Basic Web Page using HTML
Presentation transcript:

More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54

Overview The Box Model Borders Margins and padding Using div tags with the box model HTML5 New features Browser support

The Box Model Each element in a document is considered to be a rectangular box consisting of content area, padding, a border and margins

Borders Every element has a border-style property Controls whether the element has a border and if so, the style of the border border-style values: none, dotted, dashed, and double border-width values: thin, medium (default), thick, or a length value in pixels Border width can be specified for any of the four borders (e.g., border-top-width )

Borders border-color – any color Border color can be specified for any of the four borders (e.g., border-top-color

Margins The space between the border of an element and its neighbor element The margins around an element can be set with margin-left, etc. - just assign them a length value

Padding The distance between the content of an element and its border Controlled by padding, padding-left, etc.

div tags with the box model An example of a two-column page layout Left-column navigation Right-column logo and content

HTML5 new features The video and audio elements for media playback The canvas element for drawing New content specific elements, e.g: article, footer, header, nav, section New form controls, e.g.: calendar, date, time, , url, search Better support for local offline storage

HTML5 Video Until now, there has never been a standard for showing video on a web page Most videos are shown through a plugin (like flash) However, not all browsers have the same plugins HTML5 specifies a standard way to include video, with the video element

Video Formats FormatIEFirefoxOperaChromeSafari OggNo No MPEG 4No WebMNo No Ogg = Ogg files with Theora video codec and Vorbis audio codec MPEG4 = MPEG 4 files with H.264 video codec and AAC audio codec WebM = WebM files with VP8 video codec and Vorbis audio codec

HTML5 Audio So far no standard for playing audio on web page Most audio are played through a plugin (flash) However, not all browsers have the same plugins HTML5 specifies a standard way to include audio, with the audio element The audio element can play sound files, or an audio stream Your browser does not support the audio element.

Audio Formats FormatIE 8 Firefox 3.5 Opera 10.5 Chrome 3.0 Safari 3.0 Ogg Vorbis NoYes No MP3No Yes WavNoYes NoYes

Canvas Element Uses JavaScript to draw graphics on a web page A rectangular area, you control every pixel of it It has several methods for drawing paths, boxes, circles, characters, and adding images Create a Canvas element Add a canvas element to the HTML5 page. Specify the id, width, and height of the element

Canvas Element Draw with JavaScript: var c=document.getElementById("myCanvas"); var cxt=c.getContext("2d"); cxt.fillStyle="#FF0000"; cxt.fillRect(0,0,150,75);

Canvas Element – line example Draw a line by specifying where to start, and where to stop var c=document.getElementById("myCanvas"); var cxt=c.getContext("2d"); cxt.moveTo(10,10); cxt.lineTo(150,50); cxt.lineTo(10,50); cxt.stroke();

New content specific elements New elements for better structure - for external content E.g. text from a news-article, blog, forum, or any other content from an external source - for an introduction of a document or section, could include navigation - for a section of navigation - for a section in a document Such as chapters, headers, footers, etc - for defining a time or a date, or both

New form controls Several new input types for forms allow for better input control and validation - used for input fields that should contain an address The value of the field is automatically validated when the form is submitted url - used for input fields that should contain a URL address The value of the url field is automatically validated when the form is submitted

New form controls HTML5 has several new input types for selecting date and time: date - selects date, month and year month - selects month and year week - selects week and year time - selects time (hour and minute) datetime - selects time, date, month and year (UTC time) datetime-local - selects time, date, month and year (local time)

Browser Support Input type IEFirefoxOperaChromeSafari No 9.0No urlNo 9.0No numberNo No rangeNo Date pickers No 9.0No searchNo 11.0No colorNo 11.0No Opera has the best support for the new input types. However, you can already start using them in all major browsers. If they are not supported, they will behave as regular text fields.

HTML5 Web Storage Two new objects for storing data on the client: localStorage - stores data with no time limit sessionStorage - stores data for one session So far this done with cookies But not suitable for large amounts of data, because they are passed on by every request to the server In HTML5, the data is used only when asked for It is possible to store large amounts of data without affecting the website's performance Data is stored in different areas for different websites, and a website can only access data stored by itself HTML5 uses JavaScript to store and access the data

Browser Support HTML5 is not yet an official standard, and no browser has full HTML5 support Canvas support - Firefox 3.0+, Safari 3.0+, Chrome 3.0+, Opera HTML5 Storage support – IE8+, Firefox 3.5+, Safari 4.0+, Chrome 4.0+, Opera Upcoming Internet Explorer 9 will be supporting most HTML5 features