Table of Contents
How about being a successful Web developer in 2020. Have you yet started preparing with the fundamentals? HTML is an important part and component of front end development, the knowledge of which is undeniably important before you become a Full-stack web developer. So we present you a list of questions which will help you a little more towards acknowledging HTML concepts.
HTML Intermediate Interview Questions
Here’s a look at some commonly asked HTML developer interview questions:
Q1. What is HTML?
Ans: HTML stands for hypertext markup language. It is the standard text formatting language which is used to create and display pages on the web.HTML documents consist of two components: the content and the tags.
Q2. What are the key elements of the list used for designing a page?
Ans: The following list types are
- Definition list
- menu list
- Directory list
- Ordered list
- Unordered list
Q3. What is the significance of a collapsed white space?
Ans: A sequence of blank space characters is called white space. In HTML it is designated as a single space character. The browser is able to collapse multiple spaces into single spaces, so the line of text can be indented without worrying about the space. It makes HTML more easily readable.
Q4. How do you create links to the section of the same page?
Ans: Links are usually created using the <a> tag with the reference of using the number (#) symbol.
Q5: What is the utility of alternative text in image mapping?
Ans: When image mapping is done, there is a possibility of confusion, as to navigate hotspots, i.e., to determine which hotspots map to which link. There comes alternative texts into existence. It helps in putting a descriptive text to each link to make it distinct.
Q6: What is the meaning of the style sheet?
Ans: A style sheet is basically a set of style rules that tells a browser about how the various HTML tags are to be applied to present a document.
Q7: How many types of style sheets are there?
Ans: There are three different types of style sheets;
- Embedded: The style rules are included within the HTML generally at the top of the web page- the head.
- Inline: The style rules exist throughout the HTML of the web page- the body.
- Linked: The style rules are stored outside in a separate file which is external to all the web pages.
Q8: Write an HTML table tag sequence that outputs the following:
60 pcs 200 400
30 pcs 5 60
Q9: How can you change the colour of the bullets?
Ans: The colour of the bullet remains the same as the first character in the list item. Surrounding the <li>, and the first character with a set of <font> tags with colour attribute set, the bullet colour and the first character will be different from the text.
Q10. What should be the limit of text field size?
Ans: The default size of any text character is 13 characters. Including the size attribute, the lower value can be assigned to as low as 1. Browser width determines the maximum size value. Size attribute being set as 0, the default size will be 13 characters.
Q11. What is the difference between active links and normal links?
Ans: the colour by which both active and normal links are recognised by is blue. When the mouse cursor is placed over a link, and it has a focus, it determines that it is an active link. Those who don’t have a focus over the placement of mouse cursor on them are called a normal link.
Q12. List the new FORM elements in HTML5?
Ans: The new FORM elements render more and better functionalities than the previous one.
- <datalist> : this tag usefuly list outputs for input controls.
- <keygen>: It represents a key value pair generator.
- <output>: It represents the result of scripting calculation.
Q13: What is the difference between session and local storage in HTML5?
Ans: Session storage: It only stores current session data. once the browser get closed, it clears the storage automatically.
It does store current session data but unlike session storage, the storage does not get cleared automatically once the browser get closed.
Q14: What are the new input types provided by HTML5 in forms?
Ans: New data types introduced by HTML5 are;
- datetime-local- It allows the user to select a date and time irrespective of the time zone.
- datetime- It allows the user to select a date and time taking into account the time zone.
- Date- It allows the user to choose a date.
- month- It allows user to select a month and year.
- email- This input consists of email listing and details.
Q15: How do you create a nested webpage in HTML?
Ans: In HTML iframe tag is used to denote a nested webpage.
<h2>HTML Iframes example</h2>
<p>Use the length and breadth attributes to specify the size of the iframe:</p>
<iframe src=”https://www.javatpoint.com/” height=”200″ width=”300″></iframe>
Q16: What are the void elements in HTML?
HTML elements that do not need to be closed or do not have any closing tags are called void elements. Some common examples are: br, col, command, hr, img, input, source, track, link.
No, the HTML tags are just the opening or the closing entry and they begin with < symbol and end with > symbol, while the HTML elements encompass the opening and the closing tag plus the content. For example: <p> and </p> are HTML tags, while <p>This is the content</p> is the HTML element.
Tags are used to represent the opening or the closing entry and they begin and end with symbols < and >, respectively. HTML attributes are used to define the character of an HTML element and are always placed in the opening tag.
Q19: What are HTML entities?
HTML entities refer to a piece of text or string that begins with an ampersand (&) and ends with a semicolon (;). These entities are used to display reserved characters and invisible characters or characters that are difficult to type with a normal keyboard.
Q20: What are Frames in HTML?
This is among the most important HTML developer interview questions. Frames are used to make the navigation of a site easier.
Q21: What is the HTML Layout Structure?
The general layout structure includes the header, which shows the start information, and the footer, which represents the last section of the page. Other components of the structure include the navigation menu, the main content or article, details, and the sidebar content.
Q22: What are the different types of lists in HTML?
Lists are used for grouping related pieces of information and help in creating a well-structured and more accessible document. These lists make webpages easy to read and update. Three main types of lists are used in HTML:
- Unordered – This is used to group a set of related items but in no specific order.
- Ordered – This is used to group a set of related items in a specific order.
- Description – This list is used to display name or value pairs, such as terms and definitions.
Menu and Directory lists are also used in HTML.
HTML Advanced Interview Questions
Once you are clear about the basics of HTML, you also need to familiarise yourself with its applications and usage. Here are some HTML advanced interview questions whose answers you should know.
Q1: What do you mean by Application Cache in HTML5?
This means that the web application is cached and can be accessed even without an internet connection.
Q2: What are applets?
Applets refer to small programs that can be combined or fixed with webpages to perform a specific function like computation or animation.
Q3: What are the input types of HTML5 for forms?
The input types of HTML5 for forms and collection of specific types of data are: Date, DateTime-local, DateTime, month, email, week etc.
Q4: Which New Tags are Included in HTML5?
This is one of the most important HTML advanced interview questions. HTML5 comes with two new tags – <video> and <audio>. These tags are used to play multimedia content on the webpages and are a replacement for the flash player and Silverlight.
Q6: What is the Get and Post Method?
As the name suggests, the GET method is used to seek data from the server, while the POST is used for submitting the data to the server.
Q7: What is Longdesc in HTML?
This attribute is used to provide a link to another page containing a description of the contents of the frame.
Q8: What is CSS?
CSS refers to Cascading Style Sheet and is a list of rules that can be assigned to various HTML elements.
HTML MCQ Section
Question: What is the full form of HTML?
- HyperText Mark Up Language
- HyperText Mark Down Language
- HighText Mark Up Language
- None of the Above.
Question: Which of these List Types is Used in HTML?
- Bulleted, Numbered
- Ordered, Unordered
- Named, Unnamed
- None of the Above
Question: HTML files are saved by the extension
- None of the above
Question: Which of the following tags do not require a closing tag?
- Both a and b
- None of the above
Question: Colours are defined in HTML Using:
- RGB Values
- HEX Values
- RGBA Values
- None of the above
Question: Which of the following is true about HTML tags?
- They are case sensitive
- They are not case sensitive
- Are in uppercase
- Are in lowercase
Question: What are the main components of the front end of any working website?
- HTML, CSS
- None of the Above
- None of the above