<Meta> and <Embed> Tags in HTML

This meta and embed tags in HTML providing complete information about the use of meta tags and how it helps for a search engine to identify the website and embed tag is used to embed video player and audio player into the HTML page.


 

<meta>:

  • Used to provide the keywords to the search engines by which Search engine identify the website which is on the server.
  • Using meta tag, we can provide the description of the webpage.
  • We can also provide the auto refresh option to the web page.

 

Syntax to provide keywords to the search engine:
<meta name=”keywords” content=”online search, google, google home, google India”>

Syntax to provide the description:
<meta name=”description” content=”description text”>

Syntax to auto refreshing:
<meta http-equiv=”refresh” content=”5″>

  • By using this element we can provide the auto refresh option in the web page.
  • By using “content” attribute we can set the time interval.

<!DOCTYPE html>
<html>
<head>
<meta http-equiv=”refresh” content=”7″ scrollamount=”30″>
</head>
<body bgcolor=”cyan”>
<h1><marquee>Welcome</marquee></h1>
</body>
</html>

 

<embed>:

  • By using this tag we can embed the external “plugins” like media player control, flash player control etc., on the web page.
  • Based on the source file, this element embeds that relevant plugin on the web page.
  • Some of the browsers unable to recognize the plug in from the system results error.

<!DOCTYPE html>
<html>
<body bgcolor=”cyan”>
<embed src=”C:/Users/welcome/Desktop/source.avi”>
</body>
</html>

 

<!DOCTYPE html>
<html>
<body bgcolor=”cyan”>
<embed src=”……source.avi” autoplay=”false” loop=’false’ width=’500′ height=’500′>
</body>
</html>


Next Topic:    Apply Colors to the Hyperlinks

Share this