-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.html_basic(1).html
More file actions
101 lines (95 loc) · 3.21 KB
/
Copy path2.html_basic(1).html
File metadata and controls
101 lines (95 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!-- !하고 엔터를 할 경우 기본 틀 만들어줌. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML BASIC1</title>
<script></script>
</head>
<!-- <body style="background-color: red;"> -->
<!-- <body background="images/다운로드.jpeg"> -->
<body>
<h2>글자 styling 예제</h2>
<p style="background-color: red;">1. 배경색 변경</p>
<p style="color: blue;">2. 글자색 변경</p>
<p style="font-size: 30px;">3. 글자 크기 변경</p>
<p style="color: green; font-size: 25px; text-align: center;">4. 복합 스타일링</p>
<h2>link와 이미지 삽입</h2>
<!-- _blank는 새탭에서 열기 -->
<div>
<!-- a태그는 주로 하이퍼링크를 위해 사용하는 태그이며, 줄바꿈 없는 태그. -->
<a href="https://naver.com" target="_blank">네이버</a>
</div>
<div>
<!-- a태그 안에 블랭크도 넣을 수 있다.(target=_blank를 사용할 경우 새탭에서 열기가 된다.) -->
<!-- alt : 이미지가 깨졌을 때 대체 문자열, 시각장애인용 reader기에서 인식.-->
<a href="https://naver.com" target="_blank">
<img src="//https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTYvEHWFcnEafikc4j_A5xe_LRJHtn0CTt8xw&s" width="300px" height="300" alt="카리나당">
</a>
</div>
<div>
<a href="https://naver.com" target="_blank">
<img src="images/20240116110607337732.png" width="300px" height="300" style="border: 4px solid black;" alt="">
</a>
</div>
<h2>리스트(ol-순서가 있는, ul-순서가 없는 리스트</h2>
<ol style="list-style-type: upper-roman;">
<li>1등급</li>
<li>2등급</li>
<li>3등급</li>
</ol>
<ul style="list-style-type: square;">
<li>1등급</li>
<li>2등급</li>
<li>3등급</li>
</ul>
<h2>테이블예제</h2>
<table border="1" style="border-collapse: collapse;">
<caption>테이블명</caption>
<thead>
<tr>
<th>컬럼1</th>
<th>컬럼2</th>
</tr>
</thead>
<tr>
<td>내용1</td>
<td>내용2</td>
</tr>
<tr>
<td>내용A</td>
<td>내용B</td>
</tr>
<tbody>
</tbody>
</table>
<!-- 테이블 만들기 실습 -->
<!-- 테이블명 : post, 컬럼:id,title,contents,author_email -->
<table border="1" style="border-collapse: collapse;">
<caption style="font-size: medium;">post</caption>
<thead>
<tr>
<th>id</th>
<th>title</th>
<th>contents</th>
<th>author_email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>HTML</td>
<td>This is HTML</td>
<td>HTML@naver.com</td>
</tr>
<tr>
<td>2</td>
<td>CSS</td>
<td>This is CSS</td>
<td>CSS@naver.com</td>
</tr>
</tbody>
</table>
</body>
</html>