Computer >> 컴퓨터 >  >> 프로그램 작성 >> HTML

HTML 태그

<시간/>

HTML의 태그는 , <style>, <base>, <link>, <meta>, <script>, <noscript> 등의 요소에 대한 컨테이너로 작동합니다.</P> <p> HTML5에서는 <head> 요소를 포함하지 않고 HTML 문서로 작업할 수도 있습니다.</P> <p> <strong><title> 내부 <head></strong> </P> <p> 이제 <head> 태그를 구현하고 <title> −</P>를 추가하는 예를 살펴보겠습니다. <h2>예시</h2> <pre><!DOCTYPE html> <html> <head> <title>Document Title</title> </head> <body>    <h2>Demo Heading</h2>    <p>This is demo text.</p>    <p>This is demo text.</p>    <p>This is demo text.</p>    <p>This is demo text.</p> </body> </html></pre> <p> 이것은 <head> 요소 아래에 추가한 문서의 제목을 표시하는 다음 출력을 생성합니다 -</P> <p> <img loading='lazy' alt='HTML head 태그 ' src="/article/uploadfiles/202203/2022033116063442.jpg" /></P> <p> <strong><base> 내부 <head></strong> </P> <p> HTML의 기본 태그는 HTML 문서의 기본 URL을 설정하는 데 사용됩니다. <head>는 <base> 요소의 컨테이너로도 작동합니다. 예를 들어 기본 URL은 <strong> https −//example.com/tutorials</strong>입니다. <strong>/html, /java, /jquery</strong>와 같은 모든 상대 URL에 대해 등, 결국 -</P> <pre>https −//example.com/tutorials/html https −//example.com/tutorials/java https −//example.com/tutorials/jquery</pre> <p> <strong>참고</strong> − <base> 태그에는 끝 태그가 없습니다. 즉, </base></P>로 끝낼 필요가 없습니다. <p> 다음은 속성입니다 -</P> <ul> <li><strong>참조</strong> − 페이지의 모든 상대 URL에 대한 기본 URL을 설정합니다.</li> <li><strong>타겟</strong> − 모든 하이퍼링크 및 양식의 기본 대상입니다. 값은 _blank, _parent, _self, _top 및 framename일 수 있습니다.</li> </ul> <p> 이제 <base> 요소 −</P>를 구현하는 예를 살펴보겠습니다. <h2>예시</h2> <pre><!DOCTYPE html> <html> <head> <base href="https −//www.example.com/tutorials/"> </head> <body>    <h2>Tutotials List</h2>    <p><a href="java.html">Java Tutorial</a></p><p>(This will act as https −//www.example.com/tutorials/java.html)</p>    <p><a href="jquery.html">jQuery Tutorial</a></p><p>(This will act as https −//www.example.com/tutorials/jquery.html)</p>    <p><a href="blockchain.html">Blockchain Tutorial</a></p><p>(This will act as https −//www.example.com/tutorials/blockchain.html)</p>    <p><a href="python.html">Python Tutorial</a></p><p>(This will act as https −//www.example.com/tutorials/python.html)</p> </body> </html></pre> <h2>출력</h2> <p> <img loading='lazy' alt='HTML head 태그 ' src="/article/uploadfiles/202203/2022033116063560.jpg" /></P> <br> </article> <div class="ad5"> <script language='javascript' src='https://kr.wsxdn.com/css/ad/kr2.js'></script> </div> <div id="turn-page" class="text-over"> <a class='LinkPrevArticle' href='https://kr.wsxdn.com/bz024t/hf251z/1002064272.html' >Java에서 HTML로 JLabel의 텍스트 글꼴을 변경하는 방법은 무엇입니까? </a> <a class='LinkNextArticle' href='https://kr.wsxdn.com/bz024t/hf251z/1002064274.html' >HTML <del> 태그 </a> </div> </section> <aside class="box-r box4-r"> <h3>HTML</h3> <ul> <li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002063717.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML 페이지에서 head 태그를 사용하는 이유는 무엇입니까? ">HTML 페이지에서 head 태그를 사용하는 이유는 무엇입니까? </p> </a> </li><li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064263.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML 캔버스 태그 ">HTML 캔버스 태그 </p> </a> </li><li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064274.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <del> 태그 ">HTML <del> 태그 </p> </a> </li><li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064277.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <dd> 태그 ">HTML <dd> 태그 </p> </a> </li><li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064280.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <code> 태그 ">HTML <code> 태그 </p> </a> </li> </ul> <h3 class="h3-2">컴퓨터</h3> <ul> <li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064289.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <i> 태그 ">HTML <i> 태그 </p> </a> </li> <li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064290.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <html> 태그 ">HTML <html> 태그 </p> </a> </li> <li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064291.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <hr> 태그 ">HTML <hr> 태그 </p> </a> </li> <li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064292.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <hgroup> 태그 ">HTML <hgroup> 태그 </p> </a> </li> <li> <a href="https://kr.wsxdn.com/bz024t/hf251z/1002064303.html" class="f-start"> <em></em> <p class="r-over r-over-2" title="HTML <nav> 태그 ">HTML <nav> 태그 </p> </a> </li> </ul> </aside> </section> </div> <ul class="types box4-1 container f-center"> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/ol244g/' target="_self">C 프로그래밍</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/fd245y/' target="_self">C++</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/xv246p/' target="_self">Redis</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/ig247a/' target="_self">BASH 프로그래밍</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/ge248y/' target="_self">Python</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/jh249b/' target="_self">Java</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/yw250q/' target="_self">데이터 베이스</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/hf251z/' target="_self">HTML</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/ig252a/' target="_self">JavaScript</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/qo253i/' target="_self">프로그램 작성</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/vs254n/' target="_self">CSS</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/fd255x/' target="_self">Ruby</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/ay256s/' target="_self">SQL</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/yw257q/' target="_self">IOS</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/wu258o/' target="_self">Android</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/nl259f/' target="_self">MongoDB</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/mk260e/' target="_self">MySQL</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/ax261s/' target="_self">C#</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/bz265t/' target="_self">PHP</a></li> <li><a class='childclass' href='https://kr.wsxdn.com/bz024t/zx271r/' target="_self">SQL Server</a></li> </ul> <footer> <section class="container"> <div class="footer-msg"> <span class="container f-center"> <p class=krf>저작권 © <a href="https://kr.wsxdn.com">https://kr.wsxdn.com</a> 모든 권리 보유</p> </span> </div> </section> </footer> </body> </html>