HTML Background Images
In this Blog we learn that how to change background color in HTML and how to use background element in Backgrounds.
1. In this blog we use Internal CSS to change a background.
2. We given a code Below in this Blog and
You can see on youtube video link here: Click Here
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Image Background</title>
<style type="text/css">
body{background-image: url(D:\mybloglogo.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: auto;}
</style>
</head>
<body>
<h2>What is Lorem Ipsum? </h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p>
</body>
</html>
You can paste this code into Sublime Text Editor and See how it is work.
Comments
Post a Comment