

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- Rules to override Style Sheet Rule in CSS
- How to define multiple style rules for a single element in CSS?
- Some CSS Rules
- How to use style attribute to define style rules?
- Set Media Queries for different CSS style rules for different size devices
- 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
- Style select options with CSS
Advertisements