HTML tables Домашно


Това са моите решения на домашната към лекцията HTML tables:
Задача 1. Fresh Fruits:

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>01. FreshFruits</title>
		<meta name="description" content="" />
		<meta name="author" content="Teodor" />
		<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	</head>

	<body>
		<div>
			<table>
				<thead>
					<tr>
						<th colspan="2" >Fresh Fruits</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td> Lorem Ipsum is simply dummy text of the printing and typesetting industry.
						Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
						when an unknown printer took a galley of type and scrambled it to make a type specimen book.
						It has survived not only five centuries, but also the leap into electronic typesetting,
						remaining essentially unchanged. It was popularised in the
						1960s with the release of Letraset sheets containing Lorem Ipsum passages,
						and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </td>
						<td><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTTQGNk7s2TKT68hXqgoPbYZFgtXypD2NKghmWYxUJh2LntMeIe" alt="Testing Img" width="200" height="200" /></td>
					</tr>
				</tbody>
			</table>
		</div>
	</body>
</html>

Задача 2. Letters Table:

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>02. LettersTable</title>
		<meta name="description" content="" />
		<meta name="author" content="Teodor" />
		<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	</head>

	<body>
		<table border="1">
			<tr>
				<td colspan="3">Title goes here</td>
				<td>A</td>
				<td>B</td>
			</tr>
			<tr>
				<td rowspan="3">C</td>
				<td>D</td>
				<td>E</td>
				<td>F</td>
				<td>G</td>
			</tr>
			<tr>
				<td>H</td>
				<td colspan="2">I</td>
				<td rowspan="2">J</td>
			</tr>
			<tr>
				<td>K</td>
				<td>L</td>
				<td>M</td>
			</tr>
			<tr>
				<td>N</td>
				<td colspan="4">O</td>
			</tr>
		</table>
	</body>
</html>

Задача 3. Simple Web Form:

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>03. SimpleWebForm</title>
		<meta name="description" content="" />
		<meta name="author" content="Teodor" />
		<meta name="viewport" content="width=device-width; initial-scale=1.0" />
	</head>

	<body>
		<div>
			<form action="" method="post">
				<label for="name">Member name: </label>
				<input type="text" id="name" />
				<strong>*req</strong>
				<br />
				<label for="email">E-mail: </label>
				<input type="text" id="email" />
				<strong>*req</strong>
				<br />
				<label for="school">School: </label>
				<input type="text" id="school" />
				<strong>*req</strong>
				<br />
				<input type="submit" value="Submit" />
			</form>
		</div>
	</body>
</html>

Задача 4. Calculator:
HTML:

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>04. Calculator</title>
		<meta name="description" content="" />
		<meta name="author" content="Teodor" />
		<meta name="viewport" content="width=device-width; initial-scale=1.0" />
		<link href="style/ClacStyle.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<div>
			<form action="" method="post">
				<table border="1" cellspacing="0" cellpadding="0">
					<tr>
						<td colspan="4">
							<textarea id="result" dir="rtl">123</textarea>
						</td>
					</tr>
					<tr>
						<td>
						<input type="button" value="1" />
						</td>
						<td>
						<input type="button" value="2" />
						</td>
						<td>
						<input type="button" value="3" />
						</td>
						<td>
						<input type="button" value="+" />
						</td>
					</tr>
					<tr>
						<td>
						<input type="button" value="4" />
						</td>
						<td>
						<input type="button" value="5" />
						</td>
						<td>
						<input type="button" value="6" />
						</td>
						<td>
						<input type="button" value="-" />
						</td>
					</tr>
					<tr>
						<td>
						<input type="button" value="7" />
						</td>
						<td>
						<input type="button" value="8" />
						</td>
						<td>
						<input type="button" value="9" />
						</td>
						<td>
						<input type="button" value="*" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
						<input type="button" id="zero" value="0"/>
						</td>
						<td>
						<input type="button" value="." />
						</td>
						<td>
						<input type="button" value="/" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>

CSS:

#result
{
	width:202px; 
	height:40px;
}
#zero
{
	width: 102px; 
	height: 50px;
}

input[type="button"] 
{
	width: 50px;
	height: 50px;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s