Found 598 Articles for Front End Scripts

Class Selectors in CSS

karthikeya Boyini
Updated on 30-Jan-2020 07:53:47

606 Views

You can define style rules based on the class attribute of the elements. All the elements having that class will be formatted according to the defined rule..black {    color: #808000; }This rule renders the content in black for every element with class attribute set to black in our document. You can make it a bit more particular. For example:h1.black {    color: #808000; }This rule renders the content in black for only elements with class attribute set to black.You can apply more than one class selectors to given element. Consider the following example:    This para will be ... Read More

Descendent Selectors in CSS

Samual Sam
Updated on 30-Jan-2020 07:25:02

477 Views

Suppose you want to apply a style rule to a particular element only when it lies inside a particular element. As given in the following example, style rule will apply to element only when it lies inside tag.ul em {    color: #FFFF00; }Suppose now for element and style rule applied to :ol strong {    color: #808000; }

Type Selectors in CSS

varma
Updated on 30-Jan-2020 07:24:30

1K+ Views

A selector is an HTML tag at which a style will be applied. This could be any tag like or etc.With the type selector, set for HTML tags like h1, h2, h3, p, etc:h2 {    color: #FF0000; }Set for p:p {    color: #800000; }

What is a Selector and how it is used in CSS?

Lakshmi Srinivas
Updated on 30-Jan-2020 07:23:49

402 Views

A selector is an HTML tag at which a style is applied. This could be any tag like or etc.The following figure describes what a Selector is:Let us see an example of Type Selector, to set color:h1 {    color: #36CFFF; }

Style Rules in CSS

Sreemaha
Updated on 30-Jan-2020 07:22:37

6K+ Views

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 or 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 etcYou can put CSS Style Rule Syntax as ... Read More

Difference between specification and recommendation that introduced CSS

karthikeya Boyini
Updated on 30-Jul-2019 22:30:22

299 Views

The CSS Working Group creates documents called specifications. When a specification has been discussed and officially ratified by W3C members, it becomes a recommendation.These ratified specifications are called recommendations because the W3C has no control over the actual implementation of the language. Independent companies and organizations create that software.The World Wide Web Consortium or W3C is a group that makes recommendations about how the Internet works and how it should evolve.

Who maintains and governs CSS?

Samual Sam
Updated on 30-Jul-2019 22:30:22

653 Views

CSS invented by Håkon Wium Lie on October 10, 1994, and maintained by a group of people within the W3C called the CSS Working Group. The CSS Working Group creates documents called specifications. When a specification has been discussed and officially ratified by W3C members, it becomes a recommendation.These ratified specifications are called recommendations because the W3C has no control over the actual implementation of the language. Independent companies and organizations create that software.

Universal Selectors in CSS

radhakrishna
Updated on 30-Jan-2020 07:21:53

710 Views

A selector is an HTML tag at which a style will be applied. This could be any tag like or etc.With the type selector, set for HTML tags like h1, h2, h3, p, etc:h2 {    color: #FFFF00; }Rather than selecting elements of a specific type, the universal selector simply matches the name of any element type:* {    color: #FFFF00; }

Comparison of CSS versions

Lakshmi Srinivas
Updated on 30-Jan-2020 07:21:17

1K+ Views

Cascading Style Sheets, level 1 (CSS1) was came out of W3C as a recommendation in December 1996. This version describes the CSS language as well as a simple visual formatting model for all the HTML tags.CSS2 became a W3C recommendation in May 1998 and builds on CSS1. This version adds support for media-specific style sheets e.g. printers and aural devices, downloadable fonts, element positioning, and tables.CSS3 became a W3C recommendation in June 1999 and builds on older versions CSS. it has divided into documentation is called as Modules and here each module having new extension features defined in CSS2.CSS3 is ... Read More

How to define a measurement in screen pixels with CSS?

mkotla
Updated on 30-Jan-2020 07:27:48

182 Views

To define a measurement in screen pixels with CSS, use the px unit.Let us see an example:                            This div has relative positioning.          

Advertisements