html – How to stretch an image to full screen?

Question:

How to stretch the image to full screen if I write this HTML code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Trancitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Словарь терминов</title>
    </head>
    **<body background="img/image.jpg"  align="center" width="250" height="150">**
        <center><h1>Словарь терминов</h1></center>

My screen is 1280×800.

Answer:

CSS3:

body {
        background: url(img/image.jpg) no-repeat center center fixed;
        background-size: cover;
}

More options .

Scroll to Top