How to define a title for a document using HTML5 ? Last Updated : 02 Jun, 2020 Comments Improve Suggest changes Like Article Like Report In this article, we will define a title for the document by using the <title> tag. This tag in HTML is used to define the title of the HTML document. It sets the title in the browser toolbar. It provides the title for the web page when it is added to favorites. It displays the title for the page in search engine results. Syntax: <title> Title name </title> Example: html <!DOCTYPE html> <html> <head> <title> Define a title for the document </title> <style> body { text-align: center; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2> HTML5: How to define a title for the document? </h2> <p title="GeeksForGeeks"> Welcome to GeeksforGeeks! </p> </body> </html> Output: Supported Browsers: Google Chrome Internet Explorer Firefox Opera Safari Comment More infoAdvertise with us Next Article How to define a title for a document using HTML5 ? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML5 HTML-Misc Similar Reads How to define header for a document or section using HTML ? The <header> tag in HTML is used to define the header for a document or a section. It contains information related to the title and heading of the related content. The <header> element is intended to usually contain the sectionâs heading (an h1-h6 element or an <hgroup> element), b 2 min read How to define style information of a document using HTML5 ? In this Article, we define style information for a document by using the <style> element in the document. It is used to change our text, viewed on the page. This change includes changing font-size, font-family, font-color, etc. Not only the texts but you can also change the style of a body or 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 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 add footer for a document or section using HTML5 ? In this article, we define a footer for a document or section by using the <footer> tag. This tag in HTML is used to define a footer of HTML document. This section contains the footer information (author information, copyright information, carriers, etc). The <footer> tag is used within 1 min read Like