Even though I am enrolled in HTML and CSS classes, one aspect of external CSS that continues to baffle me is how to create a background image. I can successfully implement external css in other ways, but incorporating a background image has proven to be challenging for me.
Below is the HTML code I have been using:
<!DOCTYPE html>
<html lang="en>
<head>
<title>Forms</title>
<link rel="stylesheet" type="text/css" href="/CSS/forms.css">
</head>
<body>
<div id="Pictures"</div>
</body>
</html>
Here is the snippet from my CSS file:
#Pictures {
background-image:url(../home/brian/Desktop/Becky.JPG);
}
While I can make it work by using the <style>
tag within the HTML document, the challenge lies in implementing it through an external CSS file.