Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
The following information is usually provided between these tags:
- Contact Information
- Privacy Policy
- Social Media Icons
- Terms of Service
- Copyright Information
- Sitemap and Related Documents
by Valeri Tandilashvili
4 years ago
0
HTML
tags
1
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>
, ...
by Valeri Tandilashvili
4 years ago
0
HTML
1
In HTML, elements typically belonged in either the block level or inline content model. HTML5 introduces seven main content models
- 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
by Valeri Tandilashvili
4 years ago
0
HTML
1
- Drag and Drop
- Audio and Video
- Offline Web Applications
- History
- Local Storage
- Geolocation
- Web Messaging
by Valeri Tandilashvili
4 years ago
0
HTML
1
- The Web Forms 2.0 specification allows for creation of more powerful forms and more compelling user experiences. -
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 supported
by Valeri Tandilashvili
4 years ago
0
HTML
1
HTML forms only support
GET
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)
by Valeri Tandilashvili
4 years ago
0
HTML
1
This example demonstrates that a final method cannot be overridden in a child class
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
by Valeri Tandilashvili
4 years ago
0
PHP
3
Child class can not extend final class
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)
by Valeri Tandilashvili
4 years ago
0
PHP
OOP
2
The
self
keyword is needed to access a static property from a static method in a class definition
class myClass {
    static $myProperty = 42;
    static function myMethod() {
        echo self::$myProperty;
    }
}

myClass::myMethod();
by Valeri Tandilashvili
4 years ago
0
PHP
OOP
1
A static property or method is accessed by using the scope resolution operator :: between the class name and the property/method name
class myClass {
   static $myStaticProperty = 42;
}

echo myClass::$myStaticProperty;
by Valeri Tandilashvili
4 years ago
0
PHP
OOP
1
Results: 1578