HTML Basics

Test your knowledge of HTML tags, attributes, and web development fundamentals

9 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following tags would create an image on your website, http://www.myweb.com that is found on another website, http://www.bonzo.com/bonzo.gif that is aligned to the center of the page and has a thin border?

  1. < img src="bonzo.gif" web="http://www.myweb.com" align="center" border="small" >
  2. < img src="http://www.bonzo.com/bonzo.gif" web="http://www.myweb.com" align="center" border="5" >
  3. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="5" >
  4. < img src="http://www.bonzo.com/bonzo.gif" align="center" border="thin" >
Question 2 Multiple Choice (Multiple Answers)

Which of the following HTML tags allows you to define the background of the webpage or a portion of it as an attribute of the tag?

  1. TABLE
  2. IMG
  3. BACKGROUND
  4. BODY
Question 3 Multiple Choice (Single Answer)

Which of the following tags allows you to create a URL that links to another part of the webpage "location"?

  1. < A HREF="#location">< /A>
  2. < A HREF="location">< /A>
  3. < A HREF="location">link< /A>
  4. None of the above
Question 4 Multiple Choice (Single Answer)

Which of the following HTML tags is/are used to changed the font size of text?

  1. FONT
  2. SIZE
  3. H1
  4. HEAD
Question 5 Multiple Choice (Single Answer)

To create a hyperlink that points to an email address, the contents of the HREF attribute must begin with: _____

  1. mailto
  2. emailto
  3. sendto
  4. messageto
Question 6 Multiple Choice (Single Answer)

Which of the following correctly describes the use of the ALT attribute of the IMAGE tag?

  1. To provide an alternate image location if the original is not available
  2. To provide the image height
  3. To provide the image width
  4. To provide a textual description of the image
Question 7 Multiple Choice (Multiple Answers)

Which of the following tags can be used to create a comment in HTML?

  1. < !-- comment -->
  2. < ! comment >
  3. #comment
  4. < !-------comment-->
Question 8 Multiple Choice (Multiple Answers)

What is the purpose of the < NOFRAMES> tag?

  1. To ensure that frames are not used on a particular page
  2. To give the user the option of not using frames on a particular page
  3. To let the browser know what page to display if it does not support frames
  4. To help search engine robots better access all of the content on a page
Question 9 Multiple Choice (Single Answer)

Which of the following tags is used to categorize HTML pages so that search engines can better identify their content?

  1. SUMMARY
  2. SUM
  3. META
  4. CRAWLER
  5. HEADER