EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login

HTML interview Questions

Home » Software Development » Software Development Tutorials » HTML Tutorial » HTML interview Questions

HTML interview Questions

Introduction To HTML Interview Questions and Answers

HTML stands for Hyper Text Markup Language. It is the language used for creating web pages and web applications. It was developed by W3C and WHATWG. HTML first version was introduced in 1993. The type of format is the Document file format. it’s an open format.

So you have finally found your dream job in HTML but are wondering how to crack the HTML interview and what could be the probable 2020 HTML Interview Questions. Every interview is different and the scope of a job is different too. Keeping this in mind we have designed the most common HTML Interview Questions and answers to help you get success in your interview.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Below is the most common feature of 2020 HTML Interview Questions, that can give you a great foundation in the language which is divided into two parts are as follows:

  • Part 1 – HTML Interview Questions (Basic)
  • Part 2 – HTML Interview Questions (Advanced)

Part 1 – HTML Interview Questions (Basic)

This first part covers basic interview questions and answers

1. What do you mean by HTML?

Answer:
HTML is known as Hypertext Markup Language. This Language is used for World Wide Web. It’s a standard Language which is used for creating the web pages.

2. What are the parts of the HTML page?

Answer:
Basically, there are two parts of the web pages: Content and Tags which are responsible for the format of an HTML page.

Let us move to the next HTML Interview Questions.

3. What do you mean by Tags?

Answer:
In HTML page content is placed between the Tags which are basically responsible for the formatting of the page. Tags are written between less than symbol (<) and greater than (>) symbol. For Example: <h1>text</h1>
In the above example <h1> is the opening tag and </h1> is the closing tag.

Popular Course in this category
HTML Training (12 Courses, 19+ Projects, 4 Quizzes)12 Online Courses | 19 Hands-on Projects | 89+ Hours | Verifiable Certificate of Completion | Lifetime Access | | 4 Quizzes with Solutions
4.5 (5,742 ratings)
Course Price

View Course

Related Courses
Bootstrap Training (2 Courses, 6+ Projects)XML Training (5 Courses, 6+ Projects)CSS Training (9 Courses, 9+ Projects)

4. Do all HTML tags are written in a pair?

Answer:
This is the most common HTML Interview Questions asked in an interview. No, there are some HTML tags are present which can be used as single. For Eg:
<img>, <br>.

5. What are the list types available in HTML?

Answer:
The common list type are available in HTML are given below:
– Ordered list
– Unordered list
– Definition list
– Menu list
– Directory list

6. Give the example for putting a comment in the HTML page?

Answer:
<!—Text for comment ->

7. How to insert the copyright symbol in the HTML file?

Answer:
For copyright symbol, we can use type &copy; or ©

8. How to apply Hyperlink in an HTML page?

Answer:
We can use <ahref> tag for HTML page. For eg: <ahref> Text </a>

9.How to change the font colour in the HTML page?

Answer:
we can give this command for changing the font color
<font color=”color”>…</font>

10. What is the Marquee tag?

Answer:
For the scrolling text, we use a marquee tag. For Eg: <marquee>text</marquee>

Let us move to the next HTML Interview Questions.

11. How to create an email enable text on the web page?

Answer:
For email enable text you have to write the following command in the web page. <A HREF=”mailto:emailaddress”>text to be clicked</A>

12. How to write the paragraph in the HTML page?

Answer:
For the paragraph tag <p> text you want to show the paragraph </p> will be used.

13. How will you make the image as the background of the web pages?

Answer:
The command which for making the image as a background is:
<body background = “image.gif”> where image.gif will be the path of the image.

14. What are the frames?

Answer:
By using frames we can make the navigation of the site easier.

15. What is HTML5?

Answer:
HTML5 is the fifth version of HTML language and it is the currently running version of HTML.

Let us move to the next HTML Interview Questions.

16. Which new tags are included in the HTML5?

Answer:
<video> and <audio> are the new tags which are introduced in the HTML5. They are basically used as a replacement of flash player and Silverlight to play multimedia items in the web pages.

17. Which browser supports the HTML5?

Answer:
Google Chrome, Apple Safari, Mozilla Firefox, and Opera all support most of the HTML5 features.

18.What is the <figure> in the HTML5?

Answer:
For representing the self-contained flow content we use a <figure> tag.

19. What is the Canvas element in the HTML?

Answer:
For representing charts, 2D images, graphs on the web page we use Canvas element.

20. What are the storage types of HTML5?

Answer:
Two storage type of HTML5 are:
Session Storage– It will store the data related to the current.
Local Storage- In this data will not be erased when the browser is closed

Part 2 – HTML Interview Questions (Advanced)

Let us now have a look at the advanced Interview Questions.

21. What do you mean by Application Cache in HTML5?

Answer:
The Application cached means the web application is cached. So It can be accessed without an internet connection.

22. Explain the input types of HTML5 for forms?

Answer:
Date, DateTime-local, DateTime, month, email.

23. What are applets?

Answer:
This is the frequently asked HTML Interview Questions in an HTML Interview. Applets are the small program which can be embedded with the web pages to perform some specific functionality like computation, animation.

24. Applets program are written in which language?

Answer:
Java

25. How can we get the geographic position of a user in HTML5?

Answer:
By using Geolocation API we can retrieve the location of the user.

Let us move to the next HTML Interview Questions.

26. What do you mean by HTML attribute?

Answer:
Additional information given with the elements is known as an attribute. For Eg
<font size=”10” color=”red”>

27. What is the extension for HTML page?

Answer:
.htm or .html is the extension for HTML

28. What are the different types of heading format supported by HTML?

Answer:
HTML heading is use to highlight the content of HTML document. the heading tags which are used in HTML are <h1> to <h6>.

29.How we use JavaScript with HTML?

Answer:
By using script tag we can use JavaScript with HTML. For Eg:
<script>
document.getElementById(“demo”).innerHTML = “Hello JavaScript!”;
</script>

30.What is the Get and Post Method?

Answer:
GET s use to request the data from server and POST is used for submitting the data to a server.

Let us move to the next HTML Interview Questions.

31. Which editor is used for creating the HTML pages?

Answer:
There are so many editors are available for HTML pages like Notepad, Notepad++, Sublime Text editor.

32. What is Longdesc in HTML?

Answer:
Longdesc is an attribute that allows you to provide a Link to another page that contains a description of the frame contents. For example longdesc=”framedescription.html”.

33. How to create a table in HTML?

Answer:
By using <table> tag we create the table in HTML. For eg. If you want to create the table with 3 rows and 3 columns:
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
<table>

34. What is CSS?

Answer:
CSS stands for Cascading Style Sheet. it’s a list of rules that can assign to various HTML elements. It is not case sensitive.

35. What are the web sockets?

Answer:
Web Sockets is a next-generation bidirectional communication technology for web applications which operates over a single socket and is exposed via a JavaScript interface in HTML 5 compliant browsers.

Let us move to the next HTML Interview Questions.

36. What is SPAN tag is used for?

Answer:
Span is used for formatting elements in the SPAN block. It is used to select inline text.

37. What are cell spacing and cell padding?

Answer:
Cell spacing the attribute that defines the width of the border of the HTML page and Cell padding is the attribute which defines the space between the cell content.

38. What are the Internationalization Attributes for XHTML Element?

Answer:
XML, DIR, LANG

39. What do you mean by Box Model?

Answer:
Every Element on a Page is a Rectangular Box and may have Width, Height, Padding, Borders, and Margins. Every section of the box model relates to a CSS property: width, height, padding, border, and margin.

40. Why we use the Embed tag?

Answer:
Embed Tag is used for including a Video or an Audio within an HTML Document. The Embed Tag requires a Closing Tag. It requires the Source of the Video or the Audio file that needs to be displayed onto the Page.
Syntax: <EMBED> Source File </EMBED>

Recommended Article

This has been a guide to List Of HTML Interview Questions And Answers so that the candidate can crackdown these Interview Questions easily. In this HTML Interview Questions, we have included all the important set of question which is asked in an interview. You may also look at the following articles to learn more –

  1. Perl Interview Questions 
  2. HTML5 Interview Questions
  3. Big Data interview questions
  4. AngularJS Interview Questions

HTML Training (12 Courses, 19+ Projects, 4 Quizzes)

12 Online Courses

19 Hands-on Projects

89+ Hours

Verifiable Certificate of Completion

Lifetime Access

4 Quizzes with Solutions

Learn More

2 Shares
Share
Tweet
Share
Primary Sidebar
HTML Tutorial
  • Interview Questions
    • HTML interview Questions
    • HTML5 Interview Questions And Answers
  • Basic
    • Introduction to HTML
    • What is HTML
    • HTML stands for
    • Advantages of HTML
    • Applications of HTML
    • Career In HTML
    • How HTML Works
    • Versions of Html
    • Symbols in HTML
    • HTML Commands
    • HTML Events
    • HTML Fonts Styles
    • HTML Form Controls
    • HTML Form Elements
    • HTML Frames
    • HTML Layout
    • HTML Entities
    • HTML List Styles
    • HTML Style Sheets
    • HTML Text Formatting Tags
    • What is XHTML?
    • HTML Section vs Div
    • DHTML
    • Cheat Sheet HTML
  • Attributes
    • HTML Attributes
    • HTML Event Attributes
    • HTML Style Attribute
    • HTML Text Attributes
    • HTML Block Elements
    • HTML Inline-Block
    • Block Level Elements in HTML
    • HTML Form Attribute
    • HTML Padding vs Margin
  • Tags
    • Types of Tags in HTML
    • Basic HTML Tags
    • HTML Format Tags
    • HTML object Tag
    • HTML Image Tags
    • HTML Table Tags
    • Meta Tag in HTML
    • Caption Tag in HTML
    • Aside Tag in HTML
    • Style Tag in HTML
    • Cite Tag in HTML
    • HTML Legend Tag
    • Quotation Tag in HTML
    • Datalist in HTML
    • map Tag in HTML
    • HTML Marquee Tag
    • Footer Tag in HTML
    • HTML nav Tag
    • HTML figure Tag
    • Option Tag in HTML
    • Inline Tags in HTML
    • Pre Tag in HTML
    • Span Tag in HTML
    • HTML samp Tag
    • SUP Tag in HTML
    • Div Tag in HTML
    • HTML tr Tag
    • HTML abbr Tag
    • HTML Address Tag
    • Small Tag in HTML
    • PHP Tag in HTML
    • Canvas Tag in HTML
    • Font Tag in HTML
    • Select Tag in HTML
    • HTML Picture Tag
    • Fieldset Tag in HTML
    • HTML Code Tag
    • kbd Tag in HTML
    • TextArea Tag in HTML
    • HTML Article Tag
    • HTML Button Tag
    • HTML time Tag
    • THead Tag in HTML
    • HTML frameset Tag
    • HTML checkbox Tag
    • Address Tag in HTML
    • Area Tag in HTML
    • HTML Strike Tag
    • HTML section Tag
    • HTML Umlaute
    • Frame Tag in HTML
    • tfoot in HTML
    • Embed Tag in HTML
    • href tag in HTML
    • Alt Tag in HTML
    • HTML Audio Tag
  • Color
    • HTML Colors 
    • RGB Color Model
    • Color Name in HTML
    • HTML Color Picker
    • Scrollbar Color
  • HTML5
    • What is HTML5
    • HTML5 Elements
    • Html5 New Elements
    • HTML5 Tags
    • HTML5 Semantics
    • HTML5 Web Workers
    • HTML5 Semantic Elements
  • Advance
    • Create Tables in HTML
    • Drag and Drop in HTML
    • Dropdown List in HTML
    • HTML Align Center
    • HTML Display Block
    • HTML Blocks
    • HTML Canvas
    • HTML SVG
    • HTML Text Editors
    • HTML Text Link
    • HTML Text Decoration
    • HTML URL Encoding
    • Iframes in HTML
    • HTML Tooltip
    • HTML Reset Button
    • HTML Hide Element
    • Image Link in HTML
    • Web Templates HTML
    • HTML Ordered List
    • HTML Unordered List
    • HTML Description List
    • HTML Form Validation
    • HTML Form Action
    • Registration Form in HTML
    • HTML Justify Text
    • Date in HTML
    • Vertical Table HTML
    • DOCTYPE HTML
    • Moving Text in HTML
    • Scrollbar in HTML Table
    • Responsive in HTML
    • HTML Inline-Style
    • HTML Progress Bar
    • HTML Colspan
    • HTML Favicon
    • HTML margin-left
    • Combobox in HTML
    • HTML Table Background
    • Table Without Border in HTML
    • Nested Table in HTML
    • Table Border in HTML
    • HTML onclick Button
    • HTML Image Padding
    • HTML Padding
    • HTML Border Style
    • HTML Float Left
    • File Path in HTML
    • HTML Geolocation
    • Linking Pages in HTML
    • Embed PHP in HTML
    • How to Add CSS in HTML?
    • Design Web Page in HTML
    • HTML Schriftart
    • Cursor in HTML
    • Scrollbar in HTML
    • HTML Sonderzeichen
    • HTML Search Bar

Related Courses

Online HTML Course

Bootstrap Training Course

XML Training Course

CSS Training Course

Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

© 2020 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you
Book Your One Instructor : One Learner Free Class

Let’s Get Started

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

Special Offer - HTML Training (12 Courses, 19+ Projects, 4 Quizzes) Learn More