HTML <style> with media display-mode

You are Here:

HTML <style> with media display-mode

The display-mode value of the media attribute specifies the display mode of the application.

Example

HTML Online Editor
<!DOCTYPE html> <html> <head> <style> p{ color:black; } </style> <style media="screen and (display-mode: fullscreen)"> p{ color:red; } </style> <style media="screen and (display-mode: standalone)"> p{ color:green; } </style> </head> <body> <p>display-mode is supported only in mozilla (Press F11 to fullscreen).</p> </body> </html>

Devices Value

ValueExplanationFallback display mode
fullscreenTotal display area is get used.standalone
standaloneIn standalone display-mode we can have different window in an application and each window operate all alone. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar.minimal-ui
minimal-uiMuch likely to standalone display-mode, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser.browser
browserThe application opens in a conventional browser tab or new window, depending on the browser and platform.none

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author