Computer Applications
Answer the following:
(i) What is the use of dir attribute of <HTML> tag?
(ii) Write the equivalent inline CSS for the following HTML tag.
(a) <body bgcolor = "red">
(b) <img src = "garden.jpg" height = 15 width = 30>
CSS
3 Likes
Answer
(i) The dir attribute of HTML tag specifies the direction of an element's text. This attribute can have the values either ltr (left to right) or rtl (right to left). By default, the value of dir attribute is ltr.
(ii) The equivalent inline CSS for the following HTML tags is as follows:
(a) <body style = "background-color: red;">
(b) <img src = "garden.jpg" style = "height: 15px; width: 30px;">
Answered By
2 Likes
Related Questions
Observe the following list and write the code to generate it.
- Fruits
- Mango
- Orange
- Vegetables
- Cabbage
- Capsicum
- Green Capsicum
- Yellow Capsicum
- Red Capsicum
Define cascading style sheet.
Arvind has to prepare a list of students belonging to different classes. He has to mention their roll numbers and footers at the bottom of the table. Observe the given table and write the code to display this table.

Write the HTML code to design the web page as shown below, considering the specifications that follow. You can write the code for the given specifications.

(i) Title of the page is "People's Public School".
(ii) Link color is "Fuchsia".
(iii) Font face for the page is "Calibri".
(iv) The color of heading of the page is "Red".
(v) Image used as school.jpg.