I want to keep background image in html, and that too i want html background image full screen. So how can we insert a background image in css or html ? it will be really helpful if you guys share a example program.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
sita
Adding a background image within your HTML document is very easy. You can do it easily by adding a background attribute to your HTML body tag.
You need to open the text editor you usually use for developing a code and add the background attribute in the body tag. This is how your background attribute tag will look like:
<Body background=”the image url”> followed by the paragraph tag and other tags of your choice.
Note: Do not forget to close the body tag once you have completed adding all the codes to your text editor.
There are many ways to create a website. However, using the programming languages such as HTML and CSS is recommended. There are many website development companies. You can click here to find some of the best website development companies in Delhi
Here is the example program which shows How to set a Background image in Html
<Html>
<Head>
<Title>
Add the Background image using background attribute
</Title>
</Head>
<Body background="https://1.bp.blogspot.com/-sTxAHAxirGM/WVbAe2098nI/AAAAAAABENs/_I5sYMYgLOUzaIE7FfF4qdGX-hoAkq9SgCLcBGAs/s1600/Blog_20170624_113552.jpg">
<h1>Add background image easily</h1>
<p>This page helps us to understand how to show the backround image of a web page. </p>
<p>And, this section helps you to understand how to add the background image in an Html page using the background attribute. </p>
</Body>
</Html>