This is the follow-up of the post “What I learned while preparing for the Microsoft 70-480 exam“. Here, I want to share what I found interesting with HTML5 while preparing for the exam.
HTML 5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and current major version of the HTML standard, and subsumes XHTML.
- DOCTYPE declaration for HTML5 <!DOCTYPE HTML5 >
- Few HTML5 apis
- HTML Geolocation
- HTML Drag and Drop
- HTML Local Storage
- HTML Web Workers
- HTML Web Sockets
- The HTML < meta > element represents metadata that cannot be represented by other HTML
- Form submission elements are
<textarea>, <select>, <input>, and <button>
- Use a <button type=’submit’>, <input type=’submit’>, or <input type=’image’> to submit a form.
- The <output> tag represents the result of a calculation
- Video format .ogv .webm .mp4
- Audio formats .oga, .ogg, .mp3, .mp4, .wav
- draggable attribute has three value: true|false|auto(default)
- the storage limit for Microsoft Edge web storage.
- Subdomains: up to 5 MBs of space
- Domains: up to 10 MBs of space
- Total for all domains: up to 50 MBs of space
- <input type=’date’> A date-only control (no time).
- <input type=’datetime’> A date and time control based on the UTC time zone.
- input type=’datetime-local’> A date and time control (no time zone).
- <input type=’month’> A month and year control.
- <input type=’range’> A control for entering a numeric value when the exact value is not important. On newer browsers, this renders as a slider control and is commonly referred to as a slider control. This control has a value attribute, which is the current slider value. The min attribute is the minimum settable value (default is 0). The max attribute is the maximum settable value (default is 100). The step attribute defines the granularity of the value, which is the amount of change the value will have as the slider moves (default is 1). The step attribute must be an int unless the min value is set to a non-int value.
- <input type=’reset’> A button that resets all form values to default values; note that this does not send data when the form is submitted.
- <input type=’search’> A text field for entering a search string.
- name attribute does not need to be unique. If you have multiple form submission elements with the same name, they will submit as an array.
- SVG stands for Scalable Vector Graphics
- SVG is used to define vector-based graphics for the Web
- SVG defines the graphics in XML format
- Every element and every attribute in SVG files can be animated
- is an open standard
- graphics do NOT lose any quality if they are zoomed or resized
- can be
- created and edited with any text editor
- searched, indexed, scripted, and compressed
- printed with high quality at any resolution
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
<svg height="30" width="200"> <text x="0" y="15" fill="red">I love SVG!</text> </svg>
No z-order in SVG so you must re-arrange elements in DOM
- Canvas Manipulates Pixels
- width and height attributes can be defined with the element
- Canvas should be used for complex calculations
- HTML5 semantic elements provide the mechanisms necessary to structure the page more easily for accessibility via screen readers.
- Search engines take advantage of HTML5 semantics by leveraging the
element to determine the purpose of the page.
- If you have h1 elements in nested sections they get smaller and smaller, like h2 and h3
- New iframe attributes: sandbox and seamless
- Please check my previous post regarding HTML5 Semantic Elements
This post does not include all about HTML5 elements that you need to know before you sit for 70-480. HTML5 elements have many more things to learn. I believe this list will help you to remember a few cool pieces of stuff about HTML5 elements. And don’t forget to check HTML5 Semantic Elements post.