What is Responsive Design? Explain the components that make responsive web design. Why its important ? explain in detail.


Responsive web design (RWD) is an approach to web design that makes web pages render well on a variety of devices and window or screen sizes from minimum to maximum display size.

Components of Responsive Web Design (RWD):-

  • Setting The Viewport

    To create a responsive website, add the following <meta> tag to all your web pages:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

          This will set the viewport of your page, which will give the browser instruction on how to control the page's dimensions and scaling.

  • Responsive Images

    Responsive images are images that scale nicely to fit any browser size.

     To make an image responsive, you need to give a new value to its width property. Then the height of the image will adjust itself automatically. The important thing to know is that you should always use relative units for the width property like percentage, rather than absolute ones like pixels.
  • Media Queries

    In addition to resize text and images, it is also common to use media queries in responsive web pages.

    With media queries you can define completely different styles for different browser sizes.

  • Responsive Text Size

    The text size can be set with a "vw" unit, which means the "viewport width".



Share to whatsapp

More Questions from Web Technology and its Applications Module 2

Frames in HTML
View
Discuss <table> element along row spanning and column
View
What does floating an element do in CSS ? How do you float an element?
View

Write short note on radio buttons and check boxes?


View
Explain Positioning Elements in CSS?
(or)
Explain the different ways of position Elements In CSS layout techniques
View
Explain the basic table Structure . Create an HTML Document for the following figure.
OneTwo
ThreeFour

View
Tables in HTML (rowspan and colspan, align and valign, cellpadding and cellspacing, Sections)
View