O
3 months ago
Onyelusicountry asked

Why is the content inside the <head> section not shown on the webpage? I thought it would display when the code runs.

Abhay Jajodia
Expert
last month
Abhay Jajodia answered

Hi Onyelusi,

The is for page information the browser needs, not for content the user reads on the page. Things in include the page title, meta info, links to CSS, and scripts.

The content that shows on the webpage goes inside the .

Example:


  My Page



  

This will show on the page

</code> shows in the browser tab, but the <code><h1></code> shows on the actual page.</p><p>If you have more questions, I am here to help 😊</p></div></div></div><div class="question-card__divider"></div><div class="question-card__tag"><div class="language-chip language-html"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.31828 14.0488L1.0957 0.33667H14.5295L13.3056 14.0467L7.80443 15.5717L2.31828 14.0488Z" fill="#25265E" fill-opacity="0.67"></path><path d="M7.8125 14.8351L12.5378 13.525L13.6496 1.07104H7.8125V14.8351Z" fill="#25265E" fill-opacity="0.67"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M5.5952 6.58916L7.8125 6.58916L7.82065 6.58916L11.2686 6.58916H11.7217L11.6808 7.04079L11.2856 11.4683L11.2603 11.7524L7.82065 12.7057V12.7066L7.81295 12.7087L4.36786 11.7524L4.13226 9.11188H5.82065L5.94028 10.453L7.8125 10.9587V10.9582L9.68822 10.452L9.88337 8.27093L7.82065 8.27093L7.8125 8.27093L4.05711 8.27093L3.64384 3.63645L3.60352 3.1853H7.8125H7.82065H12.0255L11.9853 3.63645L11.9085 4.48912L11.8748 4.86695L7.82065 4.86695L7.8125 4.86695L5.44148 4.86695L5.5952 6.58916Z" fill="white"></path></svg><span class="language-chip__label">HTML</span></div><div class="question-card__course-info">This question was asked as part of the<!-- --> <a target="_blank" rel="noopener noreferrer" class="question-card__course-info--title" href="/course/learn-html">Learn HTML</a> <!-- -->course.</div></div></div></div></div></div></div></div></div><div class="discuss-home__expert-container"><h3 class="discuss-home__expert-title">Our Experts</h3><ul class="discuss-home__expert-list"><li><a class="discuss-home__expert-list__item" href="/discuss/expert/sudip"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Sudip Bhandari's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/sudip.jpg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Sudip Bhandari</div><div class="discuss-home__expert-list__item--role">Head of Growth/Marketing </div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/apekchhya"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Apekchhya Shrestha's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/apekchhya.png"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Apekchhya Shrestha</div><div class="discuss-home__expert-list__item--role">Senior Product Manager </div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/kelish"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Kelish Rai's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/kelish.jpg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Kelish Rai</div><div class="discuss-home__expert-list__item--role">Technical Content Writer </div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/abhilekh"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Abhilekh Gautam's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/abhilekh.jpeg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Abhilekh Gautam</div><div class="discuss-home__expert-list__item--role">System Engineer</div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/palistha"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Palistha Singh's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/palistha.jpg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Palistha Singh</div><div class="discuss-home__expert-list__item--role">Technical Content Writer </div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/sarthak"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Sarthak Baral's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/sarthak.jpeg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Sarthak Baral</div><div class="discuss-home__expert-list__item--role">Senior Content Editor </div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/user_40"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Saujanya Poudel's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/saujanya.jpg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Saujanya Poudel</div><div class="discuss-home__expert-list__item--role"></div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/abhay"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Abhay Jajodia's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/abhay.jpg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Abhay Jajodia</div><div class="discuss-home__expert-list__item--role"></div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/nisha"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Nisha Sharma's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/nisha.jpg"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Nisha Sharma</div><div class="discuss-home__expert-list__item--role">Technical Content Writer </div></div></a></li><li><a class="discuss-home__expert-list__item" href="/discuss/expert/udayan"><div class="discuss-home__expert-list__item--avatar-wrapper"><img alt="Udayan Shakya's profile" loading="lazy" decoding="async" data-nimg="fill" class="discuss-home__expert-list__item--avatar" style="position:absolute;height:100%;width:100%;left:0;top:0;right:0;bottom:0;color:transparent" src="https://cdn.programiz.pro/profile-pics/udayan.png"/></div><div class="discuss-home__expert-list__item--info"><div class="discuss-home__expert-list__item--name">Udayan Shakya</div><div class="discuss-home__expert-list__item--role">Technical Content Writer </div></div></a></li></ul></div></div></section></main><footer class="pro-footer dark"><div class="container"><ul class="pro-footer-nav"><li class="pro-footer-nav-section"><h4>Courses</h4><nav><ul><li><a href="/courses/python" class="pro-footer__link" title="Python" data-testid="footer-link">Python</a></li><li><a href="/courses/sql" class="pro-footer__link" title="SQL" data-testid="footer-link">SQL</a></li><li><a href="/courses/html" class="pro-footer__link" title="HTML/CSS" data-testid="footer-link">HTML/CSS</a></li><li><a href="/courses/javascript" class="pro-footer__link" title="JavaScript" data-testid="footer-link">JavaScript</a></li><li><a href="/courses/c" class="pro-footer__link" title="C Programming" data-testid="footer-link">C Programming</a></li><li><a href="/courses/cpp" class="pro-footer__link" title="C++" data-testid="footer-link">C++</a></li><li><a href="/courses/java" class="pro-footer__link" title="Java" data-testid="footer-link">Java</a></li><li><a href="https://programiz.pro/projects/guided-projects" class="pro-footer__link" title="Projects" data-testid="footer-link">Projects</a><span class="pro-footer__new-link">NEW</span></li><li><a href="/courses" class="pro-footer__link highlight" title="" data-testid="footer-link">Course Catalog <svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg></a></li></ul></nav></li><li class="pro-footer-nav-section"><h4>Challenges</h4><nav><ul><li><a href="/community-challenges/python" class="pro-footer__link" title="Python Challenges" data-testid="footer-link">Python Challenges</a></li><li><a href="/community-challenges/c" class="pro-footer__link" title="C Challenges" data-testid="footer-link">C Challenges</a></li><li><a href="/community-challenges/cpp" class="pro-footer__link" title="C++ Challenges" data-testid="footer-link">C++ Challenges</a></li><li><a href="/community-challenges/java" class="pro-footer__link" title="Java Challenges" data-testid="footer-link">Java Challenges</a></li><li><a href="/community-challenges/javascript" class="pro-footer__link" title="JavaScript Challenges" data-testid="footer-link">JavaScript Challenges</a></li><li><a href="/community-challenges/sql" class="pro-footer__link" title="SQL Challenges" data-testid="footer-link">SQL Challenges</a></li></ul></nav></li><li class="pro-footer-nav-section"><h4>Resources</h4><nav><ul><li><a href="https://programiz.pro/pricing" class="pro-footer__link" target="_blank" title="Pricing" data-testid="footer-link">Pricing</a></li><li><a href="https://programiz.pro/resources" class="pro-footer__link" target="_blank" title="Blog" data-testid="footer-link">Blog</a></li><li><a href="https://programiz.pro/testimonials" class="pro-footer__link" target="_blank" title="Testimonials" data-testid="footer-link">Testimonials</a></li><li><a href="https://programiz.pro/newsroom" class="pro-footer__link" target="_blank" title="Newsroom" data-testid="footer-link">Newsroom</a></li><li><a href="https://programiz.pro/discuss" class="pro-footer__link" target="_blank" title="Discuss" data-testid="footer-link">Discuss</a></li><li><a href="https://programiz.pro/for-educators" class="pro-footer__link" target="_blank" title="For Educators" data-testid="footer-link">For Educators</a></li></ul></nav></li><li class="pro-footer-nav-section"><h4>Company</h4><nav><ul><li><a href="/about" class="pro-footer__link" title="About Us" data-testid="footer-link">About Us</a></li><li><a href="/contact" class="pro-footer__link" title="Contact Us" data-testid="footer-link">Contact Us</a></li><li><a href="/faq" class="pro-footer__link" title="FAQs" data-testid="footer-link">FAQs</a></li><li><a href="https://security.programiz.pro/" class="pro-footer__link" title="Security" data-testid="footer-link">Security</a></li><li><a href="https://programiz.atlassian.net/servicedesk/customer/portal/2/group/2/create/3 " class="pro-footer__link" title="" data-testid="footer-link"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path></svg> Help Center</a></li></ul></nav></li></ul><div class="pro-footer-bottom"><ul class="bottom-left"><li><a href="/" title="Home" data-testid="logo-link"><img src="data:image/svg+xml,%3csvg width='128' height='41' viewBox='0 0 128 41' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.05371 17.3491C9.05371 17.1397 9.1651 16.9462 9.34611 16.841L13.1876 14.609C13.3835 14.4952 13.629 14.6365 13.629 14.863V31.027C13.629 31.1393 13.538 31.2304 13.4257 31.2304H9.25706C9.14475 31.2304 9.05371 31.1393 9.05371 31.027V17.3491Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M9.05371 16.684C9.05371 16.6114 9.09243 16.5443 9.15529 16.508L13.3239 14.0983C13.4595 14.0199 13.629 14.1177 13.629 14.2743L13.629 22.588C13.629 22.7565 13.4925 22.893 13.324 22.893H9.35874C9.19028 22.893 9.05371 22.7565 9.05371 22.588V16.684Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M20.614 13.8518L9.46209 20.255C9.20948 20.4 9.05371 20.6691 9.05371 20.9604V25.7145L21.1211 18.7473C21.3728 18.602 21.5278 18.3335 21.5278 18.0429V14.3809C21.5278 13.9119 21.0207 13.6183 20.614 13.8518Z' fill='white' fill-opacity='0.87'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.54504 25.4319C9.25723 25.5869 9.06008 25.8885 9.05355 26.2368V25.1531L9.54504 25.4319Z' fill='white' fill-opacity='0.87'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.0929 18.764C21.1335 18.6673 21.1559 18.561 21.1559 18.4496C21.1559 18.2766 21.1019 18.1161 21.0098 17.9843L21.5299 17.6899V18.0421C21.5299 18.3324 21.3751 18.6008 21.1237 18.7462L21.0929 18.764Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M21.0161 17.9982C20.8767 17.5695 13.7254 12.7655 8.80318 9.43762C8.63711 9.32533 8.71754 9.06662 8.918 9.06662L14.7804 9.06658C14.8216 9.06658 14.8619 9.07913 14.8958 9.10255L21.1781 13.4366C21.3981 13.5885 21.5296 13.8388 21.5296 14.1062L21.5296 17.6998L21.0161 17.9982Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M24.4604 22.4383C24.2897 22.3867 24.0336 22.3522 23.7775 22.3522C23.0946 22.3522 22.019 22.6276 21.5751 23.5912V22.4383H19.0654V30.9902H21.6605V27.2563C21.6605 25.5528 22.5995 24.9333 23.6409 24.9333C23.897 24.9333 24.1702 24.9505 24.4604 25.0194V22.4383Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M29.8271 28.8393C28.8539 28.8393 27.9149 28.1339 27.9149 26.7057C27.9149 25.2603 28.8539 24.5892 29.8271 24.5892C30.8173 24.5892 31.7392 25.2603 31.7392 26.7057C31.7392 28.1511 30.8173 28.8393 29.8271 28.8393ZM29.8271 22.1802C27.3003 22.1802 25.3199 24.0558 25.3199 26.7057C25.3199 29.3556 27.3003 31.2484 29.8271 31.2484C32.3709 31.2484 34.3343 29.3556 34.3343 26.7057C34.3343 24.0558 32.3709 22.1802 29.8271 22.1802Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M35.4072 31.472C35.6462 33.0035 37.1998 34.5177 39.6412 34.5177C42.8167 34.5177 44.1825 32.384 44.1825 29.9234V22.4383H41.707V23.3503C41.468 22.9029 40.7338 22.2834 39.351 22.2834C37.0291 22.2834 35.4072 24.2106 35.4072 26.4648C35.4072 28.8393 37.0974 30.6289 39.351 30.6289C40.5802 30.6289 41.3143 30.1299 41.6216 29.6653V30.0611C41.6216 31.6097 40.8192 32.2464 39.5217 32.2464C38.5485 32.2464 37.8656 31.6441 37.6949 30.8182L35.4072 31.472ZM39.829 28.3575C38.7876 28.3575 38.0022 27.6348 38.0022 26.4648C38.0022 25.2947 38.8558 24.572 39.829 24.572C40.8021 24.572 41.6387 25.2947 41.6387 26.4648C41.6387 27.6348 40.8875 28.3575 39.829 28.3575Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M51.77 22.4383C51.5993 22.3867 51.3432 22.3522 51.0871 22.3522C50.4042 22.3522 49.3286 22.6276 48.8847 23.5912V22.4383H46.375V30.9902H48.9701V27.2563C48.9701 25.5528 49.9091 24.9333 50.9505 24.9333C51.2066 24.9333 51.4797 24.9505 51.77 25.0194V22.4383Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M52.8986 28.6329C52.8986 29.9922 53.9742 31.2311 55.8351 31.2311C56.9619 31.2311 57.7814 30.7493 58.2253 30.0266C58.2253 30.6117 58.2936 30.9214 58.3107 30.9902H60.6496C60.6326 30.9042 60.5472 30.3364 60.5472 29.6653V25.484C60.5472 23.7288 59.5399 22.1802 56.7912 22.1802C54.2986 22.1802 53.1718 23.7977 53.0694 25.0194L55.323 25.484C55.3742 24.8473 55.8693 24.2278 56.7741 24.2278C57.5936 24.2278 58.0204 24.658 58.0204 25.157C58.0204 25.4495 57.8668 25.6732 57.4058 25.7421L55.4083 26.0518C54.0084 26.2583 52.8986 27.1186 52.8986 28.6329ZM56.4668 29.3384C55.7498 29.3384 55.4595 28.9082 55.4595 28.4608C55.4595 27.8585 55.8693 27.6004 56.4156 27.5144L58.0204 27.2563V27.6348C58.0204 28.9598 57.2351 29.3384 56.4668 29.3384Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M65.3258 30.9902V26.069C65.3258 25.2947 65.8209 24.5892 66.7258 24.5892C67.6648 24.5892 68.0916 25.2258 68.0916 26.0346V30.9902H70.6525V26.0518C70.6525 25.2947 71.1476 24.5892 72.0695 24.5892C72.9914 24.5892 73.4183 25.2258 73.4183 26.0346V30.9902H75.9279V25.4495C75.9279 23.1266 74.3914 22.1802 72.7866 22.1802C71.6427 22.1802 70.8232 22.5587 70.1574 23.5223C69.7306 22.6792 68.8598 22.1802 67.6477 22.1802C66.7258 22.1802 65.6331 22.662 65.2063 23.4191V22.4383H62.7308V30.9902H65.3258Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M91.2554 30.9902V28.7361H87.2775L91.1871 24.5892V22.4383H84.2386V24.6752H87.8751L84.1361 28.6845V30.9902H91.2554Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M81.2543 30.9724H78.2705L79.1483 25.3659H78.2705V22.2412H82.1268V25.3659L81.2543 30.9724Z' fill='white' fill-opacity='0.87'/%3e%3cpath d='M82.1268 16.5957H78.2705V20.2927H82.1268V16.5957Z' fill='white' fill-opacity='0.87'/%3e%3crect x='96.9414' y='16.8032' width='29.729' height='15.5108' rx='1.77728' stroke='white' stroke-opacity='0.87' stroke-width='1.77728'/%3e%3cpath d='M107.13 22.9346C107.13 21.4073 105.937 20.2256 104.343 20.2256H101.656V28.1406H103.429V25.6324H104.343C105.937 25.6324 107.13 24.4618 107.13 22.9346ZM105.413 22.9346C105.413 23.5143 104.956 23.9713 104.321 23.9713H103.429V21.8978H104.321C104.956 21.8978 105.413 22.3437 105.413 22.9346ZM108.265 28.1406H110.037V24.8743H110.327L112.958 28.1406H115.087L112.289 24.6513C113.292 24.2946 113.838 23.6369 113.838 22.6113C113.838 21.2958 112.88 20.2256 111.386 20.2256H108.265V28.1406ZM110.037 23.3693V21.8532H111.174C111.698 21.8532 112.077 22.1319 112.077 22.6113C112.077 23.0683 111.698 23.3693 111.174 23.3693H110.037ZM118.997 28.2744C121.249 28.2744 123.088 26.435 123.088 24.1831C123.088 21.9313 121.249 20.0919 118.997 20.0919C116.734 20.0919 114.906 21.9313 114.906 24.1831C114.906 26.435 116.734 28.2744 118.997 28.2744ZM118.997 26.5576C117.704 26.5576 116.689 25.4651 116.689 24.1831C116.689 22.9011 117.704 21.8086 118.997 21.8086C120.279 21.8086 121.294 22.9011 121.294 24.1831C121.294 25.4651 120.279 26.5576 118.997 26.5576Z' fill='white' fill-opacity='0.87'/%3e%3c/svg%3e" alt="Programiz PRO Logo" title="Programiz PRO Logo" class="programiz-logo programiz-logo--footer"/></a></li><li><ul class="privacy-container"><li><a href="/privacy-policy" class="pro-footer__link" title="Privacy Policy" data-testid="footer-link">Privacy Policy</a></li><li><a href="/terms-of-service" class="pro-footer__link" title="Terms of Service" data-testid="footer-link">Terms of Service</a></li></ul></li><li><ul class="pro-footer-social"><li><a href="https://www.facebook.com/programiz.pro" target="_blank" class="social-link" title="Facebook" rel="noreferrer"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg></a></li><li><a href="https://www.instagram.com/programiz.pro/" target="_blank" class="social-link" title="Instagram" rel="noreferrer"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg></a></li><li><a href="https://www.linkedin.com/company/programiz/" target="_blank" class="social-link" title="LinkedIn" rel="noreferrer"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg></a></li><li><a href="https://twitter.com/programiz" target="_blank" class="social-link" title="Twitter" rel="noreferrer"><svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg"><mask id="mask0_232_6070" maskUnits="userSpaceOnUse" x="0" y="0" width="19" height="18"><path d="M0.5 0H18.5V18H0.5V0Z" fill="white"></path></mask><g mask="url(#mask0_232_6070)"><path d="M14.675 0.84375H17.4354L11.4054 7.75318L18.5 17.1569H12.9457L8.59229 11.4548L3.61657 17.1569H0.853571L7.30271 9.76404L0.5 0.845036H6.19571L10.1249 6.05604L14.675 0.84375ZM13.7043 15.5009H15.2343L5.36 2.41361H3.71943L13.7043 15.5009Z" fill="white" fill-opacity="0.67"></path></g></svg></a></li><li><a href="https://www.youtube.com/@programizstudios" target="_blank" class="social-link" title="Youtube" rel="noreferrer"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon></svg></a></li><li><a href="https://www.reddit.com/r/Programiz/" target="_blank" class="social-link" title="Reddit" rel="noreferrer"><svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="9" r="8.5" stroke="white" stroke-opacity="0.67"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M13.2037 5.46982C13.7198 5.46982 14.1383 5.05138 14.1383 4.5352C14.1383 4.01903 13.7198 3.60059 13.2037 3.60059C12.8309 3.60059 12.509 3.81885 12.359 4.13457C11.9738 4.04348 10.3879 3.66981 10.2967 3.6698C10.1928 3.66978 10.014 3.69736 9.95054 3.87749L9.29285 6.99288L9.30115 6.99671C7.93271 7.03846 6.7009 7.44608 5.80306 8.08238C5.56416 7.83741 5.23048 7.6853 4.86128 7.6853C4.13482 7.6853 3.5459 8.27422 3.5459 9.00069C3.5459 9.54254 3.87354 10.0079 4.34151 10.2094C4.31888 10.3467 4.30725 10.4863 4.30725 10.6278C4.30725 12.6351 6.64742 14.2624 9.53417 14.2624C12.4209 14.2624 14.7611 12.6351 14.7611 10.6278C14.7611 10.4761 14.7477 10.3266 14.7218 10.1798C15.1554 9.96476 15.4535 9.51754 15.4535 9.00069C15.4535 8.27422 14.8646 7.6853 14.1381 7.6853C13.7834 7.6853 13.4614 7.82573 13.2249 8.05403C12.3344 7.43664 11.1256 7.04122 9.78443 6.99726L10.3659 4.15442L12.2706 4.5888C12.2983 5.08004 12.7055 5.46982 13.2037 5.46982ZM7.45732 10.8701C7.97349 10.8701 8.39194 10.4516 8.39194 9.93547C8.39194 9.4193 7.97349 9.00085 7.45732 9.00085C6.94115 9.00085 6.52271 9.4193 6.52271 9.93547C6.52271 10.4516 6.94115 10.8701 7.45732 10.8701ZM12.4767 9.93547C12.4767 10.4516 12.0582 10.8701 11.542 10.8701C11.0259 10.8701 10.6074 10.4516 10.6074 9.93547C10.6074 9.4193 11.0259 9.00085 11.542 9.00085C12.0582 9.00085 12.4767 9.4193 12.4767 9.93547ZM7.83613 12.1505C7.69012 12.0548 7.57328 11.9782 7.49151 11.9782C7.31843 11.9782 7.28381 12.082 7.28381 12.082C7.24108 12.1456 7.22752 12.1915 7.2492 12.2897C7.31852 12.4628 7.68672 12.7068 8.25304 12.9128C8.25304 12.9128 8.87612 13.0859 9.53381 13.0859C10.1915 13.0859 10.7454 12.9128 10.7454 12.9128C11.1242 12.792 11.3794 12.6801 11.7146 12.4282C11.8877 12.1859 11.7492 11.9436 11.4723 11.9782C11.4723 11.9782 11.23 12.1512 11.0915 12.2551C10.953 12.3589 10.6415 12.4282 10.6415 12.4282C10.6415 12.4282 10.2607 12.6012 9.53381 12.6012C8.80689 12.6012 8.42612 12.4628 8.42612 12.4628C8.19856 12.3882 7.99916 12.2574 7.83613 12.1505Z" fill="white" fill-opacity="0.67"></path></svg></a></li></ul></li></ul><small class="bottom-right copyright">© <!-- -->2026<!-- --> Parewa Labs Pvt. Ltd. All rights reserved.</small></div></div></footer><div class="Toastify" id="toast-container"></div><div class="Toastify" id="toast-container-v2"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"slug":"why-is-the-content-inside-the-head-section-not-shown-on-the-webpage-i-though","questionData":{"question":{"content":"Why is the content inside the \u003chead\u003e section not shown on the webpage? I thought it would display when the code runs.","slug":"why-is-the-content-inside-the-head-section-not-shown-on-the-webpage-i-though","userCode":"","askedOn":"2025-10-09T11:47:48.280985","metaContentDetail":{"course":{"title":"Learn HTML","slug":"learn-html","language":"HTML"},"section":{"title":"Introduction to HTML"},"sectionContent":{"title":"HTML Document Structure","slug":"html-document-structure"},"sectionContentPage":{"pageNumber":3}},"user":{"fullName":"Onyelusi Anthonia","profilePic":null,"country":{"code":"NG","name":"Nigeria"},"isSubscriptionActive":false}},"answers":[{"content":"\u003cp\u003eHi Onyelusi,\u003c/p\u003e\u003cp\u003eThe \u003ccode\u003e\u003chead\u003e\u003c/code\u003e is for page information the browser needs, not for content the user reads on the page. Things in \u003ccode\u003e\u003chead\u003e\u003c/code\u003e include the page title, meta info, links to CSS, and scripts.\u003c/p\u003e\u003cp\u003eThe content that shows on the webpage goes inside the \u003ccode\u003e\u003cbody\u003e\u003c/code\u003e.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre\u003e\u003ccode\u003e\u003chead\u003e\n \u003ctitle\u003eMy Page\u003c/title\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n \u003ch1\u003eThis will show on the page\u003c/h1\u003e\n\u003c/body\u003e\n\u003c/code\u003e\u003c/pre\u003e\u003cp\u003e\u003ccode\u003e\u003ctitle\u003e\u003c/code\u003e shows in the browser tab, but the \u003ccode\u003e\u003ch1\u003e\u003c/code\u003e shows on the actual page.\u003c/p\u003e\u003cp\u003eIf you have more questions, I am here to help 😊\u003c/p\u003e","expertDetail":{"fullName":"Abhay Jajodia","profilePic":"https://cdn.programiz.pro/profile-pics/abhay.jpg","userName":"abhay"},"answeredOn":"2025-12-18T06:06:19.931913"}]},"experts":[{"displayName":"Sudip Bhandari","userName":"sudip","profilePic":"https://cdn.programiz.pro/profile-pics/sudip.jpg","jobTitle":"Head of Growth/Marketing @Programiz","totalAnsweredQuestions":18},{"displayName":"Apekchhya Shrestha","userName":"apekchhya","profilePic":"https://cdn.programiz.pro/profile-pics/apekchhya.png","jobTitle":"Senior Product Manager @Programiz","totalAnsweredQuestions":10},{"displayName":"Kelish Rai","userName":"kelish","profilePic":"https://cdn.programiz.pro/profile-pics/kelish.jpg","jobTitle":"Technical Content Writer @Programiz","totalAnsweredQuestions":90},{"displayName":"Abhilekh Gautam","userName":"abhilekh","profilePic":"https://cdn.programiz.pro/profile-pics/abhilekh.jpeg","jobTitle":"System Engineer","totalAnsweredQuestions":7},{"displayName":"Palistha Singh","userName":"palistha","profilePic":"https://cdn.programiz.pro/profile-pics/palistha.jpg","jobTitle":"Technical Content Writer @Programiz","totalAnsweredQuestions":10},{"displayName":"Sarthak Baral","userName":"sarthak","profilePic":"https://cdn.programiz.pro/profile-pics/sarthak.jpeg","jobTitle":"Senior Content Editor @Programiz","totalAnsweredQuestions":17},{"displayName":"Saujanya Poudel","userName":"user_40","profilePic":"https://cdn.programiz.pro/profile-pics/saujanya.jpg","jobTitle":"","totalAnsweredQuestions":7},{"displayName":"Abhay Jajodia","userName":"abhay","profilePic":"https://cdn.programiz.pro/profile-pics/abhay.jpg","jobTitle":"","totalAnsweredQuestions":164},{"displayName":"Nisha Sharma","userName":"nisha","profilePic":"https://cdn.programiz.pro/profile-pics/nisha.jpg","jobTitle":"Technical Content Writer @Programiz","totalAnsweredQuestions":9},{"displayName":"Udayan Shakya","userName":"udayan","profilePic":"https://cdn.programiz.pro/profile-pics/udayan.png","jobTitle":"Technical Content Writer @Programiz","totalAnsweredQuestions":19}],"shouldPersistHeaderBorder":true},"__N_SSP":true},"page":"/discuss/[lang]/[slug]","query":{"lang":"html","slug":"why-is-the-content-inside-the-head-section-not-shown-on-the-webpage-i-though"},"buildId":"PtI-9VHOFrIoqWpLPi7C0","isFallback":false,"isExperimentalCompile":false,"gssp":true,"scriptLoader":[]}</script></body></html>