http://tcpschool.com/html/intro
TCP SCHOOL으로 공부하며 정리한 내용입니다
< 태그이름 style="속성이름:속성값" >
<body style="background-color:#33CCFF">
<h1 style="background-color:red">
style 속성을 이용한 배경색 변경
</h1>
</body>
style="background-color:white"
style="color:maroon"
style="font-size:250%"
style="text-align:center"
style="background-color:white; color:maroon; font-size:150%; text-align:center"
<h1 style="color:teal">색상 이름으로 표현된 청록색</h1>
<h1 style="color:rgb(0,128,128)">RGB 색상값으로 표현된 청록색</h1>
<h1 style="color:#008080">16진수 색상값으로 표현된 청록색</h1>
<style>
body { background-color: lightblue; }
h1 { background-color: rgb(255,128,0); }
p { background-color: #FFFFCC; }
</style>123
< 태그이름 background="이미지주소" >
하이퍼 링크(hyperlink) = 링크(link)
< a href="링크주소" >HTML 링크< /a >
< a >태그의 href 속성은 링크를 클릭하면 연결할 페이지나 사이트의 URL 주소를 명시
< a >태그는 텍스트나 단락, 이미지등 다양한 HTML 요소에 사용 가능
< a >태그의 target 속성은 링크로 연결된 문서를 어디에서 열지를 명시
직접 해보면 이해가 쉬움!
http://tcpschool.com/examples/tryit/tryhtml.php?filename=html_basic_links_02
http://tcpschool.com/examples/tryit/tryhtml.php?filename=html_basic_links_03
<a href="#bookmark"><p>제목 3으로 갑시다!!!</p></a>
...
<h2><a name="bookmark"></a>제목 3</h2>
< img >
: HTML 문서에 이미지를 삽입할 때. 빈 태그(empty tag)< img src="이미지주소" alt="대체문자열" >
<style>
img {
width:100%;
border: 1px solid black;
}
</style>
<img src="/examples/images/img_flag.png" alt="html size"
width="320" height="214">
<img src="/examples/images/img_flag.png" alt="이미지 테두리"
style="width:320px; height:214px; border: 3px solid black">
<a href="/html/intro" target="_blank">
<img src="/examples/images/img_flag.png" alt="flag"
style="width:320px; height:214px">
</a>
<img src="/examples/images/img_imagemap.jpg" alt="진실혹은거짓"
usemap="#vending" style="width:320px; height:240px"/>
<map name="vending">
<area shape="rect" coords="90,60,180,130" alt="거짓"
href="https://ko.wikipedia.org/wiki/%EA%B1%B0%EC%A7%93%EB%A7%90">
<area shape="rect" coords="210,200,70,130" alt="진실"
href="https://ko.wikipedia.org/wiki/%EC%A7%84%EC%8B%A4">
</map>
http://tcpschool.com/examples/tryit/tryhtml.php?filename=html_basic_images_05