Tuesday, 25 November 2014

HTML5

HTML5 is a markup language, has been come into existence around January 2008.

<!DOCTyPE html> 

DOCTYPE is such an element, which tells the browser about the html ver- sion.

<aside> Defines content aside from the page content

<audio> Defines sound content
 <bdi> Isolates a part of text that might be formatted in a different direction from other text outside it
<canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript)
<command> Defines a command button that a user can invoke
 <datalist> Specifies a list of pre-defined options for input controls
<defines> article an article
<details> Defines additional details that the user can view or hide
<embed> Defines a container for an external application or interactive content (a plug-in)
<figure> Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
<figcaption> Defines a caption for a <figure> element
 <footer> Defines a footer for a document or section
<header> Defines a header for a document or section
<hgroup> Groups a set of <h1> to <h6> elements when a heading has multiple levels
<keygen> Defines a key-pair generator field (for forms)
<mark> Defines marked/highlighted text
<meter> Defines a scalar measurement within a known range (a gauge)
<nav> Defines navigation links
 <output> Defines the result of a calculation
<progress> Represents the progress of a task
<ruby> Defines a ruby annotation (for East Asian typography)
<rt>Defines an explanation/pronunciation of characters (for East Asian typography)
<rp> Defines what to show in browsers that do not support ruby annotations
<section> Defines a section in a document
<source> Defines multiple media resources for <video> and <audio>
<summary> Defines a visible heading for a <details> element
<track> Defines text tracks for <video> and <audio> <time> Defines a date/time <video> Defines a video or movie
<wbr> Defines a possible line-break


Audio Example:
 <audio controls>
 <source src="media/simple_audio.mp3" type="audio/mpeg"/> 
 <source src="media/simple_audio.ogg" type="audio/ogg"/> 
<p>not support the audio element</p>
 </audio>

<keygen name=”key”>
 The KEYGEN Element is commonly used for generating the keypair in the form. Whenever user hit the submit button, the KEYGEN Element creates two key pair, first one is Public Key and another one is Private Key. Private key is encrypted and stored in local key database and the public key is sent with the form data to server. The KEYGEN Element is most useful when user wants to generate the unique key for a particular form.
exmple:
 <form action="keygen.php" method="post">         
 Username: <input type="text" name="text"> 
 Encryption: <keygen name="key">
 <input type="submit">
</form> 

No comments:

Post a Comment