![]() HTML Interview QuestionsA list of top frequently asked HTML interview questions and HTML5 interview questions and answers are given below. 1) What is HTML?HTML stands for Hyper Text Markup Language. It is a language of World Wide Web. It is a standard text formatting language which is used to create and display pages on the Web. It makes the text more interactive and dynamic. It can turn text into images, tables, links. More details. 2) What are Tags?HTML tags are composed of three things: an opening tag, content and ending tag. Some tags are unclosed tags. HTML documents contain two things:
When a web browser reads an HTML document, the browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties. SyntaxContent is placed between tags to display data on the web page. More details.3) Do all HTML tags have an end tag?No. There are some HTML tags that don't need a closing tag. For example: 4) What is formatting in HTML?The HTML formatting is a process of format the text for a better look and feel. It uses different tags to make text bold, italicized, underlined. More details. 5) How many types of heading does an HTML contain?The HTML contains six types of headings which are defined with the to is the largest heading tag and 6) How to create a hyperlink in HTML? |
Tag | Description | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8) What are some common lists that are used when designing a page?There are many common lists which are used to design a page. You can choose any or a combination of the following list types:
9) What is the difference between HTML elements and tags?HTML elements communicate to the browser to render text. When the elements are enclosed by brackets <>, they form HTML tags. Most of the time, tags come in a pair and surround content. 10) What is semantic HTML?Semantic HTML is a coding style. It is the use of HTML markup to reinforce the semantics or meaning of the content. For example: In semantic HTML tag is not used for bold statement as well as tag is used for italic. Instead of these we use and tags. 11) What is an image map?Image map facilitates you to link many different web pages using a single image. It is represented by 12) How to insert a copyright symbol on a browser page?You can insert a copyright symbol by using © or © in an HTML file. 13) How to create a nested webpage in HTML?The HTML iframe tag is used to display a nested webpage. In other words, it represents a webpage within a webpage. The HTML 14) How do you keep list elements straight in an HTML file?You can keep the list elements straight by using indents. 15) Does a hyperlink only apply to text?No, you can use hyperlinks on text and images both. The HTML anchor tag defines a hyperlink that links one page to another page. The "href" attribute is the most important attribute of the HTML anchor tag. Syntax16) What is a style sheet?A style sheet is used to build a consistent, transportable, and well-designed style template. You can add these templates on several different web pages. It describes the look and formatting of a document written in markup language. 17) Can you create a multi-colored text on a web page?Yes. To create a multicolor text on a web page you can use for the specific texts you want to color. 18) 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. 19) Explain the layout of HTML?HTML layout specifies a way in which the web page is arranged. ![]() Every website has a specific layout to display content in a specific manner. Following are different HTML5 elements which are used to define the different parts of a webpage.
20) What is a marquee?Marquee is used to put the scrolling text on a web page. It scrolls the image or text up, down, left or right automatically. You should put the text which you want to scroll within the tag. More details. 21) How many tags can be used to separate a section of texts?Three tags are used to separate the texts.
22) How to make a picture of a background image of a web page?To make a picture a background image on a web page, you should put the following tag code after the tag. Here, replace the "image.gif" with the name of your image file which you want to display on your web page. 23) What are empty elements?HTML elements with no content are called empty elements. For example: etc. 24) What is the use of a span tag? Give one example.The span tag is used for following things:
Example: 25) What is the use of an iframe tag?An iframe is used to display a web page within a web page. Syntax: Example: Target to a link: 26) 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. 27) Why is a URL encoded in HTML?An URL is encoded to convert non-ASCII characters into a format that can be used over the Internet because a URL is sent over the Internet by using the ASCII character-set only. If a URL contains characters outside the ASCII set, the URL has to be converted. The non-ASCII characters are replaced with a "%" followed by hexadecimal digits. 28) Does a tag is a HTML tag?No, the declaration is not an HTML tag. There are many type of HTML e.g. HTML 4.01 Strict, HTML 4.01 Transitional, HTML 4.01 Frameset, XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, XHTML 1.1 etc. So, is used to instruct the web browser about the HTML page. HTML5 Interview QuestionsLet's see a list of top HTML5 interview questions and answers. 29) What is the canvas element in HTML5?The 30) What is SVG?HTML SVG is used to describe the two-dimensional 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. 31) What are the different new form element types in HTML 5?Following is a list of 10 frequently used new elements in HTML 5:
32) Is there any need to change the web browsers to support HTML5?No. Almost all browsers (updated versions) support HTML 5. For example Chrome, Firefox, Opera, Safari, IE. 33) Which type of video formats are supported by HTML5?HTML 5 supports three types of video format:
34) Is audio tag supported in HTML 5?Yes. It is used to add sound or music files on the web page. There are three supported file formats for HTML 5 audio tag.
Let's see the code to play mp3 file using HTML audio tag. Instead of koyal.mp3, you can pass any mp3 file name. More details.35) What is the difference between progress and meter tag?The progress tag is used to represent the progress of the task only while the meter tag is used to measure data within a given range. More details. 36) What is the use of figure tag in HTML 5?The figure tag is used to add a photo in the document on the web page. It is used to handle the group of diagrams, photos, code listing with some embedded content. 37) What is the use of figcaption tag in HTML 5?The 38) What is button tag?The button tag is used in HTML 5. It is used to create a clickable button within the HTML form on the web page. It is generally used to create a "submit" or "reset" button. Let's see the code to display the button. 39) What is the use of details and summary tag?The details tag is used to specify some additional details on the web page. It can be viewed or hidden on demand. The summary tag is used with details tag. More details. 40) What is datalist tag?The HTML 5 datalist tag provides an autocomplete feature on the form element. It facilitates users to choose the predefined options to the users to select data. 41) How are tags migrated from HTML4 to HTML5?
Header and Footer ExampleHTML 4 Header and Footer: HTML 5 Header and Footer: Menu ExampleHTML 4 Menu: HTML 5 Menu: 42) If I do not put will HTML 5 work?No, the browser will not be able to identify that it is an HTML document and HTML 5 tags do not function properly.. 43) What is the use of the required attribute in HTML5?It forces a user to fill text on the text field or text area before submitting the form. It is used for form validation. Example: 44) What are the new types for form validation in HTML5?The new input types for form validation are email, URL, number, tel, and date. Example: |
Python tutorial provides basic and advanced concepts of Python.
Vue.js is an open-source progressive JavaScript framework
HTML refers to Hypertext Markup Language. HTML is the gateway ...
Java is an object-oriented, class-based computer-programming language.
PHP is an open-source,interpreted scripting language.
Spring is a lightweight framework.Spring framework makes ...
JavaScript is an scripting language which is lightweight and cross-platform.
CSS refers to Cascading Style Sheets...
jQuery is a small and lightweight JavaScript library. jQuery ...
SQL is used to perform operations on the records stored in the database.
C programming is considered as the base for other programming languages.
JavaScript is an scripting language which is lightweight and cross-platform.
Vue.js is an open-source progressive JavaScript framework
ReactJS is a declarative, efficient, and flexible JavaScript library.
jQuery is a small and lightweight JavaScript library. jQuery ...
Node.js is a cross-platform environment and library for running JavaScript app...
TypeScript is a strongly typed superset of JavaScript which compiles to plain JavaScript.
Angular JS is an open source JavaScript framework by Google to build web app...
JSON is lightweight data-interchange format.
AJAX is an acronym for Asynchronous JavaScript and XML.
ES6 or ECMAScript 6 is a scripting language specification ...
Angular 7 is completely based on components.
jQuery UI is a set of user interface interactions built on jQuery...
Python tutorial provides basic and advanced concepts of Python.
Java is an object-oriented, class-based computer-programming language.
Node.js is a cross-platform environment and library for running JavaScript app...
PHP is an open-source,interpreted scripting language.
Go is a programming language which is developed by Google...
C programming is considered as the base for other programming languages.
C++ is an object-oriented programming language. It is an extension to C programming.
C# is a programming language of .Net Framework.
Ruby is an open-source and fully object-oriented programming language.
JSP technology is used to create web application just like Servlet technology.
The JSTL represents a set of tags to simplify the JSP development.
ASP.NET is a web framework designed and developed by Microsoft.
Perl is a cross-platform environment and library for running JavaScript...
Scala is an object-oriented and functional programming language.
VBA stands for Visual Basic for Applications.
Spring is a lightweight framework.Spring framework makes ...
Spring Boot is a Spring module that provides the RAD feature...
Django is a Web Application Framework which is used to develop web applications.
Servlet technology is robust and scalable because of java language.
The Struts 2 framework is used to develop MVC based web applications.
Hibernate is an open source, lightweight, ORM tool.
Solr is a scalable, ready-to-deploy enterprise search engine.
SQL is used to perform operations on the records stored in the database.
MySQL is a relational database management system based...
Oracle is a relational database management system.
SQL Server is software developed by Microsoft.
PostgreSQL is an ORDBMS.
DB2 is a database server developed by IBM.
Redis is a No SQL database which works on the concept of key-value pair.
SQLite is embedded relational database management system.
MongoDB is a No SQL database. It is an document-oriented database...
Memcached is a free, distributed memory object caching system.
Hibernate is an open source, lightweight, ORM tool.
PL/SQL is a block structured language that can have multiple blocks in it.
DBMS Tutorial is software that is used to manage the database.
Spark is a unified analytics engine for large-scale data processing...
IntelliJ IDEA is an IDE for Java Developers which is developed by...
Git is a modern and widely used distributed version control system in the world.
GitHub is an immense platform for code hosting.
SVN is an open-source centralized version control system.
Maven is a powerful project management tool that is based on POM.
Jsoup is a java html parser.
UML is a general-purpose, graphical modeling language.
RESTful Web Services are REST Architecture based Web Services.
Postman is one testing tools which is used for API testing.
JMeter is to analyze the performance of web application.
Jenkins builds and tests our software projects.
SEO stands for Search Engine Optimization.
MATLAB is a software package for mathematical computation, visualization...
Unity is an engine for creating games on multiple platforms.
Hadoop is an open source framework.
Pig is a high-level data flow platform for executing Map Reduce programs of Hadoop.
Spark is a unified analytics engine for large-scale data processing...
Spring Cloud is a framework for building robust cloud applications.
Spring Boot is a Spring module that provides the RAD feature...
AI is one of the fascinating and universal fields of Computer.
Cloud computing is a virtualization-based technology.
AWS stands for Amazon Web Services which uses distributed IT...
Microsoft Azure is a cloud computing platform...
IoT stands for Internet of Things...
Spring Cloud is a framework for building robust cloud applications.
Email:jjw.quan@gmail.com