Top 5 HTML Interview Questions (Part 4)

16. How to open a link in new tab or window?

      Use the following code to open the link in new tab or window
       <a href = "" target="_blank">Click Here</a>

17. What are heading tag in HTML?

       There are different tags in HTML Heading.
        <H1>Large Heading</H1> 
        <H2>Heading Two</H2>
        <H6>Small Heading</H6>

18. How to change the Background Color in HTML?

      Just use the bgcolor in body tag
     <body bgcolor="#FF00FF">

19. Different types of HTML List?

      Ordered List and Unordered List.

20. How to Add Title in HTML ?

      To add Title in HTML code use the <TITLE></TITLE> Tag in between     <HEAD></HEAD> Tag
      e.g. <HEAD>
                      <TITLE>My  PAGE</TITLE>