Results: 1580
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
Solution to the problem - to use
aria-label="Twitter"
attribute on
a
tag
<a href="<?=$hostname?>" aria-label="Sibrdzne" class="bg-logo"></a>
by Valeri Tandilashvili
4 years ago
0
HTML
lighthouse
1
Solution to the problem was to add labels for the inputs but hidden by
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; 
}
by Valeri Tandilashvili
4 years ago
0
HTML
lighthouse
1
Problem: Consider adding
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
tag
by Valeri Tandilashvili
4 years ago
0
HTML
lighthouse
1
Guitar implements IMusician interface
interface 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 signature
by Valeri Tandilashvili
4 years ago
0
PHP
OOP
1
abstract 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 interfaces
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
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
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
- 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
- Drag and Drop
- Audio and Video
- Offline Web Applications
- History
- Local Storage
- Geolocation
- Web Messaging
by Valeri Tandilashvili
4 years ago
0
HTML
1
Results: 1580