<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How do I put an image at the background of my website? - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/how-do-i-put-an-image-at-the-background-of-my-website/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/how-do-i-put-an-image-at-the-background-of-my-website/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Fri, 06 May 2022 06:06:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>How do I put an image at the background of my website? - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/how-do-i-put-an-image-at-the-background-of-my-website/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to set background image of a webpage ?</title>
		<link>https://www.wikitechy.com/interview-questions/web-designing/how-to-set-background-image-of-a-webpage/</link>
					<comments>https://www.wikitechy.com/interview-questions/web-designing/how-to-set-background-image-of-a-webpage/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Fri, 06 May 2022 06:06:12 +0000</pubDate>
				<category><![CDATA[Web Designing]]></category>
		<category><![CDATA[background-image - CSS]]></category>
		<category><![CDATA[How do I put an image at the background of my website?]]></category>
		<category><![CDATA[How to Add an Image & Background Image in HTML]]></category>
		<category><![CDATA[How to add an image as background image of a web page]]></category>
		<category><![CDATA[How to add Background Image in Html]]></category>
		<category><![CDATA[How to Implement a Background Image in HTML]]></category>
		<category><![CDATA[How to Set a Background Image in HTML]]></category>
		<category><![CDATA[How to set background image of a webpage?]]></category>
		<category><![CDATA[HTML Background Images]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4325</guid>

					<description><![CDATA[We can easily add the background Image in the Html document which is to be displayed on a web page in HTML. In this method there are two following steps: a. Using the Background attribute: Open the existing HTML file in the text editor in which we want to use the background attribute or we [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li>We can easily add the background Image in the Html document which is to be displayed on a web page in HTML.</li>
</ul>
<p>In this method there are two following steps:</p>
<h3 id="a-using-the-background-attribute"><strong>a. Using the Background attribute</strong>:</h3>
<ul>
<li>Open the existing HTML file in the text editor in which we want to use the background attribute or we have to type the Html code in any text editor.</li>
<li>In HTML document move the cursor within the starting <a href="https://www.wikitechy.com/step-by-step-html-tutorials/body-tag-in-html"><strong>&lt;body&gt;</strong></a> <strong>tag </strong>And, then type the <strong>background</strong> <strong>attribute </strong>as shown in the following block.</li>
<li>While we have to add image just, we want to create path.</li>
<li>We have to save the HTML code or HTML file in the text editor.</li>
</ul>
<p><strong>For example,</strong></p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">&lt;!doctype Html&gt;<br/>&lt;html&gt;<br/>  &lt;head&gt;<br/>    &lt;title&gt; Add the Background image using background attribute &lt;/title&gt;<br/>  &lt;/head&gt;<br/>  &lt;body background=&quot;http://www.wikitechy.com/img/logo.png&quot;&gt; Wikitechy &lt;br&gt; Html Tutorial &lt;br&gt; This is wikitechy logo. &lt;br&gt;&lt;br&gt;&lt;/body&gt;<br/>&lt;/html&gt;</code></pre> </div>
<p><strong>Output :</strong></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4326 aligncenter" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images.png" alt="" width="1273" height="886" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images.png 1273w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images-300x209.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images-1024x713.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images-768x535.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images-390x271.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images-820x571.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/html-background-images-1180x821.png 1180w" sizes="(max-width: 1273px) 100vw, 1273px" /></p>
<p>&nbsp;</p>
<h3 id="b-using-internal-style-sheet"><strong>b. Using internal style sheet</strong></h3>
<ul>
<li>Open the existing HTML file in the text editor in which we want to use the background attribute or we have to type the Html code in any text editor.</li>
<li>In HTML document we have to place the cursor in the <strong><a href="https://www.wikitechy.com/step-by-step-html-tutorials/head-tag-in-html">head</a> tag</strong> and define the starting and closing tag of the <a href="https://www.wikitechy.com/step-by-step-html-tutorials/style-tag-in-html"><strong>&lt;style&gt; </strong></a>tag as shown in the following block.</li>
<li>In style tag, we have to type the element body and, then type the <strong>background-image</strong></li>
<li>In text editor, we have to save the Html code and run the code.</li>
<li>we will see the image specified in the html document as a background of the web page, after execution.</li>
</ul>
<p><strong>For example,</strong></p>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-markup code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-markup code-embed-code">&lt;!DOCTYPE html&gt;<br/>&lt;html&gt;<br/>  &lt;head&gt;<br/>    &lt;style&gt;<br/>      body {<br/>        background-image: url(&quot;http://www.wikitechy.com/img/logo.png&quot;);<br/>      }<br/>    &lt;/style&gt;<br/>  &lt;/head&gt;<br/>  &lt;body&gt; This is wikitechy logo! &lt;/body&gt;<br/>&lt;/html&gt;</code></pre> </div>
<p><strong>Output:</strong></p>
<p><img decoding="async" class="alignnone size-full wp-image-4327" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html.png" alt="" width="1272" height="887" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html.png 1272w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html-300x209.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html-1024x714.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html-768x536.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html-390x272.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html-820x572.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/05/how-to-add-background-image-in-html-1180x823.png 1180w" sizes="(max-width: 1272px) 100vw, 1272px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/web-designing/how-to-set-background-image-of-a-webpage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
