Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Workshop 69

4


Q Is the

tag the general-purpose tag for use when styling a page?


A No. The

tag is the general-purpose tag for containing content on a page. The


tag is intended specifically to hold paragraphs of text. There are many tags
that are not valid when placed within a

tag, including

. You’ll learn more
about
in Lesson 7, “Formatting Text with HTML and CSS.”

Q Is it possible to put HTML tags inside comments?


A Yes, you can enclose HTML tags within comments, and the browser will not dis-
play them. In fact, it’s common to use comments to temporarily hide sections of a
page, especially when testing things. Programmers (and web developers) generally
refer to this as “commenting it out.”


Quiz



  1. What three HTML tags are used to describe the overall structure of a web page,
    and what do each of them define?

  2. Where does the tag go, and what is it used for?</li><br /> <li>How many different levels of headings does HTML support? What are their tags?</li><br /> <li>Why is it a good idea to use two-sided paragraph tags, even though the closing tag</p> is optional in HTML?<br /> </li><br /> </ol><br /> <h2>Quiz Answers</h2><br /> <ol><br /> <li>The <html> tag indicates that the file is in the HTML language. The <head> tag<br /> specifies that the lines within the beginning and ending points of the tag are the<br /> prologue to the rest of the file. The <body> tag encloses the remainder of your<br /> HTML page (text, links, pictures, and so on).</li><br /> <li>The <title> tag is used to indicate the title of a web page in a browser’s title bar<br /> and bookmarks. It is also used by search engines. This tag always goes inside the<head> tags.<br /> </li><br /> <li>HTML supports six levels of headings. Their tags are <h1 .. /h1> through<br /> <h6 .. /h6>.</li><br /> <li>The closing </p> tag becomes important when using CSS to style your text.<br /> Closing tags also are required for XHTML 1.0.</li><br /> </ol> </div> <meta itemprop='headline' content="p 94: Quiz - Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day - free download pdf - issuhub"> </div> <div role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"> <span itemprop="url"><b><a href="/view/index?id=3238&pageIndex=93" rel="previous" itemprop="name">← Previous</a></b></span> <span itemprop="url" class="mx-3"><b><a href="/view/index?id=3238&pageIndex=95" rel="next" itemprop="name">Next →</a></b></span> </div> <div style=" text-align: center; margin: 20px auto; padding: 13px; width: 240px; font-size: 20px; "> <a class="page-link" style="background-color: #72bf86;" target="_blank" href="/view/index?id=3238&pageIndex=93#bookdownload" title="Free download pdf" >Free download pdf</a> </div> </div> <div class="footer"> <div class="container"> <div class="row"> <div class="col-lg-3 ml-lg-auto mb-5 mb-lg-0"> <div class="mb-4"> <h5 class="text-dark">Get our desktop app</h5> </div> <a class="btn btn-icon btn-indigo rounded-circle mr-2" target="_blank" href="/download/issuhub.dmg"> <i class="fa fa-apple"></i> </a> <a class="btn btn-icon btn-indigo rounded-circle" target="_blank" href="/download/issuhub.exe"> <i class="fa fa-windows"></i> </a> </div> <div class="col-6 col-md-3 col-lg mb-5 mb-lg-0"> <h5 class="text-dark">Company</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"><a href="/about">About</a></li> <li class="my-2"><a href="/contact">Contact</a></li> <li class="my-2"><a href="/news/index">News</a></li> </ul> <!-- End Nav Link --> </div> <div class="col-6 col-md-3 col-lg mb-5 mb-lg-0"> <h5 class="text-dark">Features</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"><a href="/quick">Quick Start</a></li> <li class="my-2"><a href="/desktop">Desktop</a></li> <li class="my-2"><a href="/editor-help">Editor</a></li> </ul> <!-- End Nav Link --> </div> <div class="col-6 col-md-3 col-lg"> <h5 class="text-dark">Documentation</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"><a href="/support/index">Support</a></li> <li class="my-2"><a href="/site/pricing">Pricing</a></li> </ul> <!-- End Nav Link --> </div> <div class="col-6 col-md-3"> <h5 class="text-dark">Resources</h5> <!-- Nav Link --> <ul class="list-unstyled mb-0"> <li class="my-2"> <a href="/tutorial" target="_blank"> <span class="media align-items-center"> <i class="fa fa-info-circle mr-2"></i> <span class="media-body">Tutorial</span> </span> </a> </li> <li class="my-2"> <a href="/site/login"> <span class="media align-items-center"> <i class="fa fa-user-circle mr-2"></i> <span class="media-body">Your Account</span> </span> </a> </li> </ul> <!-- End Nav Link --> </div> </div> </div> </div> <div class="footer"> <div class="container"> <div class="row"> <div class="col-md-6 mb-4 mb-md-0"> <!-- Nav Link --> <ul class="nav nav-sm nav-white nav-x-sm align-items-center"> <li class="my-2"> <a href="/privacy">Privacy & Policy</a> </li> <li class=" opacity my-2 mx-3">/</li> <li class="my-2"> <a href="/terms">Terms</a> </li> </ul> <!-- End Nav Link --> </div> <div class="col-md-6 text-md-right"> <ul class="list-inline mb-0"> <!-- Social Networks --> <li class="list-inline-item"> <a class="btn btn-xs btn-icon btn-soft-light" href="https://www.facebook.com/Issuhub-Flipbook-2315543688769343/"> <i class="fa fa-facebook text-dark"></i> </a> </li> <li class="list-inline-item"> <a class="btn btn-xs btn-icon btn-soft-light" href="https://twitter.com/IssuhubBooks"> <i class="fa fa-twitter text-dark"></i> </a> </li> <!-- End Social Networks --> </ul> </div> </div> <!-- Copyright --> <div style="text-align: center;"> <div >© ISSUHUB. 2025. All rights reserved.</div> </div> <!-- End Copyright --> </div> </div> </div> </div> <script src="/assets/6df76c57/assets/js/vendors/jquery-3.2.1.min.js"></script> <script src="/assets/6df76c57/assets/js/vendors/bootstrap.bundle.min.js"></script></body> </html>