Hướng dẫn thử thách
1 / 4
Create a Media Query
Media Queries are a new technique introduced in CSS3 that change the presentation of content based on different viewport sizes. The viewport is a user's visible area of a web page, and is different depending on the device used to access the site.
Media Queries consist of a media type, and if that media type matches the type of device the document is displayed on, the styles are applied. You can have as many selectors and styles inside your media query as you want.
Here's an example of a media query that returns the content when the device's width is less than or equal to `100px`:
```css
@media (max-width: 100px) {
/* CSS Rules */
}
```
and the following media query returns the content when the device's height is more than or equal to `350px`:
```css
@media (min-height: 350px) {
/* CSS Rules */
}
```
Remember, the CSS inside the media query is applied only if the media type matches that of the device being used.
# --instructions--
Add a media query, so that the `p` tag has a `font-size` of `10px` when the device's height is less than or equal to `800px`.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.html
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵