- Contact Information
- Privacy Policy
- Social Media Icons
- Terms of Service
- Copyright Information
- Sitemap and Related Documents
Metadata
:
Content that sets up the presentation or behavior of the rest of the content. These elements are found in the head of the document.
Elements:
<base>
, <link>
, <meta>
, <noscript>
, <script>
, <style>
, <title>
Embedded
:
Content that imports other resources into the document.
Elements:
<audio>
, <video>
, <canvas>
, <iframe>
, <img>
, <math>
, <object>
, <svg>
Interactive
Content specifically intended for user interaction.
Elements:
<a>
, <audio>
, <video>
, <button>
, <details>
, <embed>
, <iframe>
, <img>
, <input>
, <label>
, <object>
, <select>
, <textarea>
Heading
Defines a section header.
Elements:
<h1>
, <h2>
, <h3>
, <h4>
, <h5>
, <h6>
, <hgroup>
Phrasing
This model has a number of inline level elements in common with HTML4.
Elements:
<img>
, <span>
, <strong>
, <label>
, <br />
, <small>
, <sub>
, ...- Metadata
- Embedded
- Interactive
- Heading
- Phrasing
- Flow
- Sectioning
Note: The HTML5 content models are designed to make the markup structure more meaningful for both the browser and the web designer
- Drag and Drop
- Audio and Video
- Offline Web Applications
- History
- Local Storage
- Geolocation
- Web Messaging
Date pickers
, color pickers
, and numeric stepper controls
have been added.
- Input field types now include email
, search
, and URL
.
- PUT
and DELETE
form methods are now supportedGET
and POST
as HTTP request methods.
A workaround for this is to tunnel other methods through POST
by using a hidden form field
which is read by the server and the request dispatched accordingly<input type="hidden" name="_method" value="DELETE">
However, GET
, POST
, PUT
and DELETE
are supported by the implementations of XMLHttpRequest (i.e. AJAX calls) in all the major web browsers (IE, Firefox, Safari, Chrome, Opera)class myClass {
final function myFunction() {
echo "Parent";
}
}
// ERROR because a final method cannot be overridden in child classes.
class myClass2 extends myClass {
function myFunction() {
echo "Child";
}
}
The above code will generate the following error:Fatal error: Cannot override final method myClass::myFunction() in /home/user/scripts/code.php on line 9
final class A {
final public static function who() {
echo __CLASS__;
}
}
class B extends A {
}
B::who();
Fatal error: Class B may not inherit from final class (A)
self
keyword is needed to access a static property from a static method in a class definitionclass myClass {
static $myProperty = 42;
static function myMethod() {
echo self::$myProperty;
}
}
myClass::myMethod();
class myClass {
static $myStaticProperty = 42;
}
echo myClass::$myStaticProperty;