Hi! The problem lies in the way you are trying to add the background image in the <body> tag. The background attribute in the <body> tag is outdated and no longer supported in modern HTML specifications. Instead, you should use CSS to add a background image.
Using C:\Users\User\OneDrive\Desktop\test\backgroundpicture.png in url() does not work in HTML because browsers cannot directly read file paths in this way. This approach works only in very specific setups and is not recommended.
Instead, you should move the image file to the same directory as your HTML file and use a relative path like 'backgroundpicture.png'.
In some cases, Windows-style paths (C:.…) need to be converted to forward slashes (/), which browsers understand better.
.. moves up one directory.
Ensure the image is in the correct folder.
The browser may be caching your CSS. Force a refresh with Ctrl + F5 or clear the cache.
If your project is being served from a server (e.g., local dev server), confirm the image is accessible. Try opening the image in a browser directly via its URL.
Check if another CSS rule is overriding the background image. Use the browser’s Inspect Tool to see applied styles.