A. Write 2 XHTML Documents with the following i. Your name or campus ID in the t
ID: 3879972 • Letter: A
Question
A. Write 2 XHTML Documents with the following i. Your name or campus ID in the title i. Assignment 2 is a heading ii Uses Tables for layout iv. Validate Your Code a. Have a validation link v. Contains a form on each page a. The form on the first page requires a. Method is "get" b. Submits to "codd.../ cfrederick1/submitassn2login.php C. Contains a. a text input with label usemame b. a password input with label password d. The input ids (name attributes) are a. username b. password b. The form on the second page requires a. Method is "get" b. Submits to "codd...I cfrederick1/submitassn2.php" a. C. Contains a. Two Check boxes b. Three "Radio" inputs C. A "Select List" with 3 options d. The input ids (name attributes) are a. "check1" b. "radio1" c. "select1" e. The values and labels can be menu items; You can be creative vi. Add links to these documents on your main index.html page vii. Submit both HTML documents by posting on the Codd ServerExplanation / Answer
Hi.. I have created the html files Please check below code.
main.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Kumar</title>
</head>
<body>
<h1>Assignment 2</h1>
<br/>
<form name="main" method="get" action="codd/../~cfrederick1/submitassn2login.php">
<table>
<tr>
<td><label>UserName</label></td>
<td><input type="text" name="username"/></td>
</tr>
<tr>
<td><label>Password</label></td>
<td><input type="password" name="password"/></td>
</tr>
<tr>
<td colspan="2"> <input type="submit" name="submit" value="Login" /></td>
</tr>
</table>
<a href="index.html">Open Index Page</a>
</form>
</body>
</html>
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Kumar</title>
</head>
<body>
<h1>Assignment 2</h1>
<br/>
<form name="main" method="get" action="codd/../~cfrederick1/submitassn2.php">
<table>
<tr>
<td><label>Department</label></td>
<td>
<input type="checkbox" name="check1" /> CSE <input type="checkbox" name="check1" /> ECE
</td>
</tr>
<tr>
<td><label>Gender</label></td>
<td>
<input type="radio" name="radio1" /> Male <input type="radio" name="radio1" /> Female
<input type="radio" name="radio1" /> Transgender
</td>
</tr>
<tr>
<td><label>Location</label></td>
<td>
<select name="select1">
<option>Hyderbad</option>
<option>Delhi</option>
<option>Vishakapatanam</option>
</select>
</td>
</tr>
<tr>
<td colspan="2"> <input type="submit" name="submit" value="Submit" /></td>
</tr>
</table>
<a href="main.html">Open Main Page</a>
</form>
</body>
</html>
I have validated the code in validator.w3c.org. It has successfull with no errors. Please check the code and let me know any issues. Thank you. All the best.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.