{"id":1493,"date":"2024-01-24T07:34:04","date_gmt":"2024-01-24T07:34:04","guid":{"rendered":"https:\/\/www.skillvertex.com\/blog\/?p=1493"},"modified":"2024-01-24T07:34:04","modified_gmt":"2024-01-24T07:34:04","slug":"what-is-the-correct-html-for-adding-a-background-color","status":"publish","type":"post","link":"https:\/\/www.skillvertex.com\/blog\/what-is-the-correct-html-for-adding-a-background-color\/","title":{"rendered":"What Is The Correct Html For Adding A Background Color"},"content":{"rendered":"\n<p>a.&lt;body color = \u201cgreen\u201d&gt;<\/p>\n\n\n\n<p>b.&lt;body bgcolor = \u201cgreen\u201d&gt;<\/p>\n\n\n\n<p>c.&lt;background&gt; green &lt;\/background&gt;<\/p>\n\n\n\n<p>d.&lt;body bg = \u201cgreen\u201d&gt;\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is The Correct Html For Adding A Background Color<\/h2>\n\n\n\n<p>Answer. <\/p>\n\n\n\n<p>The correct HTML syntax for setting the background color of the <code>&lt;body&gt;<\/code> element to green is option (b):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;body bgcolor=\"green\"&gt;<\/code><\/pre>\n\n\n\n<p>So, the correct choice is (b).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>a.&lt;body color = \u201cgreen\u201d&gt; b.&lt;body bgcolor = \u201cgreen\u201d&gt; c.&lt;background&gt; green &lt;\/background&gt; d.&lt;body bg = \u201cgreen\u201d&gt;\u200b What Is The Correct Html For Adding A Background Color Answer. The correct HTML syntax for setting the background color of the &lt;body&gt; element to green is option (b): So, the correct choice is (b).<\/p>\n","protected":false},"author":4,"featured_media":1497,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,224],"tags":[246],"class_list":["post-1493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-science","category-question-answer","tag-what-is-the-correct-html-for-adding-a-background-color","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"_links":{"self":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts\/1493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/comments?post=1493"}],"version-history":[{"count":1,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts\/1493\/revisions"}],"predecessor-version":[{"id":1494,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/posts\/1493\/revisions\/1494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/media\/1497"}],"wp:attachment":[{"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/categories?post=1493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skillvertex.com\/blog\/wp-json\/wp\/v2\/tags?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}