

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we set what media/device the linked document is optimized for in HTML?
Use the media attribute to specify what media/ device the linked document is optimized for in HTML. The attribute can be used with the following elements − <area>, <a>, <link>, etc.
Example
<html> <head> <title> HTML media attribute k</title> <link rel = 'stylesheet' href = 'style.css' media = "screen" /> </head> <body> <p>This is demo text.</p> </body> </html>
- Related Questions & Answers
- How do we specify the target for where to open the linked document in HTML?
- How do we set what value is the optimal value for the gauge in HTML?
- Set the language of the linked document in HTML
- Set the relationship between the current document and the linked document in HTML
- How do we add document title in HTML?
- Why do we use DOCTYPES in HTML document?
- How do we include a section in an HTML document?
- How do we set text font in HTML?
- How do we set the text direction for the content in an element in HTML?
- How do we set the type of element in HTML?
- How to set the URL of the media file in HTML?
- How to use media queries for common device breakpoints with CSS?
- How do we set the alignment according to surrounding elements in HTML?
- What are the essential tags for an HTML Document?
- How do we set an image to be shown while the video is downloading in HTML?
Advertisements