Can I have an onclick effect in CSS?

The closest you’ll get is :active: However this will only apply the style when the mouse button is held down. The only way to apply a style and keep it applied onclick is to use a bit of JavaScript.

What does enctype=’multipart/form-data’ mean?

When you make a POST request, you have to encode the data that forms the body of the request in some way. HTML forms provide three methods of encoding. application/x-www-form-urlencoded (the default) multipart/form-data text/plain Work was being done on adding application/json, but that has been abandoned. (Other encodings are possible with HTTP requests generated using other means … Read more

What does do?

This answer was posted several years ago and now the question really should be should you even consider using the X-UA-Compatible tag on your site? with the changes Microsoft has made to its browsers (more on those below). Depending upon what Microsoft browsers you support you may not need to continue using the X-UA-Compatible tag. If you need to support IE9 … Read more

How do I vertically center text with CSS?

You can try this basic approach:  Run code snippetExpand snippet It only works for a single line of text though, because we set the line’s height to the same height as the containing box element. A more versatile approach This is another way to align text vertically. This solution will work for a single line … Read more

How to play audio?

If you don’t want to mess with HTML elements: Show code snippet This uses the HTMLAudioElement interface, which plays audio the same way as the <audio> element. If you need more functionality, I used the howler.js library and found it simple and useful. Show code snippet

Why does z-index not work?

The z-index property only works on elements with a position value other than static (e.g. position: absolute;, position: relative;, or position: fixed). There is also position: sticky; that is supported in Firefox, is prefixed in Safari, worked for a time in older versions of Chrome under a custom flag, and is under consideration by Microsoft to add to their Edge browser.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)