开发者

What are HTML 4 media specifiers

Can some one explain to me what HTML 4 media开发者_运维知识库 specifiers are? Is there docs that explain this?


OK, you mean MediaDesc

Attribute values of type MediaDesc are media descriptors — a comma-separated list of media for which the linked resource is tailored. Media descriptors are case-sensitive.

The following media descriptors are defined in HTML 4:

  • screen, for non-paged computer screens;
  • tty, for fixed-pitch character grid displays (such as the display used by Lynx);
  • tv, for television-type devices with low resolution and limited scrollability;
  • projection, for projectors;
  • handheld, for handheld devices (characterized by a small display and limited bandwidth);
  • print, for output to a printer;
  • braille, for braille tactile feedback devices;
  • aural, for speech synthesizers;
  • all, for all devices.

from http://htmlhelp.com/reference/html40/values.html

At first I thought you were asking about CONTENT types, like text/html, image/jpeg, audio/mpeg, video/quicktime, text/css, and text/javascript.

See http://www.iana.org/assignments/media-types/index.html


They tell what type of screen etc. the content is viewable on. For example there is the print media where you can define what the printed content looks like (so you can remove excess colors etc.).

I hope this helps.


I'm not familiar with the context you're speaking of, but maybe someone is using it to refer to CSS media types (or explained in one tutorial)?

UPDATED ANSWER PER COMMENT:

Media queries are explained in the specification and at https://developer.mozilla.org/En/CSS/Media_queries

But the point is that these were not all available in HTML4, so see the list of media types above.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜