HTML 1.태그(Tag)

조성민·2021년 3월 7일
0

HTML

목록 보기
1/2

Tag란?


태그란 html 을 기술하기 위하여 사용하는 명령어의 집합이다.
태그는 여는 태그와 닫는 태그로 구성되며 닫는 태그 없이 단독으로 이용하는 태그도 있다.

ex1)

<strong>creating web pages</strong>

여기서 태그는 <strong> 이며 실행하면

ex1
creating web pages

라는 결과가 나온다.


자주쓰는 Tag 몇가지

1.<html>

:웹페이지의 시작과 끝

<html>index</html>
index

2.<h1> - <h6>

:제목을 정의하는 데 사용

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

3.<a>

:한 페이지에서 다른 링크를 사용하는 하이퍼 링크를 정의

<a href="https://wecode.co.kr/">Visit https://wecode.co.kr/!</a>

Visit https://wecode.co.kr/!

1개의 댓글

comment-user-thumbnail
2021년 3월 9일

뭐든 기본이 제일 중요하죠: ) 성민님 벨로그로 HTML 리마인드해볼께요!

답글 달기

관련 채용 정보