The metadata means the information about data. The <meta> tag in HTML provides information about HTML document or in simple words, it provides important information about a document. These tags are basically used to add name/value pairs to describe properties of HTML documents, such as expiry date, author name, list of keywords, document author, etc.
A web document can include one or more meta tags depending on information, but in general, it doesn’t affect the physical appearance of the document.
In this article, we will set the name attribute for metadata using the HTML name Attribute.
Syntax:
<meta name="value">
Example: In this example, we will use <meta> tag.
HTML
<!DOCTYPE html>
< html >
< head >
< meta charset = "utf-8" name = "viewport"
content = "width=device-width, initial-scale=1.0" >
</ head >
< body >
< h1 style = "color: green;" >
GeeksforGeeks
</ h1 >
< h3 >
How to set a name for
the metadata HTML5?
</ h3 >
< p >
Prepare for the Recruitment drive
of product based companies like
Microsoft, Amazon, Adobe etc with
a free online placement preparation
course. The course focuses on various
MCQ's & Coding question likely
to be asked in the interviews &
make your upcoming placement season
efficient and successful.
</ p >
</ body >
</ html >
|
Output:

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!