Top 15 HTML Interview Questions with Answer Keys

If you are a beginner to the web designing/web development, probably this would be the first thing for you to learn. Though there are many enhancements in the technologies that are used to build pages, however, this remains still the basic. Because of which, HTML is one of the basic topics to help evaluate the understanding of the concepts.

Moreover, HTML is the standard markup language for creating Web pages. HTML describes the structure of web pages using the markup. Also, HTML is the building block of web pages and the elements are represented by tags.

Keeping above mentioned things in mind, we have decided to create a blog post to focus on the HTML questions which might be asked in the interview. Keep reading –


html interview questions

1. What’s the extension of HTML files?

HTML supports both .htm and .html extension.

2.How do you create a frames?

For creating HTML frames, you have a <frame> tag within a frameset (<frameset>). Here, <frame> tag defines a particular window within the frameset.

3. How can you set an image as a background on the web pages?

To set an image as a background on the web page, point the body background to the name of your image you want to set as a background as shown below- 


<body background= “image.gif”>

You can also set the background image, so during using the scroll bar in the browser, it remains still.  To do this add the BGPROPERTIES tag as shown below:- 

<body background = “image.gif”bgproperties=”fixed”>

4. Does a hyperlink apply to text only?

No, hyperlinks can be used in the images as well. That feature converts an image into a link that will allow users to link another page when they clicked. Here, <a href=” “>…</a> tag is used with the <img> tag.

5. What are some of the common lists that can be used when designing a page?

These are the supported list types –

  • Unordered list
  • Ordered list
  • Definition list
  • Menu list
  • Directory list 

6. Name three ways to define a color in HTML?

  1. Hex
  2. RGB
  3. Name (ie blue)

.colorMy { color:blue; color:#1b2dd1; color:rgb(27, 45, 209); }             


7. Explain, what’s the difference between == and === ?

The 3 equal signs mean “equality without type coercion”. Using the triple equals, the values must be equal in type as well.

== is equal to

=== is exactly equal to (value and type) 

Let’s understand this with an example –

0==false // true

0===false // false, because they are of different type

1==”1″ // true, auto type coercion

1===”1″ // false, because they are of different type

8. What is the difference between form get and form post?


GET Method

POST Method

They are a part of URL. So, parameters saved in the browser.

In the post, parameters are not saved in history.

Get can be bookmarked.

POST can’t be bookmarked.

This is not secure.

This is Secure.

Easy to hack.

Difficult to hack.

When sending passwords or may some other sensitive information, then GET method should not be used.

And here for sending sensitive information POST method is used.

It can be Cached

It can’t be Cached.

This is Restricted. Only ASCII characters allowed.

Here no restrictions, It also Allows Binary data.

9. What’s the difference between an alert box and confirm box in HTML?

An alert box is a popup box that contains only one element. Most of the times, this is just an information popped up on the user’s screen. There is only one element, eg OK button.

However, confirm box has two buttons – OK and cancel. This is used to ask the user’s choice. 

10. What’s the better way to design the layout of web pages – a table tag or a div tag?

– The better and very efficient way to design the layout of the web pages is the <div> tag.

– The <table> tag is used to present the data in tabular format.

11. How do you create a button in HTML, which acts as a link?

There we have two ways of creating hyperlinks buttons:- 

  1. <FORM ACTION=”[url]” METHOD=get>

                    <INPUT TYPE=submit VALUE=”Text on button”>


  1. <INPUT TYPE=”Submit” VALUE=”Go to my link”

                  ONCLICK=”;” />

12. What’s the image map in HTML?    Job Interview

In HTML, Image map links to different web pages using a single image. Here, you can define shapes in the images and also you want to make a part of an image mapping. 

13. What’s the benefit of collapsing white space?

The Blank sequence of space characters are the White spaces. In HTML, they are treated as a single space character. Because the browser collapses multiple spaces into a single space, hence you can indent lines of text without any worrying about the multiple spaces. This feature enables the designer to organize the much more readable HTML code format.

14. How can you create a link to sections within the same page?

The Links can be created by using the <a> tag and with referencing through the use of the number (#) symbol. Let’s suppose, you have one line as  <a href=”#link”>Show This</a> and the result in the words “Show This” appearing on the web browser and links to a bookmark named link. Then you can create a separate tag like <a name=” link”> on the top of the same web browser so that the user will be linked when he/she clicked on “Show This”.

15. What happens when the no of values in the columns and rows attribute does not add up to 100 %?

The size of browser frames relative to the total sum of the values. when the columns attribute is set to 100%, 200% then the browser shows two vertical frames with the second being double as the first.

successful interview

Apart from this, there are super helpful HTML tutorials available on our Pristine Tech School channel. Please find the information below –
For a free tutorial on various technologies, subscribe to YouTube channel –

Facebook –

Hope this article was helpful. Let us know if you have any feedback/suggestions for us in the comment section below.

Good Luck. Happy Programming !

86 thoughts on “Top 15 HTML Interview Questions with Answer Keys

  1. I really don’t know the way I finished up below, however imagined this specific post had been terrific. I can’t recognize whom you may very well be but certainly you are going to a well-known doodlekit cleaning soap are certainly not currently. Cheers!

  2. Economy of Russia We n we publish all of them current and important facts USA, estimates experts. All evil on earth exists with the quiet tacit consent of the indifferent. No one provides us with incentives. We are People. We are building a civil society. The people are the bearer of sovereignty and the only source of power. No one can usurp power.

  3. Russian news We n we publish all of them hot and advanced events Russia, estimates experts. All bad in the world happens with the quiet tacit consent of the indifferent. No one provides us with incentives. We are People. We are building a civil society. The people are the bearer of sovereignty and the only source of power. No one can usurp power.

  4. Economy of Russia We n we publish all of them current and important news USA, analytics experts. All bad in the world exists with the quiet tacit consent of the indifferent. No one provides us with incentives. We are Enthusiasts. We are building a civil society. The people are the bearer of sovereignty and the only source of power. No one can usurp power.

  5. Latest news USA We n we publish all of them fresh and advanced news USA, estimates experts. All evil on this planet happens with the quiet tacit consent of the indifferent. No one provides us with incentives. We are Enthusiasts. We are building a civil society. The people are the bearer of sovereignty and the only source of power. No one can usurp power. Useful topics – Photovision

  6. I am no longer positive where you’re getting your information, however great topic adobe web design software. I must spend a while finding out much more or working out more. Thank you for wonderful info I was in search of this info for my mission.

  7. Generally I don’t read article on blogs, but I wish to say that this write-up very compelled me to take a look at and do so! Your writing style has been surprised me. Thank you, very great article.

  8. you are really a excellent webmaster. The web site loading pace is amazing. It seems that you are doing any unique trick. Moreover, The contents are masterpiece. you have done a excellent process in this subject!

  9. hello!,I love your writing so so much! proportion we communicate extra about your article on AOL? I need an expert in this space to resolve my problem. Maybe that is you! Taking a look ahead to see you.

  10. I definitely wanted to jot down a remark so as to thank you for the unique hints you are placing on this site. My rather long internet investigation has at the end been honored with good quality content to exchange with my pals. I would express that we readers are extremely blessed to live in a useful community with very many brilliant people with very beneficial suggestions. I feel somewhat fortunate to have seen your weblog and look forward to tons of more cool moments reading here. Thanks a lot once again for a lot of things.

  11. Someone essentially help to make critically posts I’d state. That is the first time I frequented your website page and up to now? I surprised with the research you made to make this particular publish amazing. Great activity!

  12. Usually I don’t read the post on blogs, however, I wish to say that this write-up very compelled me to check out and do so! Your writing taste has been amazed me. Thank you, a quite great article.

  13. I’ve recently started a website, the info you provide on this website has helped me tremendously. Thank you for all of your time & work. “So full of artless jealousy is guilt, It spills itself in fearing to be spilt.” by William Shakespeare.

  14. I am in fact delighted to read this webpage posts which consists of tons of
    helpful data, thanks for providing such information.

  15. I want to express thanks to you for rescuing me from such a predicament. As a result of searching through the world-wide-web and getting principles which were not productive, I believed my entire life was over. Existing without the presence of answers to the problems you’ve fixed as a result of your entire post is a crucial case, as well as those which might have badly affected my entire career if I hadn’t noticed your web site. The talents and kindness in handling the whole lot was priceless. I am not sure what I would have done if I had not come upon such a step like this. It’s possible to at this moment relish my future. Thank you so much for the skilled and effective guide. I won’t think twice to propose your blog to anybody who needs and wants counselling on this matter.

  16. I got what you mean , regards for putting up.Woh I am happy to find this website through google. “Delay is preferable to error.” by Thomas Jefferson.

  17. Your style is very unique compared to other people I’ve read stuff from.
    Thanks for posting when you have the opportunity, Guess I’ll just
    bookmark this site.

  18. For most recent news you have to pay a visit world-wide-web and on internet
    I found this site as a finest website for hottest updates.

  19. Hello! I’m at work browsing your blog from my new apple iphone!
    Just wanted to say I love reading your blog and look forward to all
    your posts! Keep up the outstanding work!

  20. You really make it seem so easy with your
    presentation but I find this matter to be really something which I think I would never understand.
    It seems too complicated and very broad for me. I am looking forward for your
    next post, I’ll try to get the hang of it!

  21. Just wish to say your article is as amazing. The clarity in your post is just excellent and i could assume you are an expert on this subject. Fine with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the enjoyable work.

  22. Magnificent beat ! I would like to apprentice while you amend your site, how could i subscribe for a blog site?
    The account aided me a acceptable deal. I had been a little bit acquainted of this your
    broadcast provided bright clear idea

  23. I’m curious to find out what blog platform you have been utilizing?
    I’m experiencing some minor security issues with my latest blog and I’d like to find something more
    safe. Do you have any recommendations?

  24. I just want to tell you that I am beginner to blogs and absolutely loved this blog. Most likely I’m planning to bookmark your blog . You absolutely come with wonderful posts. Bless you for revealing your web-site.

  25. I intended to create you this very little observation to say thank you over again on your pleasant principles you’ve shared here. This has been really remarkably generous of you to make unreservedly all numerous people would have offered for an e-book to help with making some bucks for themselves, certainly considering that you could possibly have done it if you ever considered necessary. Those thoughts in addition acted like a fantastic way to fully grasp that someone else have the same zeal just like my personal own to find out a lot more on the topic of this condition. I’m sure there are millions of more pleasant opportunities in the future for individuals who read through your blog.

  26. I like this weblog so much, bookmarked. “Respect for the fragility and importance of an individual life is still the mark of an educated man.” by Norman Cousins.

  27. Hello! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My site looks weird when viewing from my iphone 4. I’m trying to find a theme or plugin that might be able to correct this issue. If you have any recommendations, please share. Thank you!

  28. The processor or CPU is the brains of the personal computer – it does most of the calculations your video game titles need to have to run (with the movie card undertaking most of the graphics function). With it getting such an critical part, you would instinctually go for the fastest – and most pricey – processor you could find, but there is a improved alternate to blowing hard cash on one thing that will be obsolete in a year: receiving a processor that will play tomorrow’s video game titles at a low cost is the sweet spot for any gaming computer.

  29. naturally like your website but you need to take a look at the spelling on several of your posts. Many of them are rife with spelling issues and I in finding it very bothersome to tell the reality then again I will surely come back again.

  30. Además la reparación de cualquier electrodoméstico la hacemos en domicilio, así facilitamos al cliente que pueda hacer uso de su lavadora frigorífico cualquier electrodoméstico en el mismo día, se la reparamos y le damos todas las garantías. Para la reparación de lavadoras y frigoríficos Madrid, nuestros técnicos cuentan con las herramientas más modernas en detección de averías.

  31. I haven¡¦t checked in here for a while because I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my daily bloglist. You deserve it my friend 🙂

  32. La unidad exterior de un equipo split es vital que tenga las regillas limpias y que el aire circule sin dificultad por ellas, de no ser así aumenta la presión en el circuito, pudiendo saltar la proteccón de presostato de ALTA, HP deteniendose el compresor, debemos limpiar una vez cada 1 ó 2 años según la tengamos instalada en lugares con mayor menor suciedad polución, retirando restos de hojas, suciedad y grasa acumulada que puedan impedir el libre paso del aire.

  33. We stumbled over here different page and thought I might as well check things out. I like what I see so i am just following you. Look forward to exploring your web page again.

  34. You made some decent factors there. I looked on the internet for the difficulty and located most people will go together with with your website.

  35. I think this is one of the most important info for me. And i am glad studying your article. However wanna remark on few general issues, The website style is wonderful, the articles is in reality great : D. Good task, cheers

  36. I can see that you are an expert at the field! I’m starting a website quickly, and your info will be very useful for myself.. Thank you for your entire aid and wishing you all the actual success inside your enterprise.

  37. hey there and thank you for your information – I have definitely picked up anything new from right here. I did however expertise some technical issues using this website, since I experienced to reload the site lots of times previous to I could get it to load correctly. I had been wondering if your web hosting is OK? Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and could damage your quality score if ads and marketing with Adwords. Anyway I am adding this RSS to my email and could look out for much more of your respective interesting content. Make sure you update this again very soon..

  38. Appreciating the hard work you put into your site and in depth information you provide. It’s good to come across a blog every once in a while that isn’t the same outdated rehashed information. Excellent read! I’ve bookmarked your site and I’m including your RSS feeds to my Google account.

  39. Hello there, I found your blog via Google while looking for a related topic, your web site came up, it looks great. I’ve bookmarked it in my google bookmarks.

  40. Only wanna input that you have a very nice web site , I love the design and style it really stands out.

  41. Hello my friend! I wish to say that this article is awesome, nice written and include almost all significant infos. I’d like to peer more posts like this .

  42. Very interesting details you have noted , thankyou for posting .This will be huge for smugglers sending these phones to countries that are not directly supported by Apple currently. Apple will move substantial units this way. This article only takes the American perspective, which is ridiculous.

  43. I have been examinating out a few of your stories and i can state pretty clever stuff. I will definitely bookmark your website.

  44. Howdy would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good internet hosting provider at a reasonable price? Many thanks, I appreciate it!

  45. MetroClick specializes in building completely interactive products like Photo Booth for rental or sale, Touch Screen Kiosks, Large Touch Screen Displays , Monitors,

  46. Thanks for your handy post. Through the years, I have been able to understand that the symptoms of mesothelioma cancer are caused by the build up of fluid relating to the lining of the lung and the upper body cavity. The illness may start in the chest location and propagate to other body parts. Other symptoms of pleural mesothelioma include weight loss, severe breathing trouble, fever, difficulty swallowing, and bloating of the neck and face areas. It should be noted that some people with the disease do not experience almost any serious symptoms at all.

  47. A person necessarily assist to make severely articles I would state. That is the very first time I frequented your website page and up to now? I surprised with the analysis you made to create this particular publish amazing. Magnificent process!

  48. Unquestionably believe that which you said. Your favourite reason appeared to be on the net the easiest thing to keep in mind of. I say to you, I definitely get irked at the same time as other folks think about concerns that they plainly don’t recognise about. You controlled to hit the nail upon the highest and also defined out the entire thing without having side effect , other people could take a signal. Will likely be back to get more. Thanks

  49. An added important area is that if you are a senior, travel insurance regarding pensioners is something you ought to really take into consideration. The more mature you are, the greater at risk you’re for getting something negative happen to you while in most foreign countries. If you are not covered by many comprehensive insurance, you could have some serious problems. Thanks for discussing your suggestions on this web site.

  50. We’re a group of volunteers and opening a new scheme in our community. Your web site provided us with valuable info to work on. You have done an impressive job and our entire community will be thankful to you.

  51. hi!,I love your writing very a lot! proportion we be in contact extra approximately your article on AOL? I require an expert in this area to resolve my problem. Maybe that is you! Having a look ahead to see you.

  52. As I web site possessor I believe the content material here is rattling excellent , appreciate it for your efforts. You should keep it up forever! Best of luck.

  53. magnificent points altogether, you simply gained a new reader. What would you recommend about your post that you made a few days ago? Any positive?

  54. You should be a part of a contest for one of the most useful websites on the internet.

    I most certainly will highly recommend this website!

  55. Thanks for the marvelous posting! I definitely enjoyed reading it, you might be a great author.I will make sure to bookmark your blog and definitely will come back at some point. I want to encourage you continue your great posts, have a nice day!

  56. Thanks so much for giving everyone an extraordinarily special possiblity to read from this web site. It is often so nice and as well , full of amusement for me and my office acquaintances to visit your web site not less than three times in one week to read the fresh guidance you have got. And of course, I am at all times astounded for the dazzling thoughts you serve. Selected 4 points on this page are truly the most beneficial we have had.

  57. hello!,I love your writing very so much! proportion we keep up a correspondence extra approximately your article on AOL? I need a specialist in this house to unravel my problem. May be that is you! Taking a look forward to peer you.

Leave a Reply

Your email address will not be published. Required fields are marked *