How to define metadata about an HTML document in HTML5 ? Last Updated : 02 Jun, 2023 Comments Improve Suggest changes Like Article Like Report 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. In this article, we will see how to set the metadata about an HTML document by using the HTML <Meta> Tag. Syntax: <meta attribute-name="value"> Example: In this example, we will set metadata using <meta> tag. HTML <!DOCTYPE html> <html> <head> <title> How to define metadata about an HTML document in HTML5? </title> <meta charset="utf-8"> <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 define metadata about an HTML document in 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: Comment More infoAdvertise with us Next Article How to define metadata about an HTML document in HTML5 ? P ppatelkap Follow Improve Article Tags : Web Technologies HTML HTML5 HTML-Questions Similar Reads How to define a section in a document in HTML5 ? In this article, we will discuss how to define a section in a document in html5. We can create a section in the document using the Section tag. HTML <section> Tag: Section tags divide content into section and subsection. The section tag is used when there is a requirement for two header, foote 1 min read How to define the document's body in HTML5 ? The document's body in HTML5 is defined by the <body> tag which is placed with in the <html> tags and just after the <head> tag.The body tag can include: headings tags : <h1>, <h2>, <h3> and so on.paragraph tag: <p>line break tag: <br>horizontal rule t 1 min read How to define information about the document using HTML ? The <head> tag in HTML is used to define the head portion of the document which contains metadata related to the document. This tag can contain other head elements such as <title>, <meta>, <link>, <style>, <link> etc. The <head> element was mandatory In HTML 1 min read How to define an HTML heading in HTML5 ? An HTML heading tag is used to define the headings of a page. Headings are defined with the <h1> to <h6> tags. The size of the text depends upon the type of heading tag. h1 is the largest heading tag and h6 is the smallest one (h1 > h2 > h3 > h4 > h5 > h6). Syntax: <h1 1 min read How to define the root of an HTML document ? The <html> tag in HTML is used to define the root of HTML and XHTML documents. The <html> tag tells the browser that it is an HTML document. It is the second outer container for everything that appears in an HTML document followed by the <!DOCTYPE> tag. The <html> tag require 1 min read Like