Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Pls help me identify errors in this HTML code?

<body style="background-color:red;background-image:pic.jpg;margin:100px 200px 200px 100px;

font-style:italic">

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Try this

    background-image: url(pic.jpg);

    Have fun.

  • 1 decade ago

    heellooo

    can u post the complete code instead of trunket one i.e without those 3 dots :D

    and also u can shorten ur style so instead of defining the background color and image seprately u can define in one property like :

    background: red (url) no-repeat top left;

    now about this code

    red - color it can be anything

    (url) - ur image src

    no-repeat - u can define image to be non -repeated or u can also repeate it x or y coordinates

    top left - it's the placement of the image u can also defined in px as per ur image placement.

    :)

    cheers!!

Still have questions? Get your answers by asking now.