aria-label="Twitter" attribute on a tag<a href="<?=$hostname?>" aria-label="Sibrdzne" class="bg-logo"></a>CSS /* Fix to pass Lighthouse: */
.label-hidden {
position: absolute;
height: 1px;
width: 1px;
clip: rect(1px,1px,1px,1px);
border: 0;
overflow: hidden
}Another solution to the problem:/* Fix to pass Lighthouse: */
label-hidden {
position: absolute;
top:-1000px;
left:-1000px;
}preconnect or dns-prefetch resource hints to establish early connections to important third-party origins.
For example to pre-connect google analytics: https://www.google-analytics.com we should include rel attribute with preconnect value:<link rel="preconnect" href="https://www.google-analytics.com" crossorigin> in head taginterface IMusician {
public function play();
}
class Guitarist implements IMusician {
public function play() {
echo "playin a guitar";
}
}In this example Guitarist child class has to define play() method because the child class implements interface IMusician that has the method signatureabstract class Fruit {
private $color;
abstract public function eat();
public function setColor($c) {
$this->color = $c;
}
}
class Apple extends Fruit {
public function eat() {
echo "Omnomnom";
}
}
$obj = new Apple();
$obj->eat();In this example an interface would not be able to have method with definition, only method signatures are allowed in interfacesclass myClass {
static $myStaticProperty = 42;
}
echo myClass::$myStaticProperty;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();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)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- Drag and Drop
- Audio and Video
- Offline Web Applications
- History
- Local Storage
- Geolocation
- Web Messaging