>웹 프론트엔드 >HTML 튜토리얼 >HTML 제목 설정 코드

HTML 제목 설정 코드

黄舟
黄舟원래의
2016-12-21 16:00:502694검색

Word 문서에서 제목은 굵은 글꼴이나 큰 글꼴과 같이 특히 눈길을 사로잡아야 하는 경우가 많습니다. 마찬가지로 html 문서에서도 제목이 같은 형식으로 표시되도록 설정할 수도 있습니다.

html 제목 태그를 사용하여 제목을 설정할 수 있습니다.

부터

까지 총 6개의 제목 태그가 있습니다. 숫자가 작을수록 레벨이 높아지고 텍스트가 커집니다. .

다음은 html 제목 태그를 정의하는 방법의 예입니다.



html 제목 태그</title> ;<br/></head><br></p> <br> <h1>제목 1</h1> <br> <h2>제목 2</h2> <br> <h3>제목 3 <h4> 타이틀 4</h4> <br> <h5> 타이틀 5</h5> <br> <h6> 타이틀 6</h6> <br></ 본문><br></html></h3> <p><br>실행 결과: <br></p> <p><br></p> <p style="margin: 0px auto; padding: 0px; font-size: 18pt; word-wrap: break-word; word-break: break-all; width: 626px; height: auto; border-bottom: 1px dashed rgb(221, 221, 221); text-align: center; font-family: 黑体; color: rgb(68, 68, 68); white-space: normal;">제목 1</p> <p style='margin: 0px; padding: 0px; font-size: 14px; font-weight: 400; word-wrap: break-word; word-break: break-all; color: rgb(68, 68, 68); font-family: "Microsoft YaHei", SimSun, "Arial Narrow"; white-space: normal;'>제목 2 </p> <p style='margin: 0px; padding: 0px; font-size: 14px; font-weight: 400; word-wrap: break-word; word-break: break-all; color: rgb(68, 68, 68); font-family: "Microsoft YaHei", SimSun, "Arial Narrow"; white-space: normal;'>Title 3</p> <p style='margin: 0px; padding: 0px; font-weight: 400; word-wrap: break-word; word-break: break-all; color: rgb(68, 68, 68); font-family: "Microsoft YaHei", SimSun, "Arial Narrow"; white-space: normal;'>Title 4</p> <p style='margin: 0px; padding: 0px; font-size: 14px; font-weight: 400; word-wrap: break-word; word-break: break-all; color: rgb(68, 68, 68); font-family: "Microsoft YaHei", SimSun, "Arial Narrow"; white-space: normal;'>Title 5</p> <p style='margin: 0px; padding: 0px; font-size: 14px; font-weight: 400; word-wrap: break-word; word-break: break-all; color: rgb(68, 68, 68); font-family: "Microsoft YaHei", SimSun, "Arial Narrow"; white-space: normal;'>Title 6</p> <p>위는 HTML 제목 설정 코드 내용이고, 더 많은 관련 내용 PHP 중국어 홈페이지(www.php.cn)를 주목해주세요! </p> <p><br></p></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>성명:</span><div>본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.</div></div></div><div class="nphpSytBox"><span>이전 기사:<a class="dBlack" title="HTML 분할 및 줄 바꿈 코드 지침" href="https://m.php.cn/ko/faq/345936.html">HTML 분할 및 줄 바꿈 코드 지침</a></span><span>다음 기사:<a class="dBlack" title="HTML 분할 및 줄 바꿈 코드 지침" href="https://m.php.cn/ko/faq/345938.html">HTML 분할 및 줄 바꿈 코드 지침</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>관련 기사</h2><em><a href="https://m.php.cn/ko/article.html" class="bBlack"><i>더보기</i><b></b></a></em><div class="clear"></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-6t+ed+2i-1n-4w" data-ad-client="ca-pub-5902227090019525" data-ad-slot="8966999616"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><ul class="nphpXgwzList"><li><b></b><a href="https://m.php.cn/ko/faq/348757.html" title="HTML 지식 요약" class="aBlack">HTML 지식 요약</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/ko/faq/348804.html" title="HTML을 빨리 배우는 방법" class="aBlack">HTML을 빨리 배우는 방법</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/ko/faq/348873.html" title="html xhtml xml의 차이점" class="aBlack">html xhtml xml의 차이점</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/ko/faq/348884.html" title="src와 href 속성의 차이점" class="aBlack">src와 href 속성의 차이점</a><div class="clear"></div></li><li><b></b><a href="https://m.php.cn/ko/faq/348902.html" title="HTML5 및 CSS 대체 사용 정보" class="aBlack">HTML5 및 CSS 대체 사용 정보</a><div class="clear"></div></li></ul></div></div><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="5027754603"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><footer><div class="footer"><div class="footertop"><img src="/static/imghwm/logo.png" alt=""><p>공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!</p></div><div class="footermid"><a href="https://m.php.cn/ko/about/us.html">회사 소개</a><a href="https://m.php.cn/ko/about/disclaimer.html">부인 성명</a><a href="https://m.php.cn/ko/update/article_0_1.html">Sitemap</a></div><div class="footerbottom"><p> © php.cn All rights reserved </p></div></div></footer><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body><!-- Matomo --><script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '9']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script><!-- End Matomo Code --></html>