Contact Number
Email Address

Home

Backgrounds

CSS Background CSS background properties are used to define the background effects of an element. CSS properties used for background effects: background-color background-image background-repeat background-position

Comments

CSS Comments Many times, you may need to put additional comments in your style sheet blocks. So, it is very easy to comment any part in style sheet. You can simple put your comments inside /*.....this is a comment in style sheet.....*/. <style> p { color: red; /* This is a single-line comment */ text-align:...

Rules of Priority

Rule to override any Style Sheet Rule Any inline style sheet takes highest priority. So, it will override any rule defined in <style>...</style> tags or rules defined in any external style sheet file. Any rule defined in <style>...</style> tags will override rules defined in any external style sheet file. Any rule defined in external style...

How to Use

Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet With an external style sheet, you can change the look of an entire website by changing just one file! Each page must include a reference to the external style sheet file inside the <link> element. The <link> element...

Selector

CSS Selectors CSS selectors are used to "find" (or select) HTML elements based on their id, class, type, attribute, and more. Types of CSS Selectors The element Selector The element selector selects elements based on the element name.You can select all <p> elements on a page like this: (all <p> elements will be center-aligned, with...

Syntax

CSS Syntax A CSS comprises of style rules that are 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>...