<a> 태그는 하나의 페이지에서 다른 페이지를 연결할 때 사용하는 하이퍼링크(hyperlink)를 정의할 때 사용합니다.
이러한 <a> 태그에서 가장 중요한 속성은 바로 링크(link)의 목적지를 가리키는 href 속성입니다.
따라서 href 속성이 없다면, target, download, rel, rev, hreflang, type, referrerpolicy 속성들도 사용할 수 없습니다.
링크된 페이지는 보통 브라우저의 현재 윈도우에 표시되며, 이것은 target 속성으로 변경할 수 있습니다.
링크는 모든 브라우저에서 다음과 같은 기본 스타일을 가지게 됩니다.
- 아직 방문하지 않은 링크(unvisited link) : 밑줄, 파란색(blue)
- 방문했던 링크(visited link) : 밑줄, 보라색(purple)
- 활성화된(현재 마우스가 클릭하고 있는) 링크(active link) : 밑줄, 빨간색(red)
<span> 태그는 HTML 문서에서 인라인 요소(inline-element)들을 하나로 묶을 때 사용합니다.
<span> 요소는 그 자체만으로는 어떠한 의미도 가지지 않지만, class나 id와 같은 전역 속성과 함께 사용하여 스타일링을 위해 요소들을 그룹화하거나 lang 속성과 같은 속성값을 공유하는 데 유용하게 사용할 수 있습니다.
<span> 요소는 <div> 요소와 매우 비슷하게 사용되지만, <div> 요소는 블록 타입의 요소인데 반해 <span> 요소는 인라인 타입의 요소입니다.
<div> 태그는 HTML 문서에서 특정 영역(division)이나 구획(section)을 정의할 때 사용합니다.
<div> 요소는 여러 HTML 요소들을 하나로 묶어주어 CSS로 스타일을 변경하거나 자바스크립트로 특정 작업을 수행하기 위한 일종의 컨테이너(container)로 자주 사용됩니다. 또한, CSS와 함께 웹 페이지의 레이아웃(layout)을 설정하는데도 종종 사용됩니다.
<p> 태그는 문단(paragraph)을 정의할 때 사용합니다.
브라우저는 자동으로 <p> 요소의 위쪽과 아래쪽에 약간의 여백을 추가합니다.
이러한 여백은 CSS의 margin 속성을 사용하여 조정할 수 있습니다.
<strong> 태그는 해당 콘텐츠의 중요성이나 심각함, 긴급함 등을 강조할 때 사용합니다.
브라우저는 일반적으로 <strong> 요소의 콘텐츠를 굵은 텍스트로 표현합니다.
<strong> vs <b>
<b> 요소는 콘텐츠의 중요성보다는 텍스트 자체에 주의를 끌기 위해 사용되지만, <strong> 요소는 콘텐츠 자체의 중요성을 강조할 때 사용됩니다.
<strong> vs <em>
<em> 요소는 구어체 강조와 같이 문장의 의미를 변경하는데 사용되지만("I love cat." vs. "I love cat."), <strong> 요소는 문장의 일부분에 중요성을 추가하는데 사용됩니다.("Warning! This is very dangerous.")
<strong> 요소와 <em> 요소는 각각 중첩해서 사용함으로써 중요성이나 강조의 상대적인 정도를 증가시킬 수 있습니다.
<li> 태그는 HTML 리스트(list)에 포함되는 아이템(item)을 정의할 때 사용합니다.
<li> 요소는 순서가 있는 리스트(ordered list)를 정의하는 <ol> 요소나 순서가 없는 리스트(unordered list)를 정의하는 <ul> 요소, 메뉴 리스트(menu list)를 정의하는 <menu> 요소에서 리스트의 각 아이템을 정의합니다.
리스트 아이템을 나타내는 기본 마커(marker)는 순서가 없는 리스트나 메뉴 리스트에서는 검정색의 작은 원(bullet) 모양으로 표현되며, 순서가 있는 리스트에서는 아라비아 숫자나 알파벳으로 표현됩니다. 이렇게 리스트 아이템을 표현하는 마커(marker)는 CSS를 사용하면 다른 모양으로 손쉽게 변경할 수 있습니다.
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=100% height=800 scrolling="no" src="https://edrawcloudpublicus.s3.amazonaws.com/viewer/self/3798816/share/2023-9-18/1695038810/main.svg"></iframe>
<iframe src="https://edrawcloudpublicus.s3.amazonaws.com/viewer/self/3798816/share/2023-9-18/1695038810/main.svg" style="width:100%; height:800; frameborder:none; border:none; scrolling:no"></iframe>
border : iframe요소는 기본적으로 검정색 테두리(border)를 가진다.
frameborder : 0(경계선없음), 1(경계선있음)
유튜브 동영상퍼가기
<iframe width="100%" height="315" src="https://www.youtube.com/embed/HaoG58-V1Ac?si=okHnEJMefGXKC9xr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
시작시간: 2분
<iframe width="100%" height="315" src="https://www.youtube.com/embed/HaoG58-V1Ac?si=okHnEJMefGXKC9xr&start=120" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
플레이어 컨트롤 표시안함.
<iframe width="100%" height="315" src="https://www.youtube.com/embed/HaoG58-V1Ac?si=okHnEJMefGXKC9xr&controls=0&start=120" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
그냥 embedded
2분시작 플레이어 컨트롤 표시안함.
<div id="current_date">
<script>
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
document.getElementById("current_date").innerHTML = new Date().toLocaleDateString('ko-KR', options);
</script>
</div>
<body>
<div id="disqus_recommendations" style="margin-bottom: 12px;">
<iframe id="dsq-app2466" name="dsq-app2466" allowtransparency="true" frameborder="0" scrolling="no" tabindex="0" title="Disqus" width="100%" src="https://disqus.com/recommendations/?base=default&f=horizon-steegle-com&t_u=https%3A%2F%2F1278581349-atari-embeds.googleusercontent.com%2Fembeds%2F16cb204cf3a9d4d223a0a3fd8b0eec5d%2Finner-frame-minified.html%3Fjsh%3Dm%253B%252F_%252Fscs%252Fabc-static%252F_%252Fjs%252Fk%253Dgapi.lb.ko.GU89GoD0A6U.O%252Fam%253DAAAg%252Fd%253D1%252Frs%253DAHpOoo-SbuL-nW9Yn3IkFMAPjAQzxyTZSQ%252Fm%253D__features__&t_d=Insert%20HTML%2C%20JavaScript%20and%20CSS%20-%20new%20Google%20Sites&t_t=Insert%20HTML%2C%20JavaScript%20and%20CSS%20-%20new%20Google%20Sites#version=f9e29c9e4b1a24054494dd93c8a69ede" style="width: 100% !important; border: none !important; overflow: hidden !important; height: 0px !important; display: inline !important; box-sizing: border-box !important;" horizontalscrolling="no" verticalscrolling="no">
</iframe>
</div>
<div id="disqus_thread" style="height:100vh">
<iframe id="dsq-app702" name="dsq-app702" allowtransparency="true" frameborder="0" scrolling="no" tabindex="0" title="Disqus" width="100%" src="https://disqus.com/embed/comments/?base=default&f=horizon-steegle-com&t_i=google-sites%2Fhow-to%2Finsert-custom-code&t_u=https%3A%2F%2Fwww.steegle.com%2Fgoogle-sites%2Fhow-to%2Finsert-custom-code&t_d=Insert%20HTML%2C%20JavaScript%20and%20CSS%20-%20new%20Google%20Sites&t_t=Insert%20HTML%2C%20JavaScript%20and%20CSS%20-%20new%20Google%20Sites&s_o=default#version=e621ec0efa439e4ab046fb8b5c626aff" style="width: 1px !important; min-width: 100% !important; border: none !important; overflow: hidden !important; height: 8090px !important;" horizontalscrolling="no" verticalscrolling="no">
</iframe>
</div>
<script>
var disqus_config = function () {
this.page.url = 'https://www.steegle.com/google-sites/how-to/insert-custom-code';
this.page.identifier = 'google-sites/how-to/insert-custom-code'
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://horizon-steegle-com.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript">comments powered by Disqus.
</a></noscript>
<script id="dsq-count-scr" src="//horizon-steegle-com.disqus.com/count.js" async=""></script>
<iframe style="display: none;"></iframe>
<iframe style="display: none;"></iframe>
</body>