HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.

Slides:



Advertisements
Similar presentations
Introduction to HTML5. History of HTML HTML first published HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 XHTML 2.0 HTML
Advertisements

Iframes & Images Using HTML.
Lecture # 11 JavaScript Graphics. Scalable Vector Graphics (SVG) Scalable Vector Graphics (SVG), as the name implies, are - scalable (without pixelation):
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54
 A markup language  Structures content on the internet  Commonly used by web browsers.
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.
HTML 5 Previous version: HTML4.01, 1999 Still work in progress, most browsers support some of it.
Tim Berners-Lee authors HTML in 1991, assisted by his colleagues at CERN,
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.
Bartosz Kowalski Software Developer CERN. Presentation outline -HTML : introduction and history -HTML5 : -History and philosophy -New features -Structure.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
4.01 Cascading Style Sheets
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Chapter 14 Introduction to HTML
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
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.
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.
HTML5 GAMING By Scott Benton. HTML5 New HTML Standard Previous Version of HTML, HTML 4.01, Released in 1999 Not an Official Standard Yet No Browsers Have.
Director of Computer Center, DaYeh University Ku-Yaw Chang.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
CS 299 – Web Programming and Design Introduction to HTML.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
Session: 17. © Aptech Ltd. 2Canvas and JavaScript / Session 17  Describe Canvas in HTML5  Explain the procedure to draw lines  Explain the procedure.
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.
Element. The element Used to dynamically draw graphics using javascript. Capable of drawing paths, circles, rectangles, text, and images.
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
Graduate School of Library and Information Science LIS 753 Introduction to HTML 5 By: Yijun Gao Week Three.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Presented By Nanda Kumar(972789) P. Trinesh (982816) Sk. Salma (982824) K. Madhuri (982814) HTML5.
Let’s look what flash can do: OK, that wasn’t flash! That was HTML5.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Part – 3 : HTML 5 SVG Tag. † SVG stands for Scalable Vector Graphics. † SVG is used to define vector-based graphics for the Web. † SVG defines the graphics.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
The HTML5 logo was introduced by W3C in 2010
Working with Cascading Style Sheets
HTML 5.
Project 1 Introduction to HTML.
Internet of the Past.
4.01 Cascading Style Sheets
Introduction to HTML.
Inserting and Working with Images
Canvas Notes
HTML 5 Tutorial Chapter 1 Introduction.
Project 1 Introduction to HTML.
Introduction to HTML5.
ISC440: Web Programming II Ch14: HTML5 Canvas
The Canvas.
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Drawing Graphics in JavaScript
Introduction to HTML5.
HTML5 - 2 Forms, Frames, Graphics.
4.01 Cascading Style Sheets
Introduction to HTML5.
JavaScript – Let’s Draw!
Presentation transcript:

HTML 5 (Part 1) – Start from SCRATCH

HTML 5 – Start from SCRATCH

Start from SCRATCH † HTML 5 is cover all the facility and features of HTML. † So why does this HTML 5? There are some things which doesn’t support in HTML. † So we will know now what is the advance facility and coding in HTML 5. † Till now I have read so many posts on HTML 5 uses, more facility and many more things. † But from each article I get just brief overview. † So, decided to learn it and spread the knowledge to others with deep knowledge. † Let us take a deep look and learn HTML 5.

What is HTML 5 ? † In 1999, there are HTML and HTML 4.01 were invented by W3C. † Recently, World Wide Web Consortium (W3C) & the Web Hypertext Application Technology Working Group (WHATWG) invented HTML 5. † Before 2006, WHATWG was working on web forms and application, while W3C was working on XHTML 2.0. † In 2006, they both W3C and WHATWG decided to create new version of HTML, which have combine feature of WHATEG and W3C. † So then HTML 5 is come into existence.

Rules to invent HTML 5 † HTML 5 is the combination of HTML, CSS, DOM(Document Object Model) and JavaScript. † No need of plugin for.mp4 or.swf files. † Mostly scripts replaced by markup language. † It is device independent same like HTML. † The most desirable feature is that the development is visible to public also.

Basic webpage coding in HTML 5 † Let us see the basic HTML 5 web page. † Here you can see the declaration is contain only and the basic required tags of HTML 5.

Basic webpage coding in HTML 5

New and Interesting Features of HTML 5 1. You can draw 2D element with tag. 2. For media playback, you can use two tags and. 3. Some content specific elements are used i. e.,, and. 4. Good form control tags are date, time, , url, calendar and search.

Some tags are removed from HTML 5 † Some elements came in HTML 4.01 are removed in HTML 5 and these are : a) b) c) d) e) f) g) h) i) j) k) l)

The element †It is used to draw graphics on the fly or on the webpage via scripting. †The element is only the container to store the graphics, but you have to use the script to actually draw the graphics. †Canvas has different methods for drawing different shapes like paths, boxes, circles, characters, and adding images. †Note : The browser IE 8 and earlier version do not support element.

The element †It is the rectangular area on the HTML page and specified with element. †By default, it has no border and no content. †How to write canvas code ? †Do not forget to specify id attribute because later it is use to refer into the script. (You may have more than one canvas element on one webpage, so id is become mandatory.) †Define width and height to specify the area of canvas.

The element †Use style attribute to add the border to the canvas.

The element †Let us see full example :

The element †The output look like below :

How to draw on element †The next two lines draw a pink rectangle with width 100 and height 150. †The fillStyle property can be a CSS color, a gradient, or a pattern. The default fillStyle is # (black). †The fillRect(x,y,width,height) method draws a rectangle filled with the current fill style.

How to draw on element †Now let us understand this JavaScript step by step. †The first line after tag, this line finds the element. †Then the next line, call getContext() method. You must pass the “2D” string to the getCotext() method. †getContext(“2D”) is the built in HTML 5 object.

How to draw on element †Now let us understand this JavaScript step by step. †The first line after tag, this line finds the element. †Then the next line, call getContext() method. You must pass the “2D” string to the getCotext() method. †getContext(“2D”) is the built in HTML 5 object.

How to draw on element †Lets see the full example.

How to draw on element †Here is the output.

Coordinates of element †The canvas is a two-dimensional grid. †The upper-left corner of the canvas has coordinate (0,0). So, the fillRect() method above had the parameters (0,0,100,150). †This means : Start at the upper-left corner (0,0) and draw a 100x150 pixels rectangle. †Mouse over the rectangle below to see its x and y coordinates:

HTML 5 (Part 1) – Start from SCRATCH †Here we see how to make and how to draw basic rectangle shape on the canvas. †In the next presentation I will show you how to draw path, circle and write text on the canvas. †To be continued…