What is the correct HTML code to add color to the background?
What is the correct HTML code to add color to the background?
बैकग्राउंड में रंग जोड़ने के लिए सही HTML कोड क्या है?
A. <body bgcolor = “Blue”>
B. <body background = “Blue”>
C. <body color = “Blue”>
D. <background> Blue </background>
Detailed Solution & Logic
A
Answer: 1
To add background color to an HTML document, the HTML code should be as follows- <html> <head> <title>onlinestudytest.com</title> </head> <body bgcolor="Blue"> </body> </html> When the above code is run, the document background will be displayed in blue color
Similar Practice Questions
What is required to create HTML document- / HTML दस्तावेज़ बनाने के…
What is required to create HTML document- HTML दस्तावेज़ बनाने के लिए क्या आवश्यक है-
To write headings in HTML Heading tags are available. / HTML में…
To write headings in HTML Heading tags are available. HTML में हेडिंग लिखने के लिए...
Which tag should be the first in any HTML document?
Which tag should be the first in any HTML document? किसी भी HTML दस्तावेज़ में...
HTML used tag for line breaks-
HTML used tag for line breaks- HTML मे लाइन ब्रेक के लिए कौन स टेग...
The correct HTML tag for the largest heading is-
The correct HTML tag for the largest heading is- सबसे बड़ी हेडिंग के लिए सही...
What is the correct HTML to create a hyperlink?
What is the correct HTML to create a hyperlink? हाइपरलिंक बनाने के लिए सही HTML...
The <DT> tag is designed to contain a single line of our web page but the <DD> tag will accept a-
The <DT> tag is designed to contain a single line of our web page but...