EXAMRADAR

Question: The ____ and ______ attributes specify the layout of frames within the browser window.

Answer:

The `cols` and `rows` attributes are used to specify the layout of frames within the browser window.

In the context of HTML framesets, the `cols` attribute is used to define the width of individual frames arranged horizontally, while the `rows` attribute is used to define the height of frames arranged vertically.

Here's an example usage of `cols` and `rows` attributes:

```html
<frameset cols="25%, 75%">
<frame src="frame1.html">
<frame src="frame2.html">
</frameset>
```

In the above example, the `cols` attribute divides the width of the frameset into two columns, where the first frame occupies 25% of the width, and the second frame occupies 75% of the width.

Similarly, the `rows` attribute can be used to define the height of frames:

```html
<frameset rows="50%, 50%">
<frame src="frame1.html">
<frame src="frame2.html">
</frameset>
```

In this case, the `rows` attribute divides the height of the frameset into two rows, each occupying 50% of the height.

Note that the use of framesets is considered outdated in modern web development, and alternative approaches like CSS layouts, flexbox, or grid systems are often preferred.

MCQ: The ____ and ______ attributes specify the layout of frames within the browser window.

Correct Answer: A. frames and frameset.

Explanation:

The `cols` and `rows` attributes are used to specify the layout of frames within the browser window.

In the context of HTML framesets, the `cols` attribute is used to define the width of individual frames arranged horizontally, while the `rows` attribute is used to define the height of frames arranged vertically.

Here's an example usage of `cols` and `rows` attributes:

```html
<frameset cols="25%, 75%">
<frame src="frame1.html">
<frame src="frame2.html">
</frameset>
```

In the above example, the `cols` attribute divides the width of the frameset into two columns, where the first frame occupies 25% of the width, and the second frame occupies 75% of the width.

Similarly, the `rows` attribute can be used to define the height of frames:

```html
<frameset rows="50%, 50%">
<frame src="frame1.html">
<frame src="frame2.html">
</frameset>
```

In this case, the `rows` attribute divides the height of the frameset into two rows, each occupying 50% of the height.

Note that the use of framesets is considered outdated in modern web development, and alternative approaches like CSS layouts, flexbox, or grid systems are often preferred.

Discuss a Question

Related Questions

You may be interested in:

Web Fundamental MCQs

Recently Added Articles

5 Best Amazon Advertising Agencies for Growing Brands

Last updated on: November 6, 2026Posted by: ExamRadar

Best Free AI Humanizers for Academic Writing

Last updated on: October 30, 2026Posted by: ExamRadar

How Image to Text Conversion Make Printed Study Materials Easier to Use?

Last updated on: October 23, 2026Posted by: ExamRadar

7 Best Online Exam Makers for Teachers, Schools, and Businesses

Last updated on: October 21, 2026Posted by: ExamRadar

How to pick a Bintan resort when you’ve only got 48 hours

Last updated on: September 23, 2026Posted by: ExamRadar

Features to Look for While Choosing the Best Automation Tool

Last updated on: July 15, 2026Posted by: ExamRadar

AI vs Machine Learning: Key Differences Every Professional Should Know

Last updated on: February 13, 2026Posted by: ExamRadar