Skip to main content

Questions tagged [meta-tags]

The HTML meta element provides a means to add various kinds of metadata to an HTML document.

meta-tags
1661 votes
8 answers
1.2m views

<meta charset="utf-8"> vs <meta http-equiv="Content-Type">

In order to define charset for HTML5 Doctype, which notation should I use? Short: <meta charset="utf-8" /> Long: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
CuriousMind's user avatar
372 votes
23 answers
812k views

Force browser to clear cache

Is there a way I can put some code on my page so when someone visits a site, it clears the browser cache, so they can view the changes? Languages used: ASP.NET, VB.NET, and of course HTML, CSS, and ...
Adam's user avatar
  • 9,419
215 votes
19 answers
475k views

Force to open "Save As..." popup open at text link click for PDF in HTML

I have some big size PDF catalogs at my website, and I need to link these as download. When I googled, I found such a thing noted below. It should open the "Save As..." popup at link click... <...
designer-trying-coding's user avatar
173 votes
20 answers
323k views

Is it possible to use JavaScript to change the meta-tags of the page?

If I put a div in the head and display:none, than use JavaScript to display it, will this work? Edit: I have stuff loaded in AJAX. And as my AJAX changes the "main" portion of the site, I want to ...
TIMEX's user avatar
  • 268k
352 votes
24 answers
523k views

Provide an image for WhatsApp link sharing

How can we include an image in our website to display in WhatsApp when we share a link like this?
maxdaniel98's user avatar
  • 6,893
68 votes
22 answers
151k views

Getting title and meta tags from external website

I want to try figure out how to get the <title>A common title</title> <meta name="keywords" content="Keywords blabla" /> <meta name="description" content="This is the description"...
MacMac's user avatar
  • 35k
147 votes
28 answers
311k views

Showing Thumbnail for link in WhatsApp || og:image meta-tag doesn't work

Tried to follow this question : Provide an image for WhatsApp link sharing I have created a simple HTML webpage with the basic Facebook metatags: <!--FACEBOOK--> <meta property="og:...
JesuLopez's user avatar
  • 1,565
251 votes
25 answers
290k views

How do I get the information from a meta tag with JavaScript?

The information I need is in a meta tag. How can I access the "content" data of the meta tag when property="video"? HTML: <meta property="video" content="http://video.com/video33353.mp4" />
supercoolville's user avatar
77 votes
19 answers
303k views

How to start automatic download of a file in Internet Explorer?

How do I initialize an automatic download of a file in Internet Explorer? For example, in the download page, I want the download link to appear and a message: "If you download doesn't start ...
Pop Catalin's user avatar
  • 62.6k
6 votes
1 answer
9k views

Which are the standard W3C meta tags?

What are the list of standard meta tags defined in W3C other than the below given at http://www.w3.org/wiki/HTML/Elements/meta <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /...
fn79's user avatar
  • 303
93 votes
7 answers
159k views

What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?

I was going through the source code of a website and found this piece of code. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-...
user avatar
52 votes
5 answers
64k views

Generating Facebook Open Graph meta tags dynamically

As the title implies I'm trying to generate Facebook Open Graph meta tags dynamically, but I can't get it working. Is it even possible? UPDATE: Finally I got it working with the help of @saccharine. ...
borisdiakur's user avatar
  • 11.5k
169 votes
6 answers
137k views

Is it possible to use jQuery to read meta tags

Is it possible to use jQuery to read meta tags. If so do you know what the basic structure of the code will be, or have links to any tutorials.
Ankur's user avatar
  • 50.8k
61 votes
6 answers
180k views

How to add meta tag in JavaScript

I want to add <meta http-equiv="X-UA-Compatible" content="IE=edge"> for a particular page. But my pages are rendered inside one HTML tag. Only the content is changing on clicking different ...
Snehanjali Sahoo's user avatar
29 votes
7 answers
37k views

Angular 4 - Update Meta tags dynamically for Facebook (Open graph)

How do we add/update meta tags dynamically so that they get picked by Facebook/Whatsapp share dialog? I upgraded my angular 2 application to angular 4 in order to use Meta service to add/update meta ...
Ali Baig's user avatar
  • 3,857

15 30 50 per page
1
2 3 4 5
20