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 active link and normal link? |
||||
|
Answer» Normal & Active LINKS are pretty much the same with one BASIC difference between them. It is:
|
|||||
| 2. |
What are physical tags in HTML? |
|
Answer» Physical tags in HTML are used to EXACTLY SPECIFY how to display the text being enclosed. They specify accurately as to how many characters are needed to be formatted. Example |
|
| 3. |
How many types of CSS can be included in HTML? |
|
Answer» THREE TYPES of CSS are ACCEPTED in HTML, they are
|
|
| 4. |
What is the main difference between HTML and XHTML? |
||||||||
Answer»
|
|||||||||
| 5. |
What is Cell Spacing and Cell Padding? |
|
Answer» Cell spacing is an attribute in HTML which is USED to define the exact amount of spacing between pixels WITHIN cells. Whereas, Cell Padding is used to define the spacing between the cell wall and the cell content. Example<p>Table without cell spacing:</p> <table cellspacing="10"> <h4 class="mt-10 mb-10">Example of Cell Padding</h4> <p>Table without CELLPADDING attribute :</p> <p>Table with cellpadding attribute:</p> |
|
| 6. |
What is the main difference between localStorage and sessionStorage? |
||||||
Answer»
|
|||||||
| 7. |
What are the entities in HTML? |
|
Answer» Entities in HTML are pieces of TEXT “STRINGS” which begin with an ampersand SYMBOL (&) and end with a semicolon (;). These are usually used to DISPLAY special characters which would otherwise be interpreted as simple HTML code and/or invisible characters. |
|
| 8. |
What is the purpose of using alternative texts in images? |
|
Answer» Alternate TEXTS, ALSO known as Alternative DESCRIPTIONS or simply Alt Tags help in better crawling and indexing of images on your website. By default, GOOGLE’s crawl bot cannot understand images. It needs guidance to help understand what the image is about. Alt Texts help Google bot to understand what the image is displaying. Besides this, people with VISUAL imparity also benefit from these as they can understand the text in Braille but cannot see an image. |
|
| 9. |
What is an image map? |
|
Answer» IMAGE MAP lets the user link to many different web pages USING a single image. We can define shapes in PICTURES that we want to make part of an image mapping. It is the process of establishing unique ways INSIDE a photo and links it to different destinations. |
|
| 10. |
How to insert a comment in an HTML page? |
|
Answer» In HTML page comments BEGINS with “<!–“ and ends with “–>.” |
|
| 11. |
What is marquee? |
|
Answer» <marquee> is USED to PUT the text scrolling which is in scrolling MODE on a web page. It scrolls the text or IMAGES up, down, left or right automatically. You have to put the content which you want to scroll in between the <marquee>......</marquee> tag. |
|
| 12. |
Explain Basic structure of html5? |
|
Answer» Best INTERVIEW QUESTIONS <section> <ASIDE></aside> </section> <FOOTER> <address></address> </footer> |
|
| 13. |
What is reset and submit buttons? |
|
Answer» Reset and submit button both are using within <FORM> ELEMENT. Reset is used for reset the form. It means clear the form and SUBMITS is used to PRESENT the form data. |
|
| 14. |
Please explain empty elements in HTML? |
|
Answer» HTML elements with no text or content are called empty elements. For example: <BR>, <hr> ETC |
|
| 15. |
What is tag? |
|
Answer» <img> TAG are used to show image in web page. <img src=" https://www.bestinterviewquestion.com/public/frontend/img/b2.jpg" alt="Blog Image"/> Attributes of this tag is width, HEIGHT, CLASS, alt, id etc |
|
| 16. |
How to create links in HTML? |
|
Answer» The HTML, <a> tag defines a HYPERLINK that links to another page. The "HREF" attribute is the essential attribute of the HTML anchor tag. Example :- <a href = "LINK PATH"> Link Text </a> |
|
| 17. |
What is formatting in HTML? Explain some formatting tags? |
|
Answer» It is a process of FORMATTING TEXT for a much better look and feels. There are various formatting tags available in HTML. These formatting tags are used to make text bold, italicized, or underlined. There are 12 options available that how text appears in HTML pages. There are 12 HTML formatting tags are listed below
|
|
| 18. |
Do all HTML tags have an end tag? |
|
Answer» No, there are some HTML TAGS that do not need a CLOSING tag. Examples are the <IMG> , <br>, <hr> tags |
|
| 19. |
What is tag and why it is used for? |
|
Answer» In HTML, <table> tag is a block elements used to create a table. It is useful when you want to represent data using rows and COLUMNS. The BASIC elements that make up a table include <th>, <TD>, and <tr>. |
|
| 20. |
What is tag and why it is used? |
|
Answer» <FORM> tag are used to MAKING forms on web pages. These forms are used to interact directly with USERS. Its elements are different types of input, like TEXT fields, checkboxes, radio buttons, submit buttons and more. ATTRIBUTES of these <form> tag are action, method, name, class, id, etc. The <input> tag can be displayed in many ways, depending on the type attribute. Example<form> First name: <input type="text" name="First_name"> Last name: <input type="text" name="Last_name"> </form> |
|
| 22. |
What are the advantages and disadvantages of HTML? |
Answer» ADVANTAGES of HTML:
|
|
| 23. |
What is heading tag and why it is used for? |
|
Answer» HTML Heading tags can be used to define as a title or a subtitle which you want to DISPLAY on your page. When you place the TEXT in the heading tags <H1> This is your page title</h1>, These heading tags displayed on the browser in the bold format and size of the text depends on the number of heading. There are six different HTML headings which are defined with the <h1> to <h6> tags. h1 is the largest heading tag, and h6 is the smallest one. So h1 is used for most IMPORTANT heading, and h6 is used for least important. |
|
| 24. |
What is full form of HTML and who is created this? |
|
Answer» HTML STANDS for HYPERTEXT MARKUP Language, and Berners Lee created it in 1991. |
|
| 25. |
Explain the advantage of collapsing white space? |
|
Answer» White spaces are a new sequence of space characters, which is treated as a single space character in HTML. Because the browser collapses multiple areas into a single space, we can indent LINES of text without worrying about various FIELDS. It enables you to ORGANIZE the HTML code into a more human readable format. Also Read: What are the LATEST Features in BOOTSTRAP 4 |
|
| 26. |
What are the different new form element types in HTML 5? |
|
Answer» There are LOTS of new ELEMENTS are using in HTML5 that are GIVEN below:-
|
|
| 27. |
How to create mail and phone link in HTML? |
|
Answer» For mail LINK, we have to ADD MAILTO: "mention here email address" in a href attribute in anchor tag. Example<a href="mailto:[email protected]">[email protected]</a> |
|
| 28. |
What are new input form validations in HTML5? |
|
Answer» The new input types for form VALIDATION are email, URL, number, tel, and date. With the help of the required attribute, it will WORK. Also if we want specific validation, then we have to add input type "text" or "email" or "tel." Note: Learn the BASIC validations with HTML tags and work to CRACK the HTML Interview Questions. 9. What is SVG?It is used to explain the two-dimensional vector and raster graphics. SVG images and their behaviors are defined in XML files. So as XML files, you can create and update 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. |
|
| 29. |
What is the difference between HTML4 and HTML5? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 30. |
How to tags migrated from HTML4 to HTML5? |
||||||||||||||||||
Answer»
|
|||||||||||||||||||
| 31. |
How many types of list tag are using in HTML? |
|
Answer» In HTML, Lists are used to specify lists of various types of information. All RECORDS ITEMS may contain one or more elements. Types of HTML lists are listed below:
NOTE: You can easily get marks in this HTML INTERVIEW Questions by just naming the types of lists in HTML. |
|
| 32. |
What is HTML tag attributes? |
|
Answer» HTML tag attributes are USED for add additional functionality. Attributes like id, CLASS, STYLE, lang, TITLE etc Also READ: CSS3 interview questions |
|
| 33. |
What is the meaning of ? |
|
Answer» This is not an html tag. The <!DOCTYPE> syntax should be the first thing in HTML page, before the <html> tag. It is an INSTRUCTION to the web browser about what version of HTML the page is written in. In HTML 4 we used <!DOCTYPE HTML PUBLIC ‘-//W3C//DTD HTML 4.01//EN’ ‘http://www.w3.org/TR/html4/strict.dtd’> But now in HTML 5 we used only <!DOCTYPE html> |
|
| 34. |
Why Meta tags are used in HTML? |
|
Answer» The META tag is information about data. Metadata will not be displayed on the application, but it will be machine parsable. These elements are typically used to specify page description, keywords, page title, author name of the document, and other metadata. The metadata is used by web browsers (how to display content or reload the page), search engines (keywords), or other web services. Example<meta name="description" content="Best INTERVIEW Questions"> |
|
| 35. |
What is HTML and why it is used for? |
|
Answer» HTML is a language of www (world wide web). It is a TEXT formatting language that gives US webpage structure. HTML elements are represented by tags. HTML is used to MAKE interactive and dynamic websites — all web pages CREATED by HTML tags. Related Article: HTML5 and CSS3 Interview Questions |
|