CSS background-repeat प्रॉपर्टी का उपयोग यह परिभाषित करने के लिए किया जाता है कि बैकग्राउंड इमेज खुद को कैसे रिपीट करती है।
सिंटैक्स
CSS background-repeat प्रॉपर्टी का सिंटैक्स निम्नलिखित है:
Selector { background-repeat: /*value*/ }उदाहरण
निम्नलिखित उदाहरण CSS background-repeat प्रॉपर्टी को दर्शाते हैं:
<!DOCTYPE html> <html> <head> <style> body { background-image: url("https://www.tutorialspoint.com/images/microsoftproject.png"); background-repeat: repeat; } </style> </head> <body> </body> </html>आउटपुट
यह निम्नलिखित आउटपुट देता है:

उदाहरण
<!DOCTYPE html> <html> <head> <style> ul { background-image: url("https://www.tutorialspoint.com/images/questions-answers.png"); background-repeat: space repeat; } </style> </head> <body> <h2>Tutorials</h2> <ul> <li>Java</li> <li>C#</li> <li>Etherum</li> <li>DBMS</li> <li>OS</li> </ul> </body> </html>आउटपुट
यह निम्नलिखित आउटपुट देता है:
