HTML (meta tags and meta description)
META TAGS
Meta tags are HTML elements located within the
<head>
section of a web document that provide metadata about the page. Metadata is data that describes other data about the page. It helps search engines and browsers to understand hoe to handle or display a content. These <meta> tags are not directly displayed to the user but it plays a vital role for browsers as well as search engines, and other web services to understand and process the content.Common Attributes of Meta Tags:
charset
: It specifies the character encoding for the HTML document, such asUTF-8
.content
: It contains the value associated with thehttp-equiv
orname
attribute.http-equiv
: Provides an HTTP header for the information in thecontent
attribute, mimicking HTTP response headers (e.g.,refresh
for page redirection).name
: Specifies a name for the metadata, used in conjunction with thecontent
attribute to provide name-value pairs (e.g.,description
,keywords
,author
,viewport
,robots
).
Meta Description:
The meta description is a specific type of meta tag defined using the
name="description"
attribute. It provides a concise summary of the webpage's content. Search engines may use this description in search results snippets, influencing user click-through rates.<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="description" content="This is a page briefing us about (HTML)meta tags used for SEO rankings. "> <meta name="keywords" content="HTML meta tags, meta descriptions, meta attributes,meta tags for SEO rankings"> </head> </html>
Comments
Post a Comment