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 is used in <table> to create table header cell?
<thead> <th> <td>
<table><tr>
  <th>Title 1</th>
  <th>Title 2</th>
</tr></table>
Which CSS property sets the distance between lines?
line-height word-spacing margin
.some_class {
  line-height: 150%;
}
Which function opens a new browser window.
alert() confirm() open()
document.getElementById("id_button").onclick = function(){
  window.open("http://coursesweb.net/");
}
Indicate the PHP function that returns an array with names of the files and folders inside a directory.
mkdir() scandir() readdir()
$ar_dir = scandir("dir_name");
var_export($ar_dir);
CSS Code Snippets

Last accessed pages

  1. Select in MySQL, Output results in HTML Table (10735)
  2. PHP PDO - Select query, fetch (22876)
  3. Dynamic variables in JavaScript (11777)
  4. JavaScript Course - Free lessons (17700)
  5. jQuery Drag and Drop Rows between two similar Tables (8843)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (2139)
  2. Contact page - CoursesWeb (2073)
  3. Tabs effect with CSS (2073)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (677)
  5. Insert, Select and Update NULL value in MySQL (536)