Find Interview Questions for Top Companies
Ques:- What XHTML does it stand for? How is if different from HTML? Who developed it? ?
Right Answer:
XHTML stands for Extensible Hypertext Markup Language. It is stricter than HTML in terms of syntax and follows XML rules. XHTML was developed by the World Wide Web Consortium (W3C).
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 lacking in this area? What can be done to improve the situation? — Would the web benefit from HTML and CSS being complemented with some kind of “layout language”?
Right Answer:
The challenges people face with CSS layouts often stem from a lack of understanding of CSS's capabilities and best practices rather than inherent limitations of CSS itself. To improve the situation, better education and resources on CSS layout techniques, such as Flexbox and Grid, can help. While a dedicated "layout language" could provide additional options, enhancing CSS and promoting its proper use is generally more beneficial for web development.
Ques:- How do I do multiple colors of text?
Right Answer:
You can use `<span>` elements with different styles for each color within a single `<div>`. For example:

```html
<div class="post-title questionitem showquestion" data-question-id="25224">
<span style="color: red;">Red Text</span>
<span style="color: blue;">Blue Text</span>
<span style="color: green;">Green Text</span>
</div>
```
Ques:- What the benefits of XHTML
Right Answer:
The benefits of XHTML include improved error handling, stricter syntax rules that promote cleaner code, better compatibility with XML tools, and enhanced accessibility for assistive technologies.
Ques:- Why is this XSLT important inxhtml?
Right Answer:
XSLT is important in XHTML because it allows for the transformation of XML data into a format that can be displayed as XHTML, enabling dynamic content presentation and separation of data from its presentation.
Ques:- What is XHTML Modularization?
Right Answer:
XHTML Modularization is a framework that allows for the creation of custom XHTML document types by combining different modules, enabling flexibility and reusability in web development.
Ques:- How does XHTML differ from HTML ?
Right Answer:
XHTML is a stricter and more XML-compliant version of HTML. It requires proper nesting of elements, closing of all tags, and the use of lowercase for tag names and attributes, while HTML is more lenient with these rules.
Ques:- How do I add midi music to my web page
Right Answer:
To add MIDI music to your web page, use the `<embed>` or `<audio>` tag. Here’s an example using the `<embed>` tag:

```html
<embed src="path/to/your/music.mid" autostart="true" loop="true" width="300" height="100">
```

Or using the `<audio>` tag:

```html
<audio controls>
<source src="path/to/your/music.mid" type="audio/midi">
Your browser does not support the audio tag.
</audio>
```
Ques:- Styles not showing?
Right Answer:
Check if the CSS file is linked correctly in the HTML, ensure there are no syntax errors in the CSS, verify that the styles are not being overridden by other styles, and make sure the elements have the correct class names applied.
Ques:- How do I get rid of the gap under my image?
Right Answer:
To get rid of the gap under your image, set the image's display property to `block` using CSS:

```css
img {
display: block;
}
```
Ques:- How do I get my footer to sit at the bottom?
Right Answer:
To make your footer sit at the bottom of the page, you can use the following CSS:

```css
html, body {
height: 100%;
margin: 0;
}

.wrapper {
min-height: 100%;
display: flex;
flex-direction: column;
}

.footer {
margin-top: auto;
}
```

Wrap your content in a `.wrapper` div and place your footer inside it with the class `.footer`.
Ques:- Why use Style Sheets?
Right Answer:
Style Sheets, specifically CSS, are used to separate content from presentation, allowing for easier maintenance, consistent styling across multiple pages, improved load times, and better accessibility.


AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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