Are you preparing for HTML and don’t know where to start? Well, then you are in the right place! In this blog, we have prepared a list of TOP 50 HTML Interview Questions and Answers in 2020 that are most likely to be asked by the interviewers. This helps the students prepare thoroughly for the technical interview.

  1.  Why is the “alt” in <img> tag is used in HTML?

Alt specifies as an alternate text for an image.

    • alt=” ” is used if the image is only for decoration
    • The text should explain where the link goes only if the image is inside an <a> element.
    • The text in alt is used to describe the image if the image s containing information.

2.   How to  Add copyright symbol in HTML? 

         The copyright symbol is the identification of the owner of the copyright,                               either by name, abbreviation, or other designation, you can use it by the following             ways in any HTML page:- 

&copy                                         or                                        &#169

    3.  Is it possible to change the color of the bullet?

 The color of the bullet is always the color of the first text of the list. So, if  you want             to change the color of the bullet, you must change the color of the text.

4.  What are the entities in HTML?

The HTML character entities are used as a replacement for reserved characters in HTML. You can also replace characters that are not present on your keyboard by entities. These characters are replaced because some characters are reserved in HTML. 

 

5.  What is SVG?

In HTML,SVG is used to describe the 2-D vector and vector/raster graphics. SVG images and their behaviors are defined in XML text files. So as XML files, you can create and edit an SVG image with the text editor. It is mostly used for vector type diagrams like pie charts, 2-Dimensional graphs in an X, Y coordinate system.

<svg width=“100” height=“100”>    

 <circle cx=“50” cy=“50” r=“40” stroke=“yellow” stroke-width=“4” fill=“red” />    

</svg>   

  1. what are the frequently new elements using in HTML 5?

There are few new elements using in HTML 5:-

  1. Color
  2. Date
  3. Datetime-local
  4. Email
  5. Time
  6. Url
  7. Range
  8. Telephone
  9. Number
  10. Search

 

  1. Name the supported file formats for <audio> tag in HTML 5 ?
  1. mp3
  2. WAV
  3. Ogg

For example:-

<audio controls>    

 <source src=“koyal.mp3” type=“audio/mpeg”>    

Your browser does not support the HTML <audio> tag. 

   </audio>   

8 . what is the use of a datalist tag?

Ans. Datalist tag provides an autocomplete feature on the form element. It facilitates users to choose the predefined options for the users to select data.

9. How to add external script and external style into an HTML page?

   <link rel=“stylesheet” href=“style.css”>

    <script src=“./js/main.js”></script>

10. Which Tag is mainly used to display if scripts are not supported by the browser?

The <nonscript> tag is mainly used to display if scripts are not supported by the browser

<Nonscript> tag shows an alternate content for users who have disabled scripts in their browser or have a browser that is not supporting script.  

The <noscript> element can be used in both <head> and <body>.

1582893851.jpg

We have a blog of Html interview questions pdf free download that are most likely to be asked by the interviewers. If you want to prepare deeply well for your interviews, you can also visit Technical Interview Questions to learn more. For more updated interview questions you can visit our website http://www.codingtag.com.