html meta tags description code example

Example 1: meta description

<meta name="description" content="A page's description, usually one or two sentences."/>

Example 2: meta description

<meta name="description" content="Full Stack Web Developer Portfolio. Front-end & Back-end Web Developer based
in Berlin, Germany. Tech stack include React, JavaScript, Node, SQL.">

Example 3: meta tag

The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data.

<meta> tags always go inside the <head> element, and are typically used to specify character set, page description, keywords, author of the document, and viewport settings.

Metadata will not be displayed on the page, but is machine parsable.

Metadata is used by browsers (how to display content or reload page), search engines (keywords), and other web services.

There is a method to let web designers take control over the viewport (the user's visible area of a web page), through the <meta> tag (See "Setting The Viewport" example below).

Tags:

Html Example