Daily Test with Code Example

Which attribute is used in <a> tag for the address of the link?
src href rel
<a href="http://coursesweb.net/" title="CoursesWeb.net">CoursesWeb.net</a>
Which CSS property sets the type of the text font?
font-family text-decoration font-size
h2 {
What instruction selects all the <div> tags with class="cls"?
querySelector("div.cls") getElementsByTagName("div") querySelectorAll("div.cls")
var elm_list = document.querySelectorAll("div.cls");
var nr_elms = elm_list.length;       // number of selected items
Indicate the function that can be used to get the sum of values in an array.
array_sum() array_diff() array_shift()
$arr = array(1, 2, 3, 4);
$arr_sum = array_sum($arr);
echo $arr_sum;       // 10

Last accessed pages

  1. Drag and Drop with jQuery UI (487)
  2. XMLHttpRequest object (215)
  3. jQuery Ajax - load() method (815)
  4. Volume and Surface Area Calculator for 3D objects (402)
  5. PHP Simple HTML DOM Parser (418)

Top accessed pages

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