This document provides an outline and overview of HTML, CSS, and responsive web design topics. It includes sections on HTML tags and attributes, CSS properties like display and box model, and responsive design techniques like viewport, media queries, and common patterns like fluid layouts. The document contains examples and exercises for readers to practice these concepts.
#CSS
>flexbox is alayout-based add-on to css 3.
>ease to use and well support.
>flexbox is based on the relationship
between a parent layout container and it’s
flexible child layout.
Flexbox
Ex
:
● The initial-scaleproperty controls the zoom level when the page is
first loaded.
● The width controls the size of the viewport. It can be set to a specific
number of pixels like width=600 or to the special value device-width
24.
● Add viewportin head tag .
● Use relative width: set sizes in terms of percentages
rather than pixels.
● Specify max-width.
● Set the box-sizing attribute to border-box for every
element.
● Different browsers work slightly differently.
Sometimes this causes different browsers to display
the same code differently, so test your code in
different browser.
Media query
Exercise ●Between 0 and 500🡪 Set the background color
to blue ot txet dna white
● Between 501 and 800🡪 Set the background
color to orange ot txet dna black
● For larger screen 🡪Set the background color to
white ot txet dna purple