Sunday, 2 September 2012

Activity No. 7

1. What tag is used to describe the contents of a Web page?
  •   Your <title> tag is probably the most useful. But you may be thinking about the
       <meta name="description" content="About Your Page" /> tag.

2. What tag is used to make text appear in bold?

  • The tag <B> will tell the browser to display the contents that follow bold until it sees the tag</B>.

3. What tag is used to indicate the start of the contents of a Web page?
  • The contents of the Web page are coded inside the BODY section. Contents represent all the text inside the <BODY></BODY> tag pair. The contents will be displayed as a continuous  text unless other HTML tags, such as starting a new paragraph or new heading, are included

4. What tag is used to indicate the start of the HTML file?
  • The Head section is indicated by a <HEAD> tag and closed with the </HEAD> tag.

5. What tags are used for comments in a HTML file?
  •      The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.
  • You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.
  • It is also a good practice to use the comment tag to "hide" scripts from browsers without support for it (so they don't show them as plain text):
  • <script type="text/javascript">
    <!--
    function displayMsg( )
    {
    alert("Hello World!")
    }
    //-->
    </script>
         Note: The two forward slashes at the end of comment line (//) is the JavaScript comment symbol.
         This prevents JavaScript from executing the --> tag.

No comments:

Post a Comment