This commit is contained in:
FlyInTheBox 2022-10-26 14:41:47 +02:00
parent 57bfab5da0
commit b242826670
2 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,21 @@
li {
margin-left: 40px;
list-style: upper-roman;
}
.td1 {
border: 1px dotted black;
padding: 10px;
}
table {
border-collapse: collapse;
}
.ld {
background-color: lightgray;
border: 1px solid gray;
padding: 10px;
}
.rd {
background-color: greenyellow;
border: 1px solid lawngreen;
padding: 10px;
}

View file

@ -0,0 +1,67 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="fora.css">
</head>
<body>
<ol>
<?PHP
/*for ($i = 1; $i <= 100; $i++) {
echo "<li>To jest $i element listy.</li>";
}
*/
?>
</ol>
<table>
<tr>
<?PHP
$a = str_split("Witaj swiecie!", 1);
foreach ($a as $b) {
echo "<td class='td1'>$b</td>";
}
?>
</tr>
</table>
<br>
<table>
<tr>
<?PHP
$a = str_split("Kon'nichiwa sekai", 1);
foreach ($a as $b) {
echo "<td class='td1'>$b</td>";
}
?>
</tr>
</table>
<br>
<table>
<?php
$n = 0;
while ($n<5) {
$n++;
echo "<tr><td class='ld'>To jest wiersz numer $n</td></tr>";
}
?>
</table>
<br>
<table>
<tr>
<?PHP
$d = 0;
while ($d<5) {
$d++;
echo "<td class='rd'>To jest kolumna numer $d</td>";
}
?>
</tr>
</table>
</body>
</html>