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

AI vs Machine Learning: Key Differences Every Professional Should Know

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

Office Cleaning Services That Elevate Sydney Offices

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

Mental Health Support That’s Closer Than You Think

Mental Health Support That’s Closer Than You Think

Last updated on: January 7, 2026Posted by: ExamRadar

Columbus roofing company

Transform Your Home’s Exterior with Columbus roofing company

Last updated on: November 27, 2025Posted by: ExamRadar

What to Ask Before Booking TMS Therapy Near Me

Last updated on: November 7, 2025Posted by: ExamRadar

5 Trading Strategies to Minimize Risk

Last updated on: October 18, 2025Posted by: ExamRadar