=>CSS:

  • CSS stands for Cascading Style Sheets. 
  • CSS describes how HTML elements are to be displayed on screen, paper, or in other media.
  • CSS saves a lot of work. It can control the layout of multiple web pages all at once. 
  • CSS is combined with the markup languages HTML or XHTML. 
  • You can completely change the look of your website with only a few changes in CSS code. 
  • The style definitions are normally saved in external .css files.
=>CSS Syntax: 
  • A CSS rule-set consists of a selector and a declaration block:

  • The selector points to the HTML element you want to style. 
  • The declaration block contains one or more declarations separated by semicolons.
  • Each declaration includes a CSS property name and a value, separated by a colon. 
  • A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.

=>Style tag in css :

  • The <style> tag is used to define style information for an HTML document. 
  • Inside the <style> element you specify how HTML elements should render in a browser. 
  • Each HTML document can contain multiple <style> tags. 
  • The <style> tag in HTML helps us to modify our text, viewed in the page. 
  • This modification includes changing font size, font family, font color etc. 
  • Not only the texts but also we can change the style of a body ar part of a page. 
  • The <style> element must be included inside the <head> of the document. 
  • In general, it is better to put your styles in external stylesheets and apply them using <link> elements.


Attributes :

            1) Type : Specifies the media type of the <style> tag. 
            2) Media : Specifies the device the document will be displayed on.

Example :

<html>
<head>
<style> 
h1 
color:red
{
 color:blue; 
</style> 
</head> 
<body> 
<h1>A heading</h1> 
<p>A paragraph.</p> 
</body> 
</html>