Useful CSS / CSS3 code snippets to style HTML elements, for page design, and Web Designers.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag renders as emphasized text, displaying the text oblique?
<strong> <pre> <em>
<p>Web development courses: <em>CoursesWeb.net</em></p>
Which CSS property defines the space between the element border and its content?
margin padding position
h3 {
  padding: 2px 0.2em;
}
Click on the method which returns the first element that matches a specified group of selectors.
getElementsByName() querySelector() querySelectorAll()
// gets first Div with class="cls", and shows its content
var elm = document.querySelector("div.cls");
alert(elm.innerHTML);
Indicate the PHP variable that contains data from a form sent with method="post".
$_SESSION $_GET $_POST
if(isset($_POST["field"])) {
  echo $_POST["field"];
}
CSS Code Snippets

Last accessed pages

  1. Animation of HTML elements with CSS (10)
  2. SHA256 Encrypt hash in JavaScript (5668)
  3. Create Table in MySQL Database and Insert data (90)
  4. Recursive function to create Multi-Level Menu in PHP (6863)
  5. Redirects (454)

Popular pages this month

  1. Read Excel file data in PHP - PhpExcelReader (369)
  2. Register and show online users and visitors (343)
  3. PhpSpreadsheet - Read, Write Excel and LibreOffice Calc files (311)
  4. Insert, Select and Update NULL value in MySQL (247)
  5. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (244)