Find Interview Questions for Top Companies
Ques:- What the hell is the DOM?
Right Answer:
The DOM, or Document Object Model, is a programming interface that represents the structure of a web page as a tree of objects, allowing developers to manipulate the content, structure, and style of the page using languages like JavaScript.
Ques:- How can we submit a form without a submit buttom?
Right Answer:
You can submit a form without a submit button by using JavaScript. For example, you can call the `submit()` method on the form element when an event occurs, such as a button click or a key press. Here’s a simple example:

```html
<form id="myForm">
<input type="text" name="example" required>
</form>
<button onclick="document.getElementById('myForm').submit();">Submit</button>
```

In this case, clicking the button will submit the form.
Ques:- what is Javascript and how does it work with the DOM?
Right Answer:
JavaScript is a programming language that allows you to create dynamic and interactive content on websites. It works with the DOM (Document Object Model) by manipulating HTML elements, allowing you to change their content, style, and structure in response to user actions or events.
Ques:- How do I quote font names in quoted values of the style attribute?
Asked In :-
Right Answer:
Font names should be quoted using either single quotes or double quotes. If the font name contains spaces, it must be enclosed in quotes. For example:

```html
<style>
.example {
font-family: 'Open Sans', Arial, sans-serif;
}
</style>
```

or

```html
<style>
.example {
font-family: "Open Sans", Arial, sans-serif;
}
</style>
```
Ques:- What is the difference between jscript and javascript?
Right Answer:
JScript is Microsoft's implementation of the ECMAScript standard, while JavaScript is the implementation developed by Netscape. They are similar but have some differences in features and compatibility.
Ques:- CSS is clearly very useful for separating style from content. But apparently people tend to have problems when using it for layouts. Would you say this is because people have not yet understood how to properly do layout in CSS, or is it CSS that is lackin
Asked In :-
Right Answer:
The challenges people face with CSS layouts often stem from a lack of understanding of CSS layout techniques rather than inherent limitations in CSS itself.
Ques:- Must I quote property values?
Asked In :-
Right Answer:
No, you do not have to quote property values in CSS, but it is recommended to quote values that contain spaces or special characters.
Ques:- Justified Text?
Asked In :-
Right Answer:
To create justified text in CSS, use the `text-align` property with the value `justify`. For example:

```css
p {
text-align: justify;
}
```
Ques:- To what are partial URLs relative?
Asked In :-
Right Answer:
Partial URLs are relative to the base URL of the current document or webpage.
Ques:- What is the percentage value in 'font-size' relative to?
Asked In :-
Right Answer:
The percentage value in `font-size` is relative to the font size of the parent element.
Ques:- Do any WYSIWYG editors support the creation of Style Sheets? Any text-based HTML editors?
Asked In :-
Right Answer:
Yes, many WYSIWYG editors like Adobe Dreamweaver and Microsoft Expression Web support the creation of Style Sheets. Text-based HTML editors like Visual Studio Code and Sublime Text also allow you to create and edit CSS files.
Ques:- How do I have a non-tiling (non-repeating) background image?
Asked In :- Twilio,
Right Answer:
Use the CSS property `background-repeat` and set it to `no-repeat`. For example:

```css
background-image: url('your-image.jpg');
background-repeat: no-repeat;
```
Ques:- How do I centre my page?
Asked In :-
Right Answer:
To center your page, you can use the following CSS:

```css
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Full viewport height */
margin: 0; /* Remove default margin */
}
```

Alternatively, for a fixed-width container:

```css
.container {
width: 80%; /* or any width you prefer */
margin: 0 auto; /* Centers the container */
}
```
Ques:- How can you have different number of cells for each row of a table?
Right Answer:
You can have different numbers of cells for each row of a table by using the `<tr>` tag for each row and specifying the number of `<td>` (table data) or `<th>` (table header) tags within each `<tr>`. For example:

```html
<table>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
</tr>
<tr>
<td>Row 3, Cell 1</td>
<td>Row 3, Cell 2</td>
<td>Row 3, Cell 3</td>
</tr>
</table>
```
Ques:- Do you know action script 3.o in flash
Asked In :-
Right Answer:
Yes, I am familiar with ActionScript 3.0 in Flash.
Ques:- What is XML family ?
Right Answer:
The XML family refers to a group of markup languages that are based on the XML (eXtensible Markup Language) standard. This includes languages like XHTML (XML-based HTML), SVG (Scalable Vector Graphics), MathML (Mathematical Markup Language), and others that use XML syntax to structure data.


AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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