lab-development-imb/web/13/labor/13_aufgaben.md

70 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Übungsblatt 13
*Für das gesamte Übungsblatt ist keine Abgabe erforderlich.*
## 1. Übung zu Responsive Design: Media Queries
**Frage:** Welche *Media Query* trifft auf welches Gerät zu?
a. Smartphone: 320 x 480px
![Smartphone](img/Smartphone_h.png)
b. Smartphone quer gehalten: 960 x 640px
![Smartphone quer](img/Smartphone_q.png)
c. PC-Bildschirm: 1600 x 900px mit Browserfenster: 800 x 500px
![PC mit Bildschirm](img/PC.png)
d. Tablet quer gehalten: 2048 x 1539px
![Tablet](img/Tablet.jpg)
*Hinweis*: `device-width` ist bei Smartphones und Tablets immer die kürzere Seite des Geräts sie dreht sich beim Querhalten nicht mit.
Der Viewport (`width`/`height`) dagegen dreht sich mit der Geräteausrichtung und ändert dabei seine Breite und Höhe.
1.
```css
@media screen
```
2.
```css
@media screen and (max-width: 800px)
```
3.
```css
@media screen and (orientation: portrait)
```
4.
```css
@media screen and (min-device-width: 900px)
```
5.
```css
@media screen and (min-width: 900px)
```
6.
```css
@media print and (min-width: 30cm)
```
7.
```css
@media screen and (max-device-height: 1400px)
```
## 2. Übung zu Barrierefreiheit
**Aufgabenstellung**: Gegen welche WCAG-Erfolgskriterien verstößt folgendes Web-Kontaktformular?
![Kontaktformular](img/Kontaktformular.png)