목차
속성
1. 전역 속성
2. 이벤트 속성
3. Windows 이벤트 속성
4. 양식 이벤트 속성
Examples of implementing HTML address Tag
Example #1
Example #2 – Color property
Example #3 – Background Color Property
Example #4 – Text Decoration
Example #5 – CSS Fonts
Example #6 – Text Shadow
Example #7 – Line Height
Conclusion

HTML 주소 태그

Sep 04, 2024 pm 04:27 PM
html html5 HTML Tutorial HTML Properties HTML tags

<주소> 태그는 사이트 소유자나 기사 작성자에 관한 연락처 정보를 얻는 데 사용됩니다. 여기에는 주소, 전화번호, 이메일, 웹사이트 연결 등이 포함될 수 있습니다. <주소> 태그는 페이지 헤더의 비즈니스 연락처 정보나 작성자와 관련된 연락처 정보 등 다양한 상황에 유용합니다. 전통적으로 브라우저는

꼬리표. 이 태그는 일반적으로 < 주소>. 일반적으로 < 주소 > 요소는 < 바닥글 > 다른 세부 사항과 함께 요소. 다른 방법으로는 주소를 식별하는 데 사용되어서는 안 되나요? 이번 주제에서는 HTML 주소 태그에 대해 알아보겠습니다.

구문

태그는 아래와 같이 작성됩니다.

<html>
<body>
<address>
Contact Information:<br>
www.mycompany.com<br>
#12345, Main Street<br>
Name of City, Name of State
</address>
</body>
</html>
로그인 후 복사

속성

아래에 언급된 속성은 다음과 같습니다

1. 전역 속성

전역 속성은 HTML 요소에 사용되는 속성과 관련된 데 사용됩니다. 이러한 속성은 모든 HTML 요소에 널리 퍼져 있습니다.

  • accesskey: 요소를 활성화하기 위한 단축키를 정의합니다.
  • class: 요소의 클래스 이름을 제공합니다.
  • contenteditable: 요소를 편집할 수 있는지 여부를 나타내는 데 사용됩니다.
  • dir: 요소의 텍스트 방향을 정의하는 데 사용됩니다.
  • draggable: 페이지에서 요소를 드래그하는 방법을 정의합니다.
  • dropzone: 연결 시 데이터를 복사, 이동, 링크할 수 있는지 여부를 나타내는 데 사용됩니다.
  • id: 요소의 특정 ID를 정의합니다.
  • lang: 요소 콘텐츠의 언어를 정의합니다.
  • style: 요소에 CSS 스타일을 제공합니다.
  • tabindex: 요소의 탭 순서를 정의하는 데 사용됩니다.
  • title: 요소에 대한 추가 정보를 제공하는 데 사용됩니다.
  • translate: 요소의 내용을 번역할 수 있는지 여부를 나타냅니다.
  • 맞춤법 검사: 요소 콘텐츠의 맞춤법 검사를 정의합니다.
  • data: HTML과 DOM 묘사 간에 비공개 데이터를 교환하는 데 사용됩니다.
  • hidden: 이 속성은 요소를 숨길 필요가 있을 때 사용됩니다

2. 이벤트 속성

특정 사용자의 개입에 브라우저가 반응할 때마다 이벤트가 발생합니다. 사용자가 마우스를 클릭하거나, 문서나 사진을 업로드하거나, 비디오를 재생하거나, 웹페이지에서 기타 활동을 수행하는 경우입니다.

3. Windows 이벤트 속성

창 이벤트 속성은 창 개체가 시작될 때 사용됩니다.

  • onafterprint: 문서를 인쇄해야 할 때 사용됩니다.
  • onbeforeprint: 문서를 인쇄해야 하는 시점 이전에 실행됩니다.
  • onbeforeload: 문서를 언로드할 때 사용됩니다.
  • onblur: 이 속성은 창에 포커스가 없을 때 정의됩니다.
  • onerror: 문서 다운로드 중 오류가 발생한 경우 정의됩니다.
  • onload: 웹페이지 콘텐츠가 로드될 때 지정됩니다.
  • onmessage: 메시지에 원인이 있을 때 사용됩니다.
  • onoffline: 이 속성은 브라우저가 오프라인 모드에서 작동할 때 사용됩니다.
  • ononline: 이 속성은 브라우저가 온라인 모드에서 작동할 때 사용됩니다.
  • onpagehide: 사용자가 웹페이지에서 벗어날 때 지정됩니다.
  • onpageshow: 사용자가 웹페이지로 이동할 때 지정됩니다.
  • onpopstate: 이 속성은 창 기록이 변경될 때 사용됩니다.
  • onredo: 페이지에 redo 옵션이 있을 때 사용됩니다.
  • onresize: 사용자가 창 크기를 조정할 때 지정됩니다.
  • onstorage: 웹스토리지에 업데이트가 있을 때 정의됩니다.
  • onundo: 취소된 실행 취소 옵션이 있을 때 사용됩니다.
  • onunload: 웹페이지 콘텐츠가 언로드될 때 지정됩니다.

4. 양식 이벤트 속성

양식 내에서 발생할 수 있는 이벤트는 진행 중인 이벤트로 간주됩니다. 양식 이벤트는 사용자가 양식을 열거나 닫을 때, 양식 간에 전환할 때, 데이터가 있는 양식에서 작업할 때 발생합니다.

  • onblur: This attribute will be defined when there is no focus on the form element.
  • onchange: It is defined when there is a change in the value of an element.
  • oncontextmenu: It is used when the user wants to see the context menu.
  • onfocus: It is used when an element gets a focus.
  • oninput: It is used when an element gets input from the user.
  • oninvalid: It is specified when there is an invalid element on a page.
  • onreset: This attribute will be used when a user wants to reset the form.
  • onsearch: It is defined when the user searches for some information in the search field.
  • onselect: It is used when the user selects the text in an element.
  • onsubmit: It is used when the user submits the form.

Examples of implementing HTML address Tag

Here are the following examples mention below

Example #1

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
Contact Address:<br>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

  • Save the above code in a file with a .html extension
  • Run the html file in a browser, and you would get the output as shown in the below image

HTML 주소 태그

Example #2 – Color property

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.color_prop {
color: #1c87c9;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="color_prop">Contact Address:</p>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 주소 태그

Example #3 – Background Color Property

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.color_prop {
background-color: #1c87c9;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<div class="color_prop">Contact Address:<br>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 주소 태그

Example #4 – Text Decoration

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.style1 {
text-decoration: underline;
}
.style2 {
text-decoration: italic;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="style1">Contact Address:</p>
<p class="style2">mycompany.com</p>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 주소 태그

Example #5 – CSS Fonts

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.style1 {
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.style2 {
font-weight: bolder;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="style1">Contact Address:</p>
<p class="style2">mycompany.com</p>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 주소 태그

Example #6 – Text Shadow

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.style1 {
text-shadow: 2px 2px #1c87c9;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<p class="style1">Contact Address:</p>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 주소 태그

Example #7 – Line Height

Code:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
HTML Address Tag
</title>
<style>
.color_prop {
line-height: 2.0;
}
</style>
</head>
<body>
<article>
<h2>This is Heading Title</h2>
<p>Information about article will be written here...</p>
</article>
<footer>
<address>
<div class="color_prop">Contact Address:<br>
mycompany.com<br>
#987 5th Main, 10th Cross<br>
XYZ road<br>
New Delhi, India
</div>
</address>
</footer>
</body>
</html>
로그인 후 복사

Output:

Run the above file in a browser, and you would get the output as shown in the below image:

HTML 주소 태그

Conclusion

So far, we have studied how to address tag will be used when an owner wants to specify the address information. In order to quickly contact the author via email, this feature is often combined with the HTML mailto property. The address tag will usually be included in the section < footer> section.

위 내용은 HTML 주소 태그의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

Video Face Swap

Video Face Swap

완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

뜨거운 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전

SublimeText3 중국어 버전

중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기

스튜디오 13.0.1 보내기

강력한 PHP 통합 개발 환경

드림위버 CS6

드림위버 CS6

시각적 웹 개발 도구

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)

HTML의 테이블 테두리 HTML의 테이블 테두리 Sep 04, 2024 pm 04:49 PM

HTML의 테이블 테두리 안내. 여기에서는 HTML의 테이블 테두리 예제를 사용하여 테이블 테두리를 정의하는 여러 가지 방법을 논의합니다.

HTML의 중첩 테이블 HTML의 중첩 테이블 Sep 04, 2024 pm 04:49 PM

HTML의 Nested Table에 대한 안내입니다. 여기에서는 각 예와 함께 테이블 내에 테이블을 만드는 방법을 설명합니다.

HTML 여백-왼쪽 HTML 여백-왼쪽 Sep 04, 2024 pm 04:48 PM

HTML 여백-왼쪽 안내. 여기에서는 HTML margin-left에 대한 간략한 개요와 코드 구현과 함께 예제를 논의합니다.

HTML 테이블 레이아웃 HTML 테이블 레이아웃 Sep 04, 2024 pm 04:54 PM

HTML 테이블 레이아웃 안내. 여기에서는 HTML 테이블 레이아웃의 값에 대해 예제 및 출력 n 세부 사항과 함께 논의합니다.

HTML 입력 자리 표시자 HTML 입력 자리 표시자 Sep 04, 2024 pm 04:54 PM

HTML 입력 자리 표시자 안내. 여기서는 코드 및 출력과 함께 HTML 입력 자리 표시자의 예를 논의합니다.

HTML 정렬 목록 HTML 정렬 목록 Sep 04, 2024 pm 04:43 PM

HTML 순서 목록에 대한 안내입니다. 여기서는 HTML Ordered 목록 및 유형에 대한 소개와 각각의 예에 대해서도 설명합니다.

HTML 온클릭 버튼 HTML 온클릭 버튼 Sep 04, 2024 pm 04:49 PM

HTML onclick 버튼에 대한 안내입니다. 여기에서는 각각의 소개, 작업, 예제 및 다양한 이벤트의 onclick 이벤트에 대해 설명합니다.

HTML에서 텍스트 이동 HTML에서 텍스트 이동 Sep 04, 2024 pm 04:45 PM

HTML에서 텍스트 이동 안내. 여기서는 Marquee 태그가 구문과 함께 작동하는 방식과 구현할 예제에 대해 소개합니다.

See all articles