Person.CSP — The HTML
Open the newly imported Person.CSP in Studio. Here is the code that it contains:
<%@ PAGE LANGUAGE="mvBASIC" %> <html> <head> <link rel="stylesheet" type="text/css" href="table_style.css" /> <title> Persons </title> </head> <body> <table align="center"> <tr><th>Name</th><th>Age</th><th >Hair</th> <th>View Phones</th></tr> <caption>Person List</caption> </table> </body> </html>
This file contains all of the HTML code that we need to develop Person.CSP. Notice the following:
-
There is a Page directive at the very top of the file that sets the default language of the page to MVBasic.
-
There is a <link/> tag between the <head></head> tags. This tag links the CSP page to the style sheet that contains HTML styling information.
-
There are <table></table> tags between the <body></body> tags. These tags define the HTML table that will format the data from MVFILE.PERSON.