Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which type of <input> creates input fields that should contain a numeric value?
type="text" type="number" type="date"
<input type="number" name="points" min="5" max="80" />
Which CSS property allows to change the transparency of an element?
font-style opacity color
#id {
  filter:alpha(opacity=40);    /* for IE */
  opacity:0.4;
}
Click on the function that formats a number to specified number of characters.
toPrecision() exp() toFixed()
var num = 12.34567;
alert( num.toPrecision(3) );       // 12.3
Which function randomizes the order of the elements into an array?
natsort() shuffle() sort()
$lang = array(10=>"PHP", 20=>"JavaScript", "site"=>"coursesweb.net");
shuffle($lang);
var_export($lang);     // array (0=>"coursesweb.net", 1=>"PHP", 2=>"JavaScript")

Last accessed pages

  1. Master Of The Secret Sea (42)
  2. JavaScript code and PHP (6191)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (15150)
  4. PHP-MySQL free course, online tutorials PHP MySQL code (16208)
  5. OOP - Constants, Static Properties and Methods (1402)

Top accessed pages

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