InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the difference between server sent events and Websockets in html5? |
Answer»
|
|
| 2. |
What is Server Sent Events? |
|
Answer» A SERVER-sent event is when a NET page automatically receives updates from a server. This used to be ADDITIONALLY possible before, however, the internet web page WOULD have to ask if any updates had been available. With server-sent EVENTS, the updates come automatically. |
|
| 3. |
What are the new attributes of form tag in HTML5? |
|
Answer» Here is a list of the NEW FORM attributes INTRODUCED in HTML 5
|
|
| 4. |
What is a tag in HTML5? |
|
Answer» The <a> tag in HTML 5 is USED to define a hyperlink. The <a> tag is used to LINK one page to another. The most vital function of the <a> element is having the href attribute, which ACCURATELY INDICATES the link's destination. By default, the HYPERLINKS will automatically appear in all browsers |
|
| 5. |
What is drag and drop in HTML5? |
|
Answer» The Drag and Drop feature is primarily a part of HTML 5. It is used to GRAB an object and move it towards ANOTHER location. In HTML 5, every element is draggable by default. Hence, there is no NEED for a SEPARATE FUNCTION. |
|
| 6. |
What is a manifest file in HTML? |
|
Answer» In HTML 5, the manifest file is a normal text file used for LISTING resources in the browser which are to be cached for OFFLINE ACCESS. It ALSO helps in LOADING resources faster and reducing server load time. |
|
| 7. |
How many tags were removed in HTML5? |
| Answer» | |
| 8. |
What are the various formatting tags in HTML5? |
|
Answer» Formatting tags are used in HTML 5 to display different STYLES of text. Here are the formatting tags in HTML 5:
|
|
| 9. |
What is w3c and Whatwg? |
|
Answer» The World Wide Web Consortium (W3C) is a community of developers WORKING TOWARDS setting global standards for development. WHATWG is SHORT for Web Hypertext Application TECHNOLOGY Working Group. It was created during a W3C workshop session by working individuals of Apple, Mozilla and Opera Software in 2004. WHATWG is a community of developers focused more on HTML RATHER than XHTML and working on standards to improve on user needs. |
|
| 10. |
What is and why we can use this? |
|
Answer» The <iframe> tag is used to indicate an inline FRAME, or, a browsing CONTEXT that is NESTED. It allows outside DOCUMENTS to be inserted in the main HTML document seamlessly. Inline frames are mostly used in online advertising, where the contents of the iframe can e an AD from a third party. |
|
| 11. |
What is Web SQL Database in Html 5? |
|
Answer» Web SQL is not a part of HTML5. It is a separate SPECIFICATION that helps in DEVELOPING web apps. Web SQL is USED to manage the client-side database because it stores data on the client side, not on the server side. A Web SQL database works only in latest versions of Google Chrome, Safari, and Opera browsers. Related Article: Tips to crack CSS INTERVIEWS |
|
| 12. |
Describe the usage of , , , and HTML5 semantic elements. |
|
Answer» <footer>: This SEMANTIC element is used to contain information that should appear at the very end of the content section. It also contains additional information of the section such as copyright information, Author's name, and related links. <article>: This one contains a self-contained composition which can logically be recreated by developers outside of the page without LOSING its primary meaning. For example NEWS stories and blog posts. <section> : This HTML5 semantic element holds content that shares a common informational purpose or theme. <header>: Developers USE this to contain NAVIGATIONAL and introductory information about a section of the page, such as section heading, publication date and time, author’s name, content table, etc. |
|
| 13. |
How many ways to use colors apply on html elements? |
|
Answer» We can color HTML elements in three different WAYS, as mentioned below. |
|
| 14. |
How do we declare a custom attribute in HTML? |
|
Answer» Custom attributes are one of the most important new features in HTML5. They play an integral role in semantic DEVELOPMENT. Custom attributes are designed to store custom data private to WEB pages or applications for which there are no other attributes. Because custom attributes are VALID in HTML5, they get used in all browsers that support HTML5 doctypes. All attributes in HTML5 on an element starts with "data-" like data-type="best", data-distance="4km", data-identifier="bestinterviewquestion.com". |
|
| 15. |
What is a list tag and mention the most commonly used list tags? |
|
Answer» HTML5 users implement list tags to list out the required INFORMATION. The most commonly used list tags are mentioned below for your acknowledgment. Definition List: This list tag offers a list in it and takes Definition Term (<dt>...</dt>) and a DETAILED definition (<dd>...</dd>). 1. Ordered List: This list tag provides the required list by the user in a NUMBERED format. Syntax: 2. Unordered List: This one offers the user required a list in a bullet format. Syntax: Both the ordered and unordered list item tags USE the list item tags (<ul>...</ul>) in them. |
|
| 16. |
Is local storage secure? |
|
Answer» No. Local storage is not very secure because it was not designed to be used as SECURED storage in a web browser. Local storage was only designed to be a simple key/value storage that developers WOULD use to build SINGLE page APPS. |
|
| 17. |
What are the features of html5? |
Answer»
|
|
| 18. |
What is the Geolocation API in HTML5? Explain |
|
Answer» The Geolocation API in HTML5 allows the users to share their physical location with SELECTED websites. This happens when JavaScript captures a USER’s latitude and LONGITUDE and sends it to the back-end server for enabling location-aware features such as finding local businesses or showing location on a map. |
|
| 19. |
Can we use multiple and elements in html5? |
|
Answer» YES. Both <header> and <footer> tags are made to fulfill their respective purposes in relation to their PARENT “section”. So not only can you use both header and footer elements on a page in HTML5, but you can also use both in every <article> or <section>. A <header> TAG MUST be present for all articles, sections, and pages, although a <footer> tag is not necessary. Our HTML5 interview QUESTIONS are an ideal resource to prepare you for HTML developer job interviews. |
|
| 20. |
What is hyperlink? why it is used? |
|
Answer» A hyperlink in HTML is a TEXT of an image on a web page that when CLICKED by the user redirects him to a NEW web page. Hyperlinks, or links, are defined with <a> tag. The primary use of Hyperlinks is to link ONE web page to another. |
|
| 21. |
What is html5 new input type? |
|
Answer» HTML5 has introduced new INPUT TYPES for forms. Designers can BUILD interactive and user-friendly web forms by using these input types. The new input types also provide improved data validation, better COLOR picker CONTROLS, and enhanced input control. The new input types are:
|
|
| 22. |
What is Meta tags? Why it is used? |
|
Answer» HTML5 has introduced a way to let designers take CHARGE of the web page area that is VISIBLE to the users through tags. The tag TELLS information related to an HTML document. Some of the examples are Link, Style, and Title. With meta tag, we can ADD meta ketwords, meta description and meta title that helps for SEO Purposes. |
|
| 23. |
What is the purpose of ? |
|
Answer» The in HTML5 refers to indicating to the web browser about the version of HTML in which the page is created. Neither there is an END tag is not is it case sensitive. In HTML5, declaration should be the FIRST thing before HTML tag. This is because of all previous version before HTML5 followed Standard Generalized Markup Language (SGML). Because HTML5 does not follow SGML, it does not require references to DTD (DOCUMENT Type Definition). |
|
| 24. |
In HTML5, what is a Microdata? |
|
Answer» Microdata is a newly introduced, SIMPLE semantic syntax which can be used by DEVELOPERS to ADD the nested GROUPS of name and value pair of data to documents, that are based on the page content COMMONLY. It’s used with new global attributes of HTML5. |
|
| 25. |
What does WHATWG stand for in the world of HTML5? |
|
Answer» The abbreviation WHATWG stands for WEB Hypertext APPLICATION Technology Working GROUP in HTML5. This is an organization which both develops and maintains the HTML and API for web applications. |
|
| 26. |
What are the web storages present in HTML5? |
|
Answer» In HTML5, users will receive two types of WEB storages as following. 1. LOCAL STORAGE: Here, data will be stored in the local storage, and will not be cleared automatically or when we close the browser. 2. SESSION Storage: With this type, the user’s browser current session data will be stored. Once the browser is CLOSED, the storage will be cleared. |
|
| 27. |
What is a Web Worker in Html5? |
|
Answer» A WEB worker in HTML5 is a SCRIPT that runs on a separate thread in the background without the need for the MAIN web page to wait for it to complete. Web WORKERS enable long TASKS to be achieved without keeping the web page responsive. There are two types of web workers - Dedicated workers and Shared workers. |
|
| 28. |
Is it possible for a webpage to contain multiple or elements? |
|
Answer» Yes, both <header> and <footer> can be ADDED multiple times in a webpage. Both of these tags are designed to serve a crucial purpose in relation to their parent SECTION. Not only the page <BODY> contains a header and a footer, but every <section> and <article> also contains these two, ALTHOUGH the use of multiple footers is ALWAYS not required. |
|
| 29. |
What is MathML in Html5? |
|
Answer» MathML is Mathematical Markup Language. This language is used to show SCIENTIFIC and mathematical content on web PAGES. HTML5 allows you to use MathML ELEMENTS in a document using <math>...</math> tags. A mathematical EXPRESSION should be inserted in the element <math> with a specified namespace as shown below: <math xmlns="http://www.w3.org/1998/Math/MathML"> </math> |
|
| 30. |
What is the application cache in HTML5 and why it is used? |
|
Answer» The application cache is a feature in HTML 5 which is used to STORE website data inside a CACHED VERSION, thus allowing accessibility without net connectivity. It is very useful for desktop-based web applications REQUIRING to store data on LOCAL systems. |
|
| 31. |
What is image map in Html5? |
|
Answer» In HTML 5, an Image map is ONE having clickable areas. The tag map defines an image-map. Example<img src="https://www.bestinterviewquestion.com/storage/blog/small/1585841464.png" alt="Workplace" usemap="#workmap"> |
|
| 32. |
What is the use of ? |
|
Answer» The <fieldset> tag in HTML5 is used to GROUP together related FORM elements. A <fieldset> must begin with a <legend> tag because this tag will define the TITLE of the fieldset. By using <fieldset> tag and <legend> tag together, DESIGNERS can make their FORMS easier to understand and use. The syntax for <fieldset> tag is: <fieldset>Controls</fieldset> |
|
| 33. |
What is the use of and tags in Html5? |
|
Answer» The <AUDIO> tag in HTML5 is used to embed voice in an HTML document. Designers USE <SOURCE> tag to specify MEDIA type along with other attributes. The <video> tag in HTML5 is used to embed a video file in an HTML document. Designers can use <source> tag to specify media type along with other attributes. |
|
| 34. |
What is local storage in HTML5? How it is used? |
|
Answer» HTML5 has introduced the concept of LOCAL Storage, which is used to access a web page's local storage area without any time limit. Local storage is AVAILABLE whenever the user wants to use the web page. The data stored in Local Storage does not GET automatically deleted when the browser window is closed; it only gets removed when deleted manually. In local storage, the data is stored using a key and value. 12. What are the different types of storage in html5? ExplainIn HTML5, data can be stored in 2 ways – SESSION storage and local storage.
|
|
| 35. |
What is the difference between the SVG and Canvas? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 36. |
What are the different types of are available in HTML5? |
|
Answer» It is used to create a reference to a Document TYPE Definition. In HTML 5, Doctype declaration is only needed to enable a standard MODE for documents which are WRITTEN with the HTML syntax. Hence, the Doctype for HTML 5 is SHORT and case-insensitive.
|
|
| 37. |
What is the use of Scalable Vector Graphics (SVG) in HTML5? |
|
Answer» SVGs or SCALABLE Vector GRAPHICS are used in HTML 5 to display 2-D graphics and its applications in XML which is later on RENDERED by an SVG viewer. The SVG element is used to contain SVG graphics. Example<!DOCTYPE html> <svg width="100" height="100"> </body> |
|
| 38. |
How do you optimize a website's assets & reduce page load time? |
|
Answer» Follow these steps to optimize assets and also reduce the page load TIME of any WEBSITE:
|
|
| 39. |
Is HTML5 tags are case sensitive? |
|
Answer» No, HTML is not case sensitive. It MEANS that <P> is the same as <p>. HOWEVER, W3C advises writing HTML in LOWERCASE especially when WORKING on an XHTML document. |
|
| 40. |
List out the page structure elements of HTML5? |
|
Answer» Here is a list of page STRUCTURE in HTML 5:
|
|
| 41. |
What is the new Structural Elements in HTML5? |
|
Answer» HTML5 has introduced the following STRUCTURAL elements for defining different parts of a web page: |
|
| 42. |
What is semantic elements in html5? List some semantic elements. |
|
Answer» A SEMANTIC ELEMENT absolutely describes its that means to each the browser and the developer. Elements such as HEADER, footer and article are all viewed semantically due to the fact they PRECISELY describe the reason for the aspect and the kind of CONTENT material that is inner them. HTML5 Semantic Elements
|
|
| 43. |
What is an API and list the API's available in HTML5? |
|
Answer» API (Application Programming Interfaces) in HTML5 is a way to build different applications USING pre-built components. DEVELOPERS can integrate the relevant features of existing APIS into their new websites. The APIs in HTML5 are:
|
|
| 44. |
What is the difference between HTML and HTML5? |
||||||||||||
Answer»
|
|||||||||||||