Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Meta Description + &

Tags:

html

which of the following should I use in the meta description tag:

 &
 &

eg:

 <meta name="description" content="text text & text...">
 <meta name="description" content="text text &amp; text...">
like image 208
Adam Avatar asked Jan 07 '12 01:01

Adam


People also ask

What is meta description in HTML?

A meta description is an HTML element that provides a brief summary of a web page. A page's meta description tag is displayed as part of the search snippet in a search engine results page (SERP) and is meant to give the user an idea of the content that exists within the page and how it relates to their search query.

How do you add meta description in HTML?

<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.

What is meta description example?

A meta description is the promise you make to searchers. Among a sea of competing webpages, it calls out to them and says, “This is the page you're looking for.” When you type a search query into Google—let's use “temporary tattoos” as an example—the algorithm displays results on the search engine results page (SERP).

What are examples of metadata in HTML?

It contains information such as the page <title> , links to CSS (if you choose to style your HTML content with CSS), links to custom favicons, and other metadata (data about the HTML, such as the author, and important keywords that describe the document).


2 Answers

You should HTML encode the value, like every value that you put in an HTML attribute.

<meta name="description" content="text text &amp; text...">
like image 64
Guffa Avatar answered Sep 29 '22 12:09

Guffa


You shouldn't be using "&" at all. Google and most other search engines ignore symbols, so your best bet would be using the word "and."

like image 20
blake305 Avatar answered Sep 29 '22 11:09

blake305