Zajímavosti spojené s tvorbou webových stránek

How to fill container with video delivered via iframe

How to deal with video that is delivered via iframe so it 100% fills it’s container

There are lots of ways to display video on your website. One of them is using <iframe> to embed media such as YouTube, Vimeo or any other video provider that provides <iframe> code to display relevant video. This method normally works well but video embedded via <iframe> has normally set static width and height which is not very good for responsive design.

Číst celý článek
Whats the difference between async vs defer attributes

What’s the difference between async vs defer attributes

According to https://caniuse.com/ website, async and defer attributes for the <script> element have great support and I think it might be a good time to learn what they do and how to use them. JavaScript is considered a “parser blocking resource” causing blocking of HTML parsing. Thankfully, the latest technologies such as HTML5 gives you 3 ways to tell browser when to run JavaScript code.

Číst celý článek
How to manage mysql databases and mysql users from command line

How to manage MySQL databases and MySQL users from the command line

MySQL is popular an open source database management software that helps users store, organize and retrieve data using Structured Query Language (SQL). SQL is the most popular language for adding, accessing and managing content in a database. MySQL can be used to retrieve information from databases underpinning CMS systems, forums, galleries, blogs, shopping carts and many others.

Číst celý článek
Protect wordpress from xml rpc attack

Protect WordPress site from XML-RPC attack

XML-RPC is a remote procedure call which uses XML to encode its calls and HTTP as a transport mechanism. It is a system that allows you to make posts to your WordPress blog using weblog clients. This means if you want to access and publish new content to your website remotely, you need XML-RPC enabled. XML-RPC functionality was disabled by default in earlier WordPress versions, mainly due to security concerns.

Číst celý článek