Files
Camilou.fr/HTML/Archives/chatgpt pourri.html
T
2026-05-29 21:10:04 +02:00

159 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
color: #333;
}
h1 {
color: #ff6600;
text-align: center;
font-size: 3em;
margin-top: 50px;
}
p {
font-size: 1.2em;
line-height: 1.5em;
margin-top: 20px;
margin-bottom: 20px;
}
a {
color: #ff6600;
text-decoration: none;
border-bottom: 2px solid #ff6600;
}
a:hover {
color: #333;
border-bottom-color: #333;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
margin-bottom: 50px;
max-width: 100%;
height: auto;
}
table {
border-collapse: collapse;
width: 100%;
margin-top: 50px;
margin-bottom: 50px;
}
th, td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f2f2f2;
}
tr:hover {
background-color:#f5f5f5
}
code {
background-color:#f2f2f2;
border-radius:4px;
font-family:"Courier New", Courier, monospace;
font-size:.9em;
margin-left:auto;
margin-right:auto;
padding:.5em;
display:block;
width:auto;
overflow-x:auto
}
.container {
display:flex;
flex-wrap:wrap;
justify-content:center
}
.card {
width:300px;
height:auto;
margin-right:20px;
margin-bottom:20px;
background-color:#fff;
box-shadow:-1px 1px 10px rgba(0,0,0,.1);
border-radius:.5rem
}
.card img {
width:auto;
height:auto;
max-width:100%;
max-height:none
}
.card h3 {
font-size:.9rem;
font-weight:bold;
margin-top:.5rem
}
.card p {
font-size:.8rem
}
@media screen and (max-width:768px) {
.container {justify-content:flex-start}
.card {margin-right:0;margin-bottom:20px;}
}
</style>
</head>
<body>
<h1>Welcome to my webpage!</h1>
<p>This is a normal site.</p>
<a href="#">Click here</a> to learn more.
<img src="https://i.imgur.com/7zjzZvL.jpg" alt="A beautiful landscape">
<table>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>25</td>
</tr>
<tr>
<td>Jane</td>
<td>Doe</td>
<td>30</td>
</tr>
</table>
<code>&lt;p&gt;This is a paragraph.&lt;/p&gt;</code>
<div class="container">
<div class="card">
<img src="https://i.imgur.com/7zjzZvL.jpg" alt="A beautiful landscape">
<h3>Card Title</h3>
<p>This is a card description.</p>
</div>
<div class="card">
<img src="https://i.imgur.com/7zjzZvL.jpg" alt="A beautiful landscape">
<h3>Card Title</h3>
<p>This is a card description.</p>
</div>
<div class="card">
<img src="https://i.imgur.com/7zjzZvL.jpg" alt="A beautiful landscape">
<h3>