Prac - Javascript and css questions

  1. Why we use media queries.?
  2. why do we use display flex
  3. Why we use JS in development web pages?
2 Likes

ans 1. we use media query to make responsive webpages
ans 2. to make item flexible
ans 3. to make webpage dynamic

1 Like

We use media queries to make a web page responsive.
We use display flex to align the block elements in a single line .
JavaScript is use to make a webpage reactive.

1 Like
  1. Media queries are used to allow you to create different layouts depending on the size of the viewport
  2. By using display flex in parent element, child elements automatically align like column or row with auto width and auto height .
  3. jsallows developers to create a dynamic and interactive web page
2 Likes

1.It allows you to create different layouts depending on the size of the viewport, but they can also be used to detect other things about the environment your site is running on.
2. Flex is the value of css display . By using display flex in parent element,child elements automatically align like column or row with auto width and auto height.
3. JavaScript is a scripting language used to develop web pages. Developed in Netscape, JS allows developers to create a dynamic and interactive web page to interact with visitors and execute complex actions . It also enables users to load content into a document without reloading the entire page.

1 Like
  1. for creating responsive webpages for different veiwport
  2. for making layouts easily we can make it as row , column , reverse row, reverse column using flex direction property
  3. for making dynamic webpages
1 Like
  1. for use make responsive webapp
  2. it makes to in same horizontal line for elements.
    3.to make proper work and functionate the elements html and css in webapp.
1 Like

Media query: it’s using for web application to make it responsive.
display flex: using display flex in parent element, child elements automatically align like column or row with auto width and auto height.
JS: to add the functionality in web applications.

1 Like
  1. We use media queries are a key part of responsive web design.
  2. Flex is the value of CSS display By using display flex in parent element, child elements automatically align
  3. JS allows developers to create a dynamic and interactive web page
1 Like