Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute indicates that an input field must be filled out before submitting?
required="required" autofocus="autofocus" placeholder="text"
<input type="text" name="name1" required="required" />
Which CSS method increases or decreases the size of the HTML element (including its content)?
translate() scale() skew()
#some_id:hover {
  transform: scale(2, 1.5);
  -ms-transform: scale(2, 1.5);    /* IE 9 */
  -moz-transform: scale(2, 1.5);   /* Firefox */
}
Click on the Date object method that returns the day of the month.
setDate() getMonth() getDate()
var rightnow = new Date();
var day = rightnow.getDate();
alert(day);
Which function is used to upload a file on server?
is_file() move_uploaded_file() fopen()
if(move_uploaded_file($_FILES["field_name"]["tmp_name"], "dir/file_name")) {
  echo "The file succesfully uploaded";
}

Last accessed pages

  1. HTML - XHTML Online Video Course and Tutorials (773)
  2. CSS Course - Free lessons (3954)
  3. HTML Course - Free Lessons (3601)
  4. Functions with Object and Array arguments (733)
  5. $_GET, $_POST and $_REQUEST Variables (9920)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (16440)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (16059)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (15358)
  4. Ajax-PHP Chat Script (13567)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (13532)