logo

Very Short Question and Answers - Align Attribute


Q 1.
What is the purpose of the 'align' attribute in the <img> tag?

Ans:

Q 2.
Is the 'align' attribute recommended for use in HTML5?

Ans:

Q 3.
What happens when you set align="left" on an <img> tag?

Ans:

Q 4.
Describe the effect of align="right" on the <img> element.

Ans:

Q 5.
List the values of 'align' that are used for vertical alignment in the <img> tag.

Ans:

Q 6.
What does align="top" do to an image?

Ans:

Q 7.
How does align="middle" affect the image's alignment?

Ans:

Q 8.
What is the default vertical alignment for images when using the <img> tag?

Ans:

Q 9.
Define a floating image in HTML.

Ans:

Q 10.
How were floating images created in older versions of HTML?

Ans:

Q 11.
Write the HTML code to float an image to the left using the align attribute.

Ans:

Q 12.
What is the modern way to float images in HTML?

Ans:

Q 13.
Why is the align attribute deprecated in HTML5?

Ans:

Q 14.
Give an example of an image floated to the right using CSS.

Ans:

Q 15.
What is the difference in usage between align="left" and align="middle"?

Ans:

Q 16.
State whether the following statement is True or False: The align attribute can still be used in all modern browsers.

Ans:

Q 17.
Which HTML attribute would you use in modern HTML to float an image?

Ans:

Q 18.
What kind of layout effect does aligning an image to the left or right create on a web page?

Ans:

Q 19.
If you want a centered image using CSS, what style would you use?

Ans:

Q 20.
Summarize the main use and limitation of the align attribute in the <img> tag.

Ans: