How-to articles, tricks, and solutions about HTML
In PHP, you can use the $_FILES array to check the size of an uploaded file.
To create an HTML form that submits an array as a form parameter, you can use the name attribute of the input element and give it a value in the form of an array.
Learn how to create an HTML5 page step by step. From doctype to different sections. See syntax and examples and practice yourself.
There are a few different ways you can embed PHP code inside HTML.
Learn about mostly usedLearn about mostly used input types which are used when creating HTML Forms. See Syntax and examples. input types which are used when creating HTML Forms. See Syntax and examples.
In this snippet, learn whether it’s possible to nest a <button> tag within an <a> in HTML5. To have a button linking to somewhere, you need an alternative solution.
In this snippet, you will learn whether it is possible to use an HTML <span> element within another element. Read this tutorial and find the answer to this question.
In this snippet, you will find out why it is not possible to apply CSS @media rules inline. Read this snippet to learn how to apply them in the internal style.
Read this tutorial and learn detailed information about some simple and fast techniques that are used to decrease image loading time using JavaScript.
PHP is a programming language that is often used to build web applications.
To get the selected text of a combo box (also known as a dropdown menu or select box) in PHP, you can use the following code:
To stay on the same page after a form submission in PHP, you can use the following steps.
Yes, that is one way to output the value of a PHP variable in HTML.
In PHP, you can use the preg_match() function to extract the string value of an HTML tag.
To remove HTML tags from a string, you can use a regular expression to match and replace the tags with an empty string.
To send HTML form data to a SQL database using PHP, you will need to use the mysqli (MySQL Improved) extension in PHP.
In PHP, you can access the value of a submit button when a form is posted in the following way:
To set the value of a POST variable in PHP, you can use the following code:
Here is an example of how to submit an HTML table data via a form (using the POST method) using PHP:
This issue is likely caused by a mismatch between the character encoding used by the source of the text (e.g.
In this snippet, we will introduce what is the subsequent-sibling combinator (~), why and how it is used. Try some examples to have a better understanding of it.
In this snippet, you can learn what is aria label, as well as when and how it can be used. Read our tutorial and find examples of using the aria-label attribute.
In this snippet, we’re going to explain the differences between the <b> and <strong>, <i> and <em> tags. Find out the differences and use them correctly.
Read this snippet to find out the differences between the HTML <section> and <div> elements and see which element to use in some specific situations.
In this snippet, we’re going to discuss the differences between the “id” and “name” attributes, after which you’ll make a better decision of their usage.