By Vijay Shivakumar: Trainings
By Vijay Shivakumar: Trainings
com
Requirements …
IDEs
Aptana Studio 3.0 from www.aptana.com
Visual Studio code from https://code.visualstudio.com
Atom or WebStorm
Browsers
Chrome, Firefox with firebug, Opera, IE (latest versions)
Web Servers (note : only if you are not using Aptana)
Tomcat or IIS or WAMP
http://w3.org/TR/2005/WD-xhtml2-20050527/
<!DOCTYPE html>
<meta http-equiv="Content-Type“
content="text/html; charset=utf-8" />
<meta charset=“utf-8”>
<script type="text/javascript">
<script>
NAV
MAIN HEADER
HEADER
ASIDE
SECTION
ARTICLE
ARTICLE
ARTICLE
FOOTER
By Vijay Shivakumar http://www.technicaltrainings.com
HTML5 Semantics not
supported in your browser ?
HTML5SHIV
https://github.com/aFarkas/html5shiv
HTML5 BOILERPLATE
http://html5boilerplate.com
Modernizr
http://modernizr.com
<!--[if lt IE 9]>
<script src=“script/dist/html5shiv.js”><script>
<![endif]-->
required
min
max attributes for validation
step
pattern
Support
Support
webM
Support
Supported
Grrr….
getCurrentPosition()
attempts to get the current location of the user asynchronously
watchPosition()
starts monitoring the location of a user at an interval.
clearWatch()
stops monitoring the location of a user
Has 3 sections
CACHE:
NETWORK:
FALLBACK:
These sections can be listed in any order and each section can appear
more than once in a single manifest.
CACHE MANIFEST
The only required line in the file
CACHE:
The default section declares all the files that will
be stored for offline usage.
Each file needs to be mentioned in a separate line
Once cached the files will always be fetched from
browser cache not from the server.
NETWORK:
Shows all the files that need network access to
work.
Can take wildcards to represent multiple files and
directories. ( * )
otherwise the network isn't used, even if the user
is online
By Vijay Shivakumar http://www.technicaltrainings.com
Offline Browsing API
FALLBACK:
A list of files that can be used in place of requested
files
You can use wildcards ( / ) to create a fallback for
any file that you asked if now cached