Paul McFedries

“Information appears to stew out of me naturally, like the precious ottar of roses out of the otter.” —⁠Mark Twain

Build a Website with ChatGPT

How to get ChatGPT to help you craft your own website

Front cover of the book Build a Website with ChatGPT

Book Info

  • Publisher: Manning Publications
  • Pages: 320
  • Price: US$39.99
  • Pub. date: August 27, 2024
  • Category: web design
  • Tags: artificial intelligence, ChatGPT, web development

“O brave new world, that has such people in it!” That quote is from William Shakespeare’s play The Tempest and is spoken by the child Miranda when she encounters a crowd of people for the first time. You’re unlikely to have been banished to a remote island as a child, but you might still find yourself echoing Miranda’s words when you encounter any of the current crop of artificial intelligence (AI) apps for the first time. It’s a brave new world, indeed, that has such chatbots in it.

Tools such as ChatGPT seem wondrous at first because they appear to be quite good at putting words together. Ask ChatGPT to “Write a Shakespearean sonnet that summarizes the plot of Cormac McCarthy’s novel The Road” and it will comply. No, the resulting poem won’t be Shakespeare-quality, but it will be entertaining. However, after a while, this kind of cheap entertainment wears thin and most ChatGPT users find themselves asking a question along the lines of “What is ChatGPT truly useful for?”

That’s generally a tough question to answer, with one exception: code. ChatGPT is genuinely useful for turning text instructions into programming code. In particular, ChatGPT is quite good at converting text into the code required to construct a web page. This is quite extraordinary, and it means that now anyone can build a presence on the web, even if they can’t or don’t want to learn the intricacies of web development.

There are, however, a couple of catches to this newfangled way of getting on the web. First, yes, ChatGPT is very good at turning text into web page code, but only if you know how to formulate that text with detailed instructions for ChatGPT to follow. Second, even once ChatGPT has successfully generated all the code you need for a web page, you still need to save that code somewhere and then get it on the web somehow. Those might seem like high hurdles to jump, but that’s where this book comes in. In the pages that follow, you learn not only how to instruct ChatGPT like a pro to get exactly the web page you want, but also how to save that code and then deploy it to the web for all the world to see.

Welcome, then, to the brave new world of building your very own website with the help of ChatGPT.

You can access the book’s sample files in two ways:

To read the book’s first chapter, download it (PDF; 276KB).

Related Books
Buy It