개발자

HTML 속성

쿠카곰돌이 2020. 8. 18. 13:07
반응형

HTML 속성


대부분의 HTML 태그들은 속성이 있을 수 있는데 속성은 HTML 요소의 특성을 정의하는 데 사용되며 요소의 시작 태그에 기술되며 모든 속성은 이름과 값으로 구성된다. 가장 쉬운 예로 정렬 속성을 다음과 같이 기술 할 수 있다.


태그 속성 예제

 

<!DOCTYPE html>
<html>
<head>
<title>정렬 속성 예제 입니다.</title>
</head>
<body>
<p align="left">좌측 정렬 합니다.</p>
<p align="center">중앙 정렬 합니다.</p>
<p align="right">우측 정렬 합니다.</p>
</body>
</html>

Chrome 화면출력결과


Core Attributes
Id
Title
Class
Style

The class Attribute

class="className1 className2 className3"
The style Attribute<p style="font-family:arial; color:#FF0000;">Some text...</p>

The lang Attribute<html lang="ko">
Attributes 목록

AttributeOptionsFunction

align right, left, center Horizontally aligns tags
valign top, middle, bottom Vertically aligns tags within an HTML element.
bgcolor numeric, hexidecimal, RGB values Places a background color behind an element
background URL Places a background image behind an element
id User Defined Names an element for use with Cascading Style Sheets.
class User Defined Classifies an element for use with Cascading Style Sheets.
width Numeric Value Specifies the width of tables, images, or table cells.
height Numeric Value Specifies the height of tables, images, or table cells.
title User Defined "Pop-up" title of the elements.



ISO 639

LanguageISO CodeWindows NameWin Code

Abkhazian ab
Afar aa
Afrikaans af LANG_AFRIKAANS 0x36
Albanian sq LANG_ALBANIAN 0x1c
Amharic am (no constant defined) 0x5e
Arabic ar LANG_ARABIC 0x01
Armenian hy LANG_ARMENIAN 0x2b
Assamese as LANG_ASSAMESE 0x4d
Aymara ay
Azerbaijani az LANG_AZERI 0x2c
Bashkir ba
Basque eu LANG_BASQUE 0x2d
Bengali (Bangla) bn LANG_BENGALI 0x45
Bhutani dz
Bihari bh
Bislama bi
Breton br
Bulgarian bg LANG_BULGARIAN 0x02
Burmese my (no constant defined) 0x55
Byelorussian (Belarusian) be LANG_BELARUSIAN 0x23
Cambodian km (no constant defined) 0x53
Catalan ca LANG_CATALAN 0x03
Cherokee (no constant defined) 0x5c
Chewa
Chinese (Simplified) zh LANG_CHINESE (SUBLANG_CHINESE_SIMPLIFIED) 0x04 (0x0804)
Chinese (Traditional) zh LANG_CHINESE (SUBLANG_CHINESE_TRADITIONAL) 0x04 (0x0404)
Corsican co
Croatian hr LANG_CROATIAN 0x1a
Czech cs LANG_CZECH 0x05
Danish da LANG_DANISH 0x06
Divehi LANG_DIVEHI 0x65
Dutch nl LANG_DUTCH 0x13
Edo (no constant defined) 0x66
English en LANG_ENGLISH 0x09
Esperanto eo
Estonian et LANG_ESTONIAN 0x25
Faeroese fo LANG_FAEROESE 0x38
Farsi fa LANG_FARSI 0x29
Fiji fj
Finnish fi LANG_FINNISH 0x0b
Flemish LANG_DUTCH (SUBLANG_DUTCH_BELGIAN) 0x13 (0x0813)
French fr LANG_FRENCH 0x0c
Frisian fy (no constant defined) 0x62
Fulfulde (no constant defined) 0x67
Galician gl LANG_GALICIAN 0x56
Gaelic (Scottish) gd (no constant defined) 0x3c (0x043c)
Gaelic (Manx) gv
Georgian ka LANG_GEORGIAN 0x37
German de LANG_GERMAN 0x07
Greek el LANG_GREEK 0x08
Greenlandic kl
Guarani gn (no constant defined) 0x74
Gujarati gu LANG_GUJARATI 0x47
Hausa ha (no constant defined) 0x68
Hawaiian (no constant defined) 0x75
Hebrew he, iw* LANG_HEBREW 0x0d
Hindi hi LANG_HINDI 0x39
Hungarian hu LANG_HUNGARIAN 0x0e
Ibibio (no constant defined) 0x69
Icelandic is LANG_ICELANDIC 0x0f
Igbo (no constant defined) 0x70
Indonesian id, in* LANG_INDONESIAN 0x21
Interlingua ia
Interlingue ie
Inuktitut iu (no constant defined) 0x5d
Inupiak ik
Irish ga (no constant defined) 0x3c (0x083c)
Italian it LANG_ITALIAN 0x10
Japanese ja LANG_JAPANESE 0x11
Javanese jv
Kannada kn LANG_KANNADA 0x4b
Kanuri (no constant defined) 0x71
Kashmiri ks LANG_KASHMIRI 0x60
Kazakh kk LANG_KAZAK 0x3f
Kinyarwanda (Ruanda) rw
Kirghiz ky LANG_KYRGYZ 0x40
Kirundi (Rundi) rn
Konkani LANG_KONKANI 0x57
Korean ko LANG_KOREAN 0x12
Kurdish ku
Laothian lo (no constant defined) 0x54
Latin la (no constant defined) 0x76
Latvian (Lettish) lv LANG_LATVIAN 0x26
Limburgish ( Limburger) li
Lingala ln
Lithuanian lt LANG_LITHUANIAN 0x27
Macedonian mk LANG_MACEDONIAN 0x2f
Malagasy mg
Malay ms LANG_MALAY 0x3e
Malayalam ml LANG_MALAYALAM 0x4c
LANG_MANIPURI 0x58
Maltese mt (no constant defined) 0x3a
Maori mi
Marathi mr LANG_MARATHI 0x4e
Moldavian mo
Mongolian mn LANG_MONGOLIAN 0x50
Nauru na
Nepali ne LANG_NEPALI 0x61
Norwegian no LANG_NORWEGIAN 0x14
Occitan oc
Oriya or LANG_ORIYA 0x48
Oromo (Afan, Galla) om (no constant defined) 0x72
Papiamentu (no constant defined) 0x79
Pashto (Pushto) ps (no constant defined) 0x63
Polish pl LANG_POLISH 0x15
Portuguese pt LANG_PORTUGUESE 0x16
Punjabi pa LANG_PUNJABI 0x46
Quechua qu
Rhaeto-Romance rm (no constant defined) 0x17
Romanian ro LANG_ROMANIAN 0x18
Russian ru LANG_RUSSIAN 0x19
Sami (Lappish) (no constant defined) 0x3b
Samoan sm
Sangro sg
Sanskrit sa LANG_SANSKRIT 0x4f
Serbian sr LANG_SERBIAN (SUBLANG_SERBIAN_LATIN or SUBLANG_SERBIAN_CYRILLIC) 0x1a (0x081a or 0x0c1a)
Serbo-Croatian sh
Sesotho st
Setswana tn
Shona sn
Sindhi sd LANG_SINDHI 0x59
Sinhalese si (no constant defined) 0x5b
Siswati ss
Slovak sk LANG_SLOVAK 0x1b
Slovenian sl LANG_SLOVENIAN 0x24
Somali so (no constant defined) 0x77
Spanish es LANG_SPANISH 0x0a
Sundanese su
Swahili (Kiswahili) sw LANG_SWAHILI 0x41
Swedish sv LANG_SWEDISH 0x1d
Syriac LANG_SYRIAC 0x5a
Tagalog tl (no constant defined) 0x64
Tajik tg (no constant defined) 0x28
Tamazight (no constant defined) 0x5f
Tamil ta LANG_TAMIL 0x49
Tatar tt LANG_TATAR 0x44
Telugu te LANG_TELUGU 0x4a
Thai th LANG_THAI 0x1e
Tibetan bo (no constant defined) 0x51
Tigrinya ti (no constant defined) 0x73
Tonga to
Tsonga ts (no constant defined) 0x31
Turkish tr LANG_TURKISH 0x1f
Turkmen tk (no constant defined) 0x42
Twi tw
Uighur ug
Ukrainian uk LANG_UKRAINIAN 0x22
Urdu ur LANG_URDU 0x20
Uzbek uz LANG_UZBEK 0x43
Venda (no constant defined) 0x33
Vietnamese vi LANG_VIETNAMESE 0x2a
Volap?k vo
Welsh cy (no constant defined) 0x52
Wolof wo
Xhosa xh (no constant defined) 0x34
Yi (no constant defined) 0x78
Yiddish yi, ji* (no constant defined) 0x3d
Yoruba yo (no constant defined) 0x6a
Zulu zu (no constant defined) 0x35

 

반응형

'개발자' 카테고리의 다른 글

HTML 색상표  (0) 2020.08.18
HTML 속성 목록  (0) 2020.08.18
HTML 기본태그  (0) 2020.08.18
HTML 개요  (0) 2020.08.18
HTML 강좌 소개  (0) 2020.08.18