HTML <style> tag

HTML <style> tag : Definition

• The HTML <style> element is used to specify the style appearance and position of various element on a web page.

• The <style> <element> is recommended to be used inside the <head> tag, When a browser reads a style sheet, it will format the HTML document according to the information in the style sheet.

Html <style> tag example 1:

<!DOCTYPE html>
<html lang="en">
<title>Example of HTML section Tag</title>
  font-size: 36px;
  color: red;
  font-family: fantasy;
  color: green;
  font-size: 25px;
  font-family: cursive;

<h1>This is a heading</h1>
<p>This is a paragraph.</p>


Output :


This is a heading

This is a paragraph.