Find Interview Questions for Top Companies
Alphabet inc. Interview Questions and Answers
Ques:- What is the diffrence between HTML & DHTML…?
Right Answer:
HTML (HyperText Markup Language) is a static markup language used to create the structure of web pages, while DHTML (Dynamic HTML) is an extension of HTML that allows for dynamic changes to the content and layout of a web page using a combination of HTML, CSS, and JavaScript.
Ques:- How can you set a minimum width for IE?
Right Answer:
You can set a minimum width for IE using the `min-width` property in CSS. For better compatibility, you can also use a conditional comment to target IE specifically and apply a fallback using `width` or `min-width` in pixels. For example:

```css
.post-title {
min-width: 300px; /* Standard way */
}

/* For IE 6-8 */
<!--[if lt IE 9]>
<style>
.post-title {
width: 300px; /* Fallback for older IE */
}
</style>
<![endif]-->
```
Ques:- If one were to set Text and Link colors using a style sheet, should one also define the background colors for these elements as well?
Right Answer:
Yes, it is a good practice to define background colors for elements along with text and link colors to ensure good contrast and readability.
Ques:- What is CSS rule 'ruleset'?
Right Answer:
A CSS ruleset consists of a selector and a declaration block. The selector targets HTML elements, and the declaration block contains one or more property-value pairs that define the styles to be applied to those elements.
Ques:- What is the difference between HTML and HTML5
Right Answer:
HTML5 is the latest version of HTML, which includes new features such as native support for audio and video, new semantic elements (like `<article>`, `<section>`, and `<header>`), improved parsing rules, and better support for web applications with APIs like local storage and canvas. HTML, on the other hand, refers to earlier versions that lack these enhancements.
Ques:- What is the difference between frontend and backend development
Right Answer:
Frontend development refers to the part of a website or application that users interact with directly, including the layout, design, and user interface. Backend development involves the server-side, focusing on databases, server logic, and application functionality that users do not see.
Ques:- What are semantic HTML elements and why are they important
Right Answer:
Semantic HTML elements are tags that clearly describe their meaning in a human- and machine-readable way, such as `<header>`, `<article>`, `<footer>`, and `<section>`. They are important because they improve accessibility, enhance SEO, and make the structure of the web page clearer for developers and browsers.
Ques:- What are event bubbling and event delegation in JavaScript
Right Answer:
Event bubbling is a JavaScript event propagation method where an event starts from the target element and bubbles up to its ancestors in the DOM hierarchy. Event delegation is a technique that involves attaching a single event listener to a parent element to manage events for multiple child elements, leveraging event bubbling to handle events efficiently.
Ques:- What is the difference between var let and const in JavaScript
Right Answer:
`var` is function-scoped or globally-scoped and can be re-declared and updated. `let` is block-scoped, can be updated but not re-declared in the same scope. `const` is also block-scoped, cannot be updated or re-declared, and must be initialized at the time of declaration.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users