Find Interview Questions for Top Companies
Ques:- How to declare DTD?
Right Answer:
To declare a DTD (Document Type Definition), you can use the following syntax at the beginning of your HTML document:

```html
<!DOCTYPE html>
```

For XHTML, it would look like this:

```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
```
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:- Give the main reasons to use DTD?
Right Answer:
The main reasons to use DTD (Document Type Definition) are:

1. To define the structure and rules for an XML or HTML document.
2. To ensure that the document is valid and adheres to specified standards.
3. To improve data consistency and integrity by enforcing element and attribute usage.
4. To facilitate data sharing and interoperability between different systems.
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 are META tags?
Right Answer:
META tags are HTML elements used to provide metadata about a webpage, such as its description, keywords, author, and character set. They are placed within the <head> section of the HTML document and help search engines and browsers understand the content of the page.
Ques:- What is a Hypertext link?
Right Answer:
A hypertext link, or hyperlink, is a clickable element in a web page that directs users to another location, which can be another web page, a different section of the same page, or a file.
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:- 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:- What is DOM?
Right Answer:
DOM stands for Document Object Model. It is a programming interface that represents the structure of a document (like HTML or XML) as a tree of objects, allowing scripts to manipulate the content, structure, and style of the document.
Ques:- OK, then 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:- What is a DOCTYPE? Which one do I use?
Right Answer:
A DOCTYPE is a declaration that defines the version of HTML being used in a document. It helps browsers render the page correctly. For HTML5, you use `<!DOCTYPE html>`.
Ques:- How do you create Drop Down Combos in HTML ? select Tag
Right Answer:
To create a drop-down combo in HTML, use the `<select>` tag along with `<option>` tags for each item. Here’s an example:

```html
<select>
<option value="option1">Option 1</option>
<option value="option2">Option 2</option>
<option value="option3">Option 3</option>
</select>
```
Ques:- How DHTML work with JavaScript?
Right Answer:
DHTML (Dynamic HTML) works with JavaScript by allowing the manipulation of HTML elements and styles dynamically. JavaScript can change the content, structure, and style of a webpage in real-time, enabling interactive features like animations, form validation, and dynamic content updates without needing to reload the page.
Ques:- What is the tag Code Base and why do we use it?
Right Answer:
The `<codebase>` tag is used in HTML to specify the base URL for relative URLs in a document. It helps browsers locate resources like applets or multimedia files when the paths are relative. However, it is not commonly used in modern HTML5 and is mostly associated with older technologies like Java applets.
Ques:- What are the basic steps of learning file handling in c language?
Right Answer:
1. Understand the basics of file types (text and binary).
2. Learn to include the necessary header files (`<stdio.h>`).
3. Familiarize yourself with file pointers and the `FILE` structure.
4. Learn to open files using `fopen()` with appropriate modes (read, write, append).
5. Practice reading from files using functions like `fgetc()`, `fgets()`, and `fread()`.
6. Practice writing to files using `fputc()`, `fputs()`, and `fwrite()`.
7. Learn to close files using `fclose()`.
8. Handle errors using return values and `errno`.
9. Explore advanced functions like `fseek()`, `ftell()`, and `rewind()`.


HTML5 div coding refers to using the <div> tag in HTML5 to create divisions or sections within a webpage. It is a fundamental practice in web development for organizing content into blocks that can be styled and positioned using CSS.

Using <div> elements allows developers to design responsive, flexible layouts compatible across devices and browsers. Paired with CSS properties like flexbox and grid, div coding helps create clean, maintainable web pages.

HTML5 introduced semantic elements, but <div> remains essential for generic containers and complex page structures. Mastery of div coding is critical for front-end developers, enabling control over content flow, alignment, and interactivity.

Proper use of divs improves accessibility and SEO when combined with ARIA roles and semantic tags. Understanding HTML5 div coding forms the foundation for modern web design and development.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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