Showing posts with label CSS. Show all posts
Showing posts with label CSS. Show all posts

Tuesday, December 18, 2018

Introduction To CSS - Created By World Wide Web Consortium

What is CSS?

CSS is cascading style sheet. We can easily write CSS in a separate file and then link it to our HTML file or embedded CSS in HTML file itself.External style sheet,Internal style sheet

  • CSS is cascading style sheet.

What is the role of CSS?

  • CSS defines how to display HTML elements.

Who developed CSS?

  • The world wide web Consortium (W3C) created CSS.
Current version:
  •  Currently we are using CSS 3.
Where to write CSS?
  • We can easily write CSS in a separate file and then link it to our HTML file or embedded CSS in HTML file itself.
  • External style sheet
  •  Internal style sheet
  •  Inline style 
 CSS syntax: 
Actually Element selector is used to specify an HTML element or group of HTML elements on which properties are applied. Mostly ,There are three ways to specify an element selector Tag name , ID value , Class value

 
Element selector
{
PropertyName:PropertyValue;
PropertyName:PropertyValue;
PropertyName:PropertyValue;
....
}

Element selector:
  • Actually Element selector is used to specify an HTML element or group of HTML elements on which properties are applied.
  • Mostly ,There are three ways to specify an element selector
  1. Tag name
  2. ID value 
  3. Class value
PropertyName:PropertyValue:
  • PropertyName is the name of the CSS property name followed by colun(:) and then Property value.
  • Basically,We can write one or more property declaration in the block.

Selector: 

 
Tag name:
  • This is tag name used in HTML this causes selection of all elements with the specified tag name.
ID value:
  • ID value is unique for HTML elements so it is used to select a specific element.Id value is prefixed with has(#) symbol when mention in selector.
Class Value:
  • Class value can be common to heterogeneous HTML elements which causes selection of more than one HTML elements.

 Regards,
Hints 4 You.
Thanx For giving your precious time.
We will meet again via next post.

*Feature: