MENU

Chapter 5 HTML (HyperText Markup Language) Solutions

Question - 1 : - HTML is a markup language. Expand the term HTML.

Answer - 1 : - HyperText Markup Language.

Question - 2 : - Give examples of a container element in HTML.

Answer - 2 : - , , <BODY>.</p> <strong>Question - 3 : - <a title='Give the examples of an empty element in HTML' target='_blank' href='Give-the-examples-of-an-empty-element-in-HTML.aspx'>Give the examples of an empty element in HTML.</a></strong> <p><b>Answer - 3</b> : - <BR>, <HR></p> <strong>Question - 4 : - <a title='Write the extension of HTML code file' target='_blank' href='Write-the-extension-of-HTML-code-file.aspx'>Write the extension of HTML code file.</a></strong> <p><b>Answer - 4</b> : - html or .htm</p> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Horizontal Banner --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-2486244291544850" data-ad-slot="6083416215" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script><strong>Question - 5 : - <a title='What is the method of viewing the source code of t' target='_blank' href='What-is-the-method-of-viewing-the-source-code-of-t.aspx'>What is the method of viewing the source code of the current page in the Web browser?</a></strong> <p><b>Answer - 5</b> : - Right click on the Web page and then select View Source from the context menu.</p> <strong>Question - 6 : - <a title='While writing HTML code how do you find out how yo' target='_blank' href='While-writing-HTML-code-how-do-you-find-out-how-yo.aspx'>While writing HTML code, how do you find out how your Web page would look like?</a></strong> <p><b>Answer - 6</b> : - For this, open the HTML code file in a Web browser.</p> <strong>Question - 7 : - <a title='Write HTML code to set the image Pen jpg stored in' target='_blank' href='Write-HTML-code-to-set-the-image-Pen-jpg-stored-in.aspx'>Write HTML code to set the image ‘Pen. jpg’ stored in ‘My Pictures’ folder in C: as the background of your Web page.</a></strong> <p><b>Answer - 7</b> : - The HTML code is <BODY background=“C:\My Pictures \Pen.jpg”></p> <strong>Question - 8 : - <a title='Identify the error s in the following HTML code Al' target='_blank' href='Identify-the-error-s-in-the-following-HTML-code-Al.aspx'><div>Identify the error(s) in the following HTML code. Also, write the correct code. CBSE 2008</div><div><BODY color=“red” background =“school.j pg”></div></a></strong> <p><b>Answer - 8</b> : - <div>The error in the code is that in place of color attribute there should be bgcolor.</div><div>The correct code is</div><div><BODY bgcolor =“red” background =“school.jpg”></div></p> <strong>Question - 9 : - <a title='Write one basic difference between bgcolor and bac' target='_blank' href='Write-one-basic-difference-between-bgcolor-and-bac.aspx'>Write one basic difference between bgcolor and background attributes.</a></strong> <p><b>Answer - 9</b> : - The bgcolor attribute is used for coloring the background of the document while background attribute specifies a background image for a document.</p> <strong>Question - 10 : - <a title='Name two common graphic files formats that most br' target='_blank' href='Name-two-common-graphic-files-formats-that-most-br.aspx'>Name two common graphic files formats that most browser recognise.</a></strong> <p><b>Answer - 10</b> : - The two common graphic file formats are: .gif and .jpg.</p> <div align="center"> <div class='signup'><a href='chapter-5-html-(hypertext-markup-language)-solutions.aspx?catid=4367' class="btn_1" style="width: 96px; display: inline-block; margin-right: 220px;"> Previous</a></div><div class='signup'><a style="width: 96px; display: inline-block;" href='chapter-5-html-(hypertext-markup-language)-solutions-1.aspx?catid=4367' class="btn_1">Next </a></div> </div> </div> <div style="text-align: center;"><a title="Previous Years Question Papers" target="_blank" href="/Previous-Years-Question-Papers/Previous-Years-Question-Papers.aspx"><b style="font-size: 20px; text-decoration: underline; color: red;">Free - Previous Years Question Papers</b></a></div> </div> <div class="tutorial-advt-panel"> </a> <div class="post-button"><a href="../AddQuestionAnswer.aspx">Any questions? Ask us!</a></div> <div class="clear" style="height: 20px;"></div> <div class="relevant-tutorial-box"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Vertical Ad --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-2486244291544850" data-ad-slot="4597098243" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="relevant-tutorial-box"> <a href='https://www.interviewmaterial.com/NodeJS/NodeJS-Interview-Questions-and-Answers' target="_blank"'> NodeJS Interview Questions Answers <img src='' title='NodeJS Interview Questions Answers' alt=""></a> </div> <div class="relevant-tutorial-box"> <a href='https://www.interviewmaterial.com/Asp.Net/Asp.Net-Interview-Questions-and-Answers' target="_blank"'> ASP.Net Interview Questions Answers <img src='' title='ASP.Net Interview Questions Answers' alt=""></a> </div> <div class="relevant-tutorial-box"> <a href='https://www.interviewmaterial.com/Default.aspx' target="_blank"'> Interview Questions Answers <img src='' title='Interview Questions Answers' alt=""></a> </div> </div> <footer> <div class="footer-column"> <h5>Testimonials</h5> <p>NCERTQNA (NCERT Questions and Answers) website is most preferred by the students as it is founded by a higher educated group of professionals. NCERTQNA (NCERT Questions and Answers) is an online learning destination and NCERT questions and answers provider</p> <a target="_blank" href='http://halpura.com'>Read More...</a> </div> <div class="footer-column"> <h5>Quick Links</h5> <ul> <li><a target="_blank" title="Write your own blogs, Blogger" href='http://blog.halpura.com'>Blogs</a></li> <li><a target="_blank" title="Questions Answers" href='http://qna.halpura.com'>Questions</a></li> <li><a target="_blank" title="NCERT Solutions" href='/ncert-solutions/ncert-solutions.aspx'>NCERT Solutions</a></li> <li><a target="_blank" title="Interview Questions and Answers" href='https://www.interviewmaterial.com/'>Interview QnA</a></li> <li><a target="_blank" title="Interview Questions and Answers" href='https://tutorials.halpura.com'>Tutorials</a></li> </ul> </div> <div class="footer-column"> <h5>Computer</h5> <ul> <li><a target="_blank" title="C Interview Questions Answers" href='https://www.interviewmaterial.com/C/C-Interview-Questions-and-Answers.aspx'>C Questions</a></li> <li><a target="_blank" title="C++ Interview Questions Answers" href='https://www.interviewmaterial.com/CPlusPlus/CPlusPlus-Interview-Questions-and-Answers.aspx'>C++</a></li> <li><a target="_blank" title="Python Interview Questions Answers" href='https://www.interviewmaterial.com/PYTHON/PYTHON-Interview-Questions-and-Answers'>Python</a></li> <li><a target="_blank" title="Database Interview Questions and Answers" href='https://www.interviewmaterial.com/Database/Database-Interview-Questions-and-Answers'>Database</a></li> <li><a target="_blank" title="HTML Interview Questions and Answers" href='https://www.interviewmaterial.com/HTML/HTML-Interview-Questions-and-Answers'>HTML</a></li> </ul> </div> <div class="footer-column"> <h5>Interview Preparation</h5> <ul> <li><a target="_blank" title="Java Interview Questions and Answers" href='https://www.interviewmaterial.com/Java/Java-Interview-Questions-and-Answers'>Java</a></li> <li><a target="_blank" title="Javascript Interview Questions and Answers" href='https://www.interviewmaterial.com/JavaScript-Framework/JavaScript-Framework-Interview-Questions-and-Answers'>JavaScript</a></li> <li><a target="_blank" title="CSS Interview Questions and Answers" href='https://www.interviewmaterial.com/CSS/CSS-Interview-Questions-and-Answers'>CSS</a></li> <li><a target="_blank" title="Networking Interview Questions and Answers" href='https://www.interviewmaterial.com/Networking/Networking-Interview-Questions-and-Answers'>Networking</a></li> <li><a target="_blank" title="C# Interview Questions and Answers" href='https://www.interviewmaterial.com/CSharp/CSharp-Interview-Questions-and-Answers'>C#</a></li> </ul> </div> <div class="clear"> <br> <br> </div> <div class="copyright">© Copyright-2020. All rights reserved.</div> </footer> <div id="mySidenav" class="sidenav"> <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> <div id="SubscribeControl_UpdatePanel1"> <div class="dashboard-user-box"> <span id="SubscribeControl_lblMessage" style="color:Red;"></span> <div id="SubscribeControl_ValidationSummary1" style="color:Red;display:none;"> </div> </div> <div class="subscribe-form"> <h4>Subscribe Now!</h4> <span id="SubscribeControl_RequiredFieldValidator1" style="display:none;"></span> <input name="ctl00$SubscribeControl$txtName" type="text" id="SubscribeControl_txtName" placeholder="Name" class="textbox1" /> <span id="SubscribeControl_RequiredFieldValidator3" style="display:none;"></span> <span id="SubscribeControl_RegularExpressionValidator1" style="display:none;"></span> <input name="ctl00$SubscribeControl$txtEmail" type="text" id="SubscribeControl_txtEmail" placeholder="Email" class="textbox1" /> <span id="SubscribeControl_RequiredFieldValidator6" style="display:none;"></span> <input name="ctl00$SubscribeControl$txtMobile" type="text" id="SubscribeControl_txtMobile" placeholder="Mobile" class="textbox1" /> <div class="clear"></div> <input type="submit" name="ctl00$SubscribeControl$cmdSubmit" value="Submit" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$SubscribeControl$cmdSubmit", "", true, "vgSubscriber", "", false, false))" id="SubscribeControl_cmdSubmit" class="submit-button" /> </div> </div> </div> <span class="sticky-button" onclick="openNav()"><a href="#"> <img title="Subscribe Me" src="/images/sticky-button.png"></a></span> <script> function openNav() { if (document.getElementById("mySidenav").style.width == "300px") document.getElementById("mySidenav").style.width = "0"; // hide else document.getElementById("mySidenav").style.width = "300px"; // show } function closeNav() { document.getElementById("mySidenav").style.width = "0"; } </script> <script type="text/javascript"> //<![CDATA[ var Page_ValidationSummaries = new Array(document.getElementById("SubscribeControl_ValidationSummary1")); var Page_Validators = new Array(document.getElementById("SubscribeControl_RequiredFieldValidator1"), document.getElementById("SubscribeControl_RequiredFieldValidator3"), document.getElementById("SubscribeControl_RegularExpressionValidator1"), document.getElementById("SubscribeControl_RequiredFieldValidator6")); //]]> </script> <script type="text/javascript"> //<![CDATA[ var SubscribeControl_ValidationSummary1 = document.all ? document.all["SubscribeControl_ValidationSummary1"] : document.getElementById("SubscribeControl_ValidationSummary1"); SubscribeControl_ValidationSummary1.validationGroup = "vgSubscriber"; var SubscribeControl_RequiredFieldValidator1 = document.all ? document.all["SubscribeControl_RequiredFieldValidator1"] : document.getElementById("SubscribeControl_RequiredFieldValidator1"); SubscribeControl_RequiredFieldValidator1.controltovalidate = "SubscribeControl_txtName"; SubscribeControl_RequiredFieldValidator1.focusOnError = "t"; SubscribeControl_RequiredFieldValidator1.errormessage = "Please enter Name!"; SubscribeControl_RequiredFieldValidator1.display = "None"; SubscribeControl_RequiredFieldValidator1.validationGroup = "vgSubscriber"; SubscribeControl_RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid"; SubscribeControl_RequiredFieldValidator1.initialvalue = ""; var SubscribeControl_RequiredFieldValidator3 = document.all ? document.all["SubscribeControl_RequiredFieldValidator3"] : document.getElementById("SubscribeControl_RequiredFieldValidator3"); SubscribeControl_RequiredFieldValidator3.controltovalidate = "SubscribeControl_txtEmail"; SubscribeControl_RequiredFieldValidator3.focusOnError = "t"; SubscribeControl_RequiredFieldValidator3.errormessage = "Please enter Email!"; SubscribeControl_RequiredFieldValidator3.display = "None"; SubscribeControl_RequiredFieldValidator3.validationGroup = "vgSubscriber"; SubscribeControl_RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid"; SubscribeControl_RequiredFieldValidator3.initialvalue = ""; var SubscribeControl_RegularExpressionValidator1 = document.all ? document.all["SubscribeControl_RegularExpressionValidator1"] : document.getElementById("SubscribeControl_RegularExpressionValidator1"); SubscribeControl_RegularExpressionValidator1.controltovalidate = "SubscribeControl_txtEmail"; SubscribeControl_RegularExpressionValidator1.focusOnError = "t"; SubscribeControl_RegularExpressionValidator1.errormessage = "Please enter valid Email!"; SubscribeControl_RegularExpressionValidator1.display = "None"; SubscribeControl_RegularExpressionValidator1.validationGroup = "vgSubscriber"; SubscribeControl_RegularExpressionValidator1.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid"; SubscribeControl_RegularExpressionValidator1.validationexpression = "\\w+([-+.\']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"; var SubscribeControl_RequiredFieldValidator6 = document.all ? document.all["SubscribeControl_RequiredFieldValidator6"] : document.getElementById("SubscribeControl_RequiredFieldValidator6"); SubscribeControl_RequiredFieldValidator6.controltovalidate = "SubscribeControl_txtMobile"; SubscribeControl_RequiredFieldValidator6.focusOnError = "t"; SubscribeControl_RequiredFieldValidator6.errormessage = "Please enter Mobile!"; SubscribeControl_RequiredFieldValidator6.display = "None"; SubscribeControl_RequiredFieldValidator6.validationGroup = "vgSubscriber"; SubscribeControl_RequiredFieldValidator6.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid"; SubscribeControl_RequiredFieldValidator6.initialvalue = ""; //]]> </script> <script type="text/javascript"> //<![CDATA[ (function(id) { var e = document.getElementById(id); if (e) { e.dispose = function() { Array.remove(Page_ValidationSummaries, document.getElementById(id)); } e = null; } })('SubscribeControl_ValidationSummary1'); var Page_ValidationActive = false; if (typeof(ValidatorOnLoad) == "function") { ValidatorOnLoad(); } function ValidatorOnSubmit() { if (Page_ValidationActive) { return ValidatorCommonOnSubmit(); } else { return true; } } document.getElementById('SubscribeControl_RequiredFieldValidator1').dispose = function() { Array.remove(Page_Validators, document.getElementById('SubscribeControl_RequiredFieldValidator1')); } document.getElementById('SubscribeControl_RequiredFieldValidator3').dispose = function() { Array.remove(Page_Validators, document.getElementById('SubscribeControl_RequiredFieldValidator3')); } document.getElementById('SubscribeControl_RegularExpressionValidator1').dispose = function() { Array.remove(Page_Validators, document.getElementById('SubscribeControl_RegularExpressionValidator1')); } document.getElementById('SubscribeControl_RequiredFieldValidator6').dispose = function() { Array.remove(Page_Validators, document.getElementById('SubscribeControl_RequiredFieldValidator6')); } //]]> </script> </form> <div class="scrolltop-wrap"> <a href="#" role="button" aria-label="Scroll to top"> <svg height="48" viewBox="0 0 48 48" width="48" height="48px" xmlns="http://www.w3.org/2000/svg"> <path id="scrolltop-bg" d="M0 0h48v48h-48z"></path> <path id="scrolltop-arrow" d="M14.83 30.83l9.17-9.17 9.17 9.17 2.83-2.83-12-12-12 12z"></path> </svg> </a> </div> <script type="text/javascript" src="/js/menu.js"></script> <script type="text/javascript"> function myFunction2(x) { x.classList.toggle("change"); } </script> <script src="/js/util.js"></script> <!-- util functions included in the CodyHouse framework --> <script src="/js/main.js"></script> <script> /* When the user clicks on the button, toggle between hiding and showing the dropdown content */ function myFunction() { document.getElementById("myDropdown").classList.toggle("show"); } // Close the dropdown if the user clicks outside of it window.onclick = function (event) { if (!event.target.matches('.dropbtn')) { var dropdowns = document.getElementsByClassName("dropdown-content"); var i; for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); } } } } </script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-DHXZJDSQ6H"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-DHXZJDSQ6H'); </script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2486244291544850" crossorigin="anonymous"></script> <!-- Footer--> <!-- Go to www.addthis.com/dashboard to customize your tools --> <script async type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-625b9737a1cc9dfa"></script> </body> </html>