How to define style information of a document using HTML5 ? Last Updated : 30 Jun, 2020 Comments Improve Suggest changes Like Article Like Report 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 part of a page. Now let us look into various attributes of style and what else the tag supports. Syntax: <tagname style="property:value;"> Example 1: The following example demonstrates to define style information for a document using HTML5. html <!DOCTYPE html> <html> <head> <title> How to define style information for a document using HTML5? </title> </head> <body> <h1 style="font-family:commanders;"> Hello GeeksforGeeks. </h1> <h2 style="font-family:Chaparral Pro Light;"> Hello GeeksforGeeks. </h2> <h3 style="font-family:algerian;"> Hello GeeksforGeeks. </h3> <p style="font-family:Castellar;"> Hello GeeksforGeeks. </p> </body> </html> Output: Example 2: html <!DOCTYPE html> <html> <head> <title> How to define style information for a document using HTML5? </title> </head> <body style="background-color:#616A6B;"> <h1 style="font-family:commanders; background-color:yellow;"> Hello GeeksforGeeks. </h1> <h2 style="font-family:algerian; background-color:cyan;"> Hello GeeksforGeeks. </h2> <p style="font-family:Castellar; background-color:green;"> Hello GeeksforGeeks. </p> </body> </html> Output: Supported Browsers are listed below: Google Chrome Internet Explorer Firefox Opera Safari Comment More infoAdvertise with us Next Article How to define style information of a document using HTML5 ? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML5 Similar Reads 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 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 specify the main content of a document in HTML5 ? The <article> tag is one of the new sectioning element in HTML5. The HTML article tag is used to represent an article. More specifically, the content within the <article> tag is independent of the other content of the site (even though it can be related). In other words, the article elem 2 min read How to define important text using HTML5 ? In this article, we define an important text by using the <strong> tag in HTML. It is the parsed tag and used to show the importance of the text. It reflects the text as bold. Syntax: <strong> Contents... </strong> Example 1: html <!DOCTYPE html> <html> <head> 1 min read Like