September 2024
Intermediate to advanced
743 pages
27h 48m
English
With the knowledge from the previous section, let’s return to our initial web server example. Our goal should now be more than simply returning “Hello World,” but to read a Hypertext Markup Language (HTML) file from the file system and return that data instead.
For our HTML code, we want to use one of the sample forms from Chapter 3. In addition, as in real life, for to enable the reusability of stylesheets, we’ll store the Cascading Style Sheets (CSS) code in a separate file. Overall, this preparation results in an HTML file and a CSS file.
<!DOCTYPE html><html><head> <title>Designing Forms</title> <link href="../css/styles.css" type="text/css" rel="stylesheet" /></head><body> <form> ...
Read now
Unlock full access