
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Style Rules in CSS
CSS comprises of style rules interpreted by the browser and then applied to the corresponding elements in your document. A style rule is made of three parts −
- Selector - A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> etc.
- Property - A property is a type of attribute of HTML tag. Put simply, all the HTML attributes are converted into CSS properties. They could be color, border etc.
- Value - Values assigned to properties. For example, the color property can have value either red or #F1F1F1 etc
You can put CSS Style Rule Syntax as follows:
selector { property: value }
- Related Articles
- Rules to override Style Sheet Rule in CSS
- How to define multiple style rules for a single element in CSS?
- Set Media Queries for different CSS style rules for different size devices
- How to use style attribute to define style rules?
- Some CSS Rules
- The @import At-rules in CSS
- The @media At-rules in CSS
- Font Style in CSS
- CSS outline-style property
- Setting List Style Type in CSS
- Importing External Style Sheets in CSS
- The outline-style Property in CSS
- Linking External Style Sheets in CSS
- The border-style Property in CSS
- What are the ways to include style sheet rules in an HTML document

Advertisements