The <meta> tag provides information (or metadata) about the HTML document.
The <meta> tags should be placed within the head of the HTML document, they are not displayed on the page.
The "Meta" elements are generally used to enable search engines to determine the contents of your web pages and catalog them correctly.
There are many types of meta elements, which are specified by the "name" attribute. Here will be presented a few of them, the most useful meta-tags used for page indexing optimization in search engines.
The words in the <title> tag is better to be found in the "keywords" and "description" meta tags, also in the headings (<h1>, <h2>) of the page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Web courses HTML CSS PHP-MySQL JavaScript Ajax Flash</title> <meta name="language" content="en" /> <meta name="description" content="Free online courses and tutorials for web developers: HTML, CSS, PHP-MySQL, JavaScript, Ajax and Flash" /> <meta name="keywords" content="courses, html, css, php, mysql, javascript, ajax, flash" /> <meta name="abstract" content="Free online courses and tutorials for web developers" /> <meta name="author" content="MarPlo" /> </head> <body> ... Contents that appear in the webpage coursesweb.net ... </body> </html>
<meta http-equiv="refresh" content="4;url=http://coursesweb.net/html/" />The code above will redirect the visitor to the "coursesweb.net/html/" page, after 4 seconds.
<img src="http://coursesweb.net/imgs/webcourses.gif" width="191" height="63" alt="Courses-Web" />
#id { font-style: italic; }
$(document).ready(function() { $(".a_class").click(function(){ $(this).hide("slow"); }); });
function fname($a, $b) { echo $a * $b; }