Daily Test with Code Example
HTML
CSS
JavaScript
PHP-MySQL
Which attribute specifies the URL address where to send the form-data?
method action name<form action="script.php" method="post"> ... </form>
Which CSS property can be used to break lines in the middle of words?
word-wrap line-height font-size#id {
width: 100px;
word-wrap: break-word;
}
Which function sorts the elements of an array into alphabetical order, based on the string values?
pop() sort() shift()var tutorials = ["php", "html", "css", "flash"];
tutorials.sort();
alert(tutorials[0]); // css
Indicate the function that returns the value of the last element into an array.
current() next() end()$code =[10=>"Perl", 20=>"PHP", 21=>"Python", 30=>"JavaScript");
$last = end($code);
echo $last; // JavaScript