📖 Samacheer Kalvi · 11th TN - English Medium · Computer Applications · Page 277definition

Mahakavi Bharathi

Chapter 6: 12 · Computer Applications

Mahakavi Bharathi Align: The align attribute used to aligns the image with respect to the base line of the text. This attribute has the following values. • Bottom – Aligns the bottom of the image with the baseline of the text. This is the default setting.

• Middle – Aligns the middle of the image with the baseline of the text. • Top – Aligns the top of the image with the baseline of the text. Left and Right values of Align attribute: Using left and right values with align attribute, displayed the image on the left and right side of the text. <html> <head> <title> Attributes of <img> tag </title> </head> <body> <h2> Attributes of image tag </h2> <img src="D:\Images\Bird.jpg" alt="Parrot Image"> This text is aligned in the bottom of the image by default <br> <br> <br> <img src="D:\Images\Bird.jpg" alt="Parrot Image" align=top > This text is aligned in the top of the image <br><br> <img src="D:\Images\Bird.jpg" alt="Parrot Image" align=middle > This text is aligned on the middle of the image </body> </html> Illustration .

: An HTML code to demonstrate baseline of text Chapter Pages The output will be: D:\ \ File Edit View Favorites Tools Help This text is aligned in the bottom of the image by default This text is aligned in the top of the image This text is aligned in the middle of the image Attributes of image tag Attributes of <img>tag . Scrolling text using <Marquee> In HTML, a piece of text or image can be moved horizontally or vertically by using <marquee> tag. This feature makes a web page as more attractive. General format: <marquee> Text or image to be scroll </marquee> Attributes of <marquee> Height and Width These attributes are used to set height and width of the marquee.

The values should be either in pixels or in percentage of browser window. Direction This is used to specify the direction of the movement of text or image. The text or image will move towards right to left by default. So, the default direction is left.

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →