2 Creating and deploying your first web page

 

This chapter covers

  • Understanding the process of creating and deploying a web page
  • Using a ChatGPT prompt to generate a complete web page
  • Copying the generated web page code
  • Saving the code to an HTML file
  • Getting your web page file on the web

It may still seem too good to be true that you can get ChatGPT to help you create a fully functional website without having to learn any web development code. If you remain skeptical, I hear you: even knowing a bit about how ChatGPT does its thing, there’s still an undeniable whiff of magic about the whole enterprise. After all, it’s not like you’re asking ChatGPT to tell you a knock-knock joke or write a haiku extolling the nutritional value of the rutabaga. No, we’re talking about all the code necessary to build a web page that actually does something semi-useful. That’s a complex ask by any criteria, so whatever remaining skepticism you have is totally warranted.

2.1 Understanding the process

2.2 Prompting ChatGPT to generate your web page code

2.2.1 Examining the result

2.2.2 Checking out a few other prompts for single-page websites

2.3 Copying ChatGPT’s web page code

2.3.1 Saving the web page code to an HTML file

2.4 Testing your web page in the browser

2.5 Deploying your web page

Summary