UI UX Frontend Developer

UI UX Frontend Developer Interview Questions and Answers

Updated 20 Apr 2024

Q1. How can we change the class of an element using javascript?

Ans.

You can change the class of an element using JavaScript by accessing the element and modifying its class attribute.

  • Access the element using document.getElementById(), document.getElementsByClassName(), document.querySelector(), etc.

  • Use the element's classList property to add, remove, or toggle classes.

  • Example: document.getElementById('myElement').classList.add('newClass');

Q2. Create a HTML CSS design for a job website like SarkariResult.com homepage.

Ans.

Design a job website homepage similar to SarkariResult.com using HTML and CSS.

  • Create a clean and professional layout with easy navigation

  • Include a search bar for job searches

  • Display latest job updates and notifications prominently

  • Use colors and fonts that are easy on the eyes

  • Make sure the website is responsive for different screen sizes

Q3. Difference between inline, internal and external css.

Ans.

Inline, internal, and external CSS are different ways to apply styles to HTML elements.

  • Inline CSS is applied directly to an HTML element using the style attribute.

  • Internal CSS is defined within the head section of an HTML document using the style tag.

  • External CSS is stored in a separate file and linked to the HTML document using the link tag.

Q4. How we use javascript in various ways?

Ans.

JavaScript can be used for client-side scripting, server-side development, creating web applications, games, and more.

  • Client-side scripting for interactive web pages

  • Server-side development with Node.js

  • Creating web applications with frameworks like React or Angular

  • Developing games with libraries like Phaser or Three.js

Are these interview questions helpful?

Q5. What is CSS box layout

Ans.

CSS box layout is a way to control the size and position of elements on a web page using CSS properties.

  • CSS box layout allows developers to control the layout of elements on a web page.

  • It includes properties like display, position, float, and clear.

  • Developers can use CSS box layout to create responsive designs that adapt to different screen sizes.

  • Examples include using display: flex; for creating flexible layouts, and position: absolute; for positioning elements precisely.

Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

UI UX Frontend Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter