Important Notice:

Course Content
Float Property
0/1
Z-Index
0/1
CSS object-fit Property
0/1
CSS Visibility Property
0/1
CSS (Chapter 4) M2-R5.1
About Lesson
Attribute of style tag:-

            इसके 2 attribute होते हैं-

i. Type

ii. Media

type: यह Attribute Media Type को Define करता है।

Syntax:- <style type=”text/css”>

media: यह Attribute Media Resource (Device Resource) को Define करता है। अर्थात आप किस प्रकार की Media (All, Print, Screen, TV) आदि के लिए Style rule Define कर रहे है।

Syntax:- <style type=”text/css” media=”print”>

Value of media Attribute:-

Sr. No

Value

Meaning

1

all

सभी media devices के लिए इस value को प्रयोग किया जाता है।

2

aural

Speech synthesizers के लिए use की जाती है।

3

print

यह value printers के लिए use की जाती है। (print Preview Mode,  Hard Copy Printing)

4

projection

यह projector के लिए use किया जाता है।

5

screen

यह value desktop computers, tablets और mobile आदि media device के लिए प्रयोग की जाती है।

6

speech

यह value screen readers के लिए use की जाती है। Screen readers screen के text को loudly read करते है।

7

Tv

TV के लिए use की जाती है।

 

Attribute of style tag:-

            It has 2 attributes-

i. Type

ii. Media

type: This attribute defines the media type.

Syntax:- <style type=”text/css”>

media: This attribute defines the media resource (device resource). That is, for what type of media (All, Print, Screen, TV) etc. you are defining the style rule.

Syntax:- <style type=”text/css” media=”print”>

Value of media Attribute:-

Sr. No

Value

Meaning

1

all

This value is used for all media devices.

2

aural

Used for speech synthesizers.

3

print

This value is used for printers. (Print Preview Mode, Hard Copy Printing)

4

projection

It is used for projector.

5

screen

This value is used for media devices like desktop computers, tablets and mobiles.

6

speech

This value is used for screen readers. Screen readers read the text on the screen aloud.

7

Tv

Used for TV.

error: Content is protected !!