(ahtml markup involves tags enclosed in angle braces computer science ending tags start with '/for instance tags may be modified with attributes specified similar to python string assignmentsfor example the text input field tag(bmodern editors allow html to be edited much like in word processor two views of the data are usefulthe formatted view and the source viewshowing the raw html markup python and htmlsince html is just text stringit can easily be manipulated in pythonand read and written to text files [dynamically created static local pages from python (page ) the webbrowser module has function openthat will open file or web url in your default browser[dynamically created static local pages from python (page )webbrowser openfilename common gateway interface (cgithe sequence of events for generating dynamic web page via cgi[an example in operation (page )(athe data user types is handled directly by the browser it recognizes forms (bthe user presses submit button an action is stored in the form saying what to do when the button is pressed (cin the cases we consider in this tutorialthe action is given as web resourcegiving the location of cgi script on some server the browser sends the data that you entered to that web location (dthe server recognizes the page as an executable scriptsees that it is python programand executes itusing the data sent along from the browser form as input (ethe script runsmanipulates the input data into some resultsand puts those results into the text of web page that is the output of the program (fthe server captures this output from the program and send it back to the user' browser as new page to display (gthe results appear in the user' browser the cgi module (acreate the object to process cgi input with [adder cgi (page )form cgi fieldstorage((bextract the first value specified by the browser with name nameattribor use default if no such value exists [adder cgi (page )variable form getfirstnameattrib default (cextract the list of all values specified by the browser associated with name nameattrib [more advanced examples (page )listvariable form getlistnameattrib this case occurs if you have number of checkboxesall with the same namebut different values the list may be empty local python servers (apython has module for creating local testing server that can handle static web pages and python cgi scripts [an example in operation (page ) dynamic web pages