PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

javascript get meta description

document.querySelector('meta[name="description"]').content

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

BETA Snippet explanation automatically generated by OpenAI:

Here is what the above code is doing:
1. Find the meta tag with the name attribute set to description.
2. Return the content attribute of that tag.
"""

# Now let's take a look at what we've done.
#
# We will use the `print()` function to

Snippet By Tony Lea

ยท

Created June 6th, 2021

ยท

Report Snippet