<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<a href = "https://www.naver.com" alt= "Naver">Naver
<img src="naver.png"></a>
<br><!-- <br> is short for "break," and it is simply used to create line breaks in HTML.-->
<a href="https://www.google.com" alt= "google">Google
<img src="google.png"></a>
</body>
</html>
out put:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Html</title>
</head>
<body>
<h1> Hello, HTML!</h1>
<p> this is p tag.</p>
<h2> this is h2 tag</h2>
<p>em is <em>emphasize</em> using em tag</p>
<p>i tage is <i>italic</i> using i tag</p>
</body>
</html>
out put:
this is p tag.
em is emphasize using em tag
i tage is italic using i tag
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1> ordered list ex</h1>
<h2>1. Basic ordered lists</h2>
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
<h2>2. Nested ordered lists</h2>
<ol>
<li>Programming Language
<ol>
<li>Python</li>
<li>JavaScript</li>
<li>JAVA</li>
</ol>
</li>
<li>DB
<ol>
<li>MYSQL</li>
<li>MongoDB</li>
</ol>
</li>
</ol>
<h2>3. changing ordered style</h2>
<ol type = "A">
<li>first object</li>
<li>second object</li>
<li>third object</li>
</ol>
<h1> DL, DT, DD TAG</h1>
<h2>1. Default description list</h2>
<dl>
<dt>HTML</dt>
<dd>HTML is a markup language that defines the structure of a web page.</dd>
<dt>CSS</dt>
<dd>CSS is styling HTML elements</dd>
<dt>JavaScript</dt>
<dd>JavaScript is a programming language that adds dynamic functionality to web pages.</dd>
</dl>
<h2>2. Nested Description lists</h2>
<dl>
<dt>Programming Language</dt>
<dd>
<dl>
<dt>Python</dt>
<dd>Python is good</dd>
<dt>JavaScript</dt>
<dd>JAVAScript also is good</dd>
</dl>
</dd>
<dt>DB</dt>
<dd>
<dl>
<dt>MYSQL</dt>
<dd>DBMS system</dd>
<dt>MongoDB</dt>
<dd>NoSql</dd>
</dl>
</dd>
</dl>
</body>
</html>
out put:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table</title>
<style>
table{
width: 50%;
border-collapse: collapse;
margin: 20px;
}
th, td {
border: 1px solid #ddd;
padding: 10px;
text-align: center;
}
th{
background-color: #f4f4f4;
}
caption {
font-weight: bold;
margin-bottom: 10px;
}
tfoot{
background-color: #f9f9f9;
font-weight: bold;
}
</style>
</head>
<body>
<h1>Table and Caption</h1>
<table>
<caption>2024 IT education curriculum</caption>
<tr>
<th>Course name</th>
<th>Duration</th>
<th>Enrollment</th>
</tr>
<tr>
<td>HTML/CSS</td>
<td>4week</td>
<td>30</td>
</tr>
<tr>
<td>JavaScript</td>
<td>8week</td>
<td>20</td>
</tr>
</table>
</body>
</html>
<h1>thead, tbody, tfoot</h1>
<table>
<caption>Q1 2024 sales report</caption>
<thead>
<tr>
<th>name</th>
<th>volume</th>
<th>price</th>
</tr>
</thead>
<tbody>
<tr>
<td>smartphone</td>
<td>500</td>
<td>800,000</td>
</tr>
<tr>
<td>tablet</td>
<td>200</td>
<td>500,000</td>
</tr>
<tr>
<td>labtop</td>
<td>150</td>
<td>1,200,000</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>sum</td>
<td>850</td>
<td>-</td>
</tr>
</tfoot>
</table>
<h1>Rowaspan</h1>
<table>
<caption>List of employees by department</caption>
<thead>
<tr>
<th>department</th>
<th>employees</th>
<th>role</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="3">strategy</td>
<td>kim</td>
<td>manager</td>
</tr>
<tr>
<td>Lee</td>
<td>staff</td>
</tr>
<tr>
<td>Park</td>
<td>intern</td>
</tr>
<tr>
<td rowspan="2">Development</td>
<td>choi</td>
<td>manager</td>
</tr>
<tr>
<td>Yoo</td>
<td>staff</td>
</tr>
</tbody>
</table>
<br>
<br>
<h1>Colspan</h1>
<table>
<caption>Q1 2024 Sales report</caption>
<thead>
<tr>
<th>region</th>
<th colspan="3">information</th>
</tr>
<tr>
<th></th>
<th>A</th>
<th>B</th>
<th>C</th>
</tr>
</thead>
<tbody>
<tr>
<td>Seoul</td>
<td>1,000</td>
<td>800</td>
<td>600</td>
</tr>
<tr>
<td>Busan</td>
<td>700</td>
<td>500</td>
<td>400</td>
</tr>
<tr>
<td>Daegu</td>
<td>500</td>
<td>400</td>
<td>300</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>sum</td>
<td colspan="3">6,200</td>
</tr>
</tfoot>
</table>
</body>
</html>
out:
| Course name | Duration | Enrollment |
|---|---|---|
| HTML/CSS | 4week | 30 |
| JavaScript | 8week | 20 |
| name | volume | price |
|---|---|---|
| smartphone | 500 | 800,000 |
| tablet | 200 | 500,000 |
| labtop | 150 | 1,200,000 |
| sum | 850 | - |
| department | employees | role |
|---|---|---|
| strategy | kim | manager |
| Lee | staff | |
| Park | intern | |
| Development | choi | manager |
| Yoo | staff |
| region | information | ||
|---|---|---|---|
| A | B | C | |
| Seoul | 1,000 | 800 | 600 |
| Busan | 700 | 500 | 400 |
| Daegu | 500 | 400 | 300 |
| sum | 6,200 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Input Data</title>
</head>
<body>
<h1>user information(Form)</h1>
<form action="/submit" method="post">
<label for="name">name: </label>
<input type="text" id="name" name="name" placeholder = "iinput your name" required><br><br>
<label for="email">email:</label>
<input type="email" id="email" name="email" placeholder="example@domain.com" required><br><br>
<label for="password">password</label>
<input type="password" id="password" name="password" required><br><br>
<input type="submit" value="submit">
</form>
<br><br>
<h1>checkBox and Radio Box</h1>
<form action="/submit" method="post">
<label>check the hobby</label><br>
<input type="checkbox" id="hobby1" name="habby" value="reading">
<label for="hobby1">reading</label><br>
<input type="checkbox" id="hobby2" name="habby" value="Traveling">
<label for="hobby1">Traveling</label><br><br>
<label>check the Gender</label><br>
<input type="radio" id="male" name="gender" value="male">
<label for="hobby1">male</label><br>
<input type="radio" id="female" name="gender" value="female">
<label for="hobby1">female</label><br><br>
<input type="submit" value="submit">
</form><br><br>
<h1> option</h1>
<form>
<label for="options">input or check the option: "</label>
<input list="option" id="optionInput" name="optionInput" placeholder="input your option">
<datalist id="options">
<option value="option 1">
<option value="option 2">
<option value="option 3">
</datalist>
</form>
</body>
</html>
output: