Html Course

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.


<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Page title</title>
<meta name="description" content="A short phrase that describes the content of the page" />
<meta name="keywords" content="list of words, separated by, comma" />
<meta name="abstract" content="Short description of page" />
<meta name="language" content="es" />
<meta name="author" content="Author Name" />  

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.


Here is an example of an HTML document with these meta-tags:
<!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 redirect

The meta-redirect tag (meta refresh) cause the visitor's browser to load a new web page after a given number of seconds.
<meta http-equiv="refresh" content="4;url=https://coursesweb.net/html/" />
The code above will redirect the visitor to the "coursesweb.net/html/" page, after 4 seconds.
- Although setting the interval to 0 or a very short time will make the redirect almost undetectable but it is not advised b the 3WC because it can cause problems if the user hits the "Back" button.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to add definition lists into a <dl> element?
<dt> <dd> <li>
<dl>
 <dt>HTML</dt>
  <dd> - Hyper Text Markup Language</dd>
  <dd> - Language for web pages</dd>
</dl>
Which CSS property can hide an element on page, letting an empty space in its place?
display position visibility
#id {
  visibility: hidden;
}
Click on the event which is triggered when the mouse clicks on an object.
onclick onmouseover onfocus
document.getElementById("id").onclick = function(){
  alert("http://CoursesWeb.net/");
}
Indicate the PHP variable that contains the contents of both $_GET, $_POST, and $_COOKIE arrays.
$_SESSION $_GET $_REQUEST
if(isset($_REQUEST["id"])) {
  echo $_REQUEST["id"];
}
HTML Meta tags for search engines

Last accessed pages

  1. The Four Agreements (1795)
  2. jQuery Drag and Drop Rows between two similar Tables (13006)
  3. Star shapes with CSS (11320)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (144088)
  5. Split number - Get each character from number (961)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (536)
  2. CSS cursor property - Custom Cursors (74)
  3. Read Excel file data in PHP - PhpExcelReader (50)
  4. PHP-MySQL free course, online tutorials PHP MySQL code (46)
  5. PHP Unzipper - Extract Zip, Rar Archives (46)
Chat
Chat or leave a message for the other users
Full screenInchide