PromptBase
PromptBase SelectGet Select
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
Completion - GPT-3.5 (text-davinci-003)
Token size
99 ($0.00200 / call)
Example input
Hotel
Example output
HTML Code: <!DOCTYPE html> <html> <head> <title>Hotel</title> </head> <body> <header> <h1>Hotel</h1> <nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="rooms.html">Rooms</a></li> <li><a href="amenities.html">Amenities</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </header> <main> <h2>Welcome to our Hotel!</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec finibus nibh eget ligula tincidunt, nec congue tellus eleifend. Donec et tincidunt diam. Donec accumsan velit vel tellus sollicitudin, et interdum ipsum luctus.</p> <img src="hotel.jpg" alt="Picture of our Hotel"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vel velit sed lacus consequat blandit. Sed et magna velit. Proin velit diam, aliquet ac maximus quis, faucibus ut leo. Sed venenatis sed risus quis congue.</p> </main> <footer> <p>Hotel, 123 Street, City, Province, Postal Code</p> <p>Phone: (123) 456-7890</p> <p>Email: info@hotel.com</p> </footer> </body> </html> CSS Code: body { font-family: sans-serif; font-size: 0.9em; margin: 0; padding: 0; } header { background-color: #eee; } header h1 { font-size: 1.5em; margin: 0; padding: 0.5em; } nav { padding: 0.5em; } nav ul { list-style-type: none; margin: 0; padding: 0; } nav ul li { display: inline; padding-right: 1em; } main { padding: 0.5em; } img { width: 100%; } footer { background-color: #eee; padding: 0.5em; } JavaScript Code: // Get the nav menu const menu = document.querySelector('nav'); // Add a click event listener on the menu menu.addEventListener('click', function(e) { // Check if the clicked element is an anchor tag if (e.target.tagName === 'A') { // Get the href attribute of the anchor tag const page = e.target.getAttribute('href'); // Fetch the content of the page and insert it into the main section fetch(page) .then(response => response.text()) .then(data => { document.querySelector('main').innerHTML = data; }); } });
GPT

Web Page Generator For Specific Targets

Add to Cart
PromptBase Select
Get this prompt + 9 more with Select$14 your first month, then $19/mo$14 first month, then $19/mo
View Select
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
TEXT-DAVINCI-003
Tested icon
Guide icon
Free credits icon
This prompt generates the necessary HTML, CSS, and JavaScript code for a custom web page designed to achieve a specific target or purpose. The web page includes a header, footer, and main content section.
...more
Added over 1 month ago
Report
Browse Marketplace