How to add a background image to a paragraph (<p> tag) in HTML

1 Answer

0 votes
<!DOCTYPE html>
<html>
    <body>

        <p style="background-image:url('http://www.all-battery.com/images/products/display/61082-Mini-Apache-2x250.jpg')">
            Text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
            text <br \>
        </p>

    </body>
</html>

 



answered Dec 11, 2018 by avibootz

Related questions

...