HTML Interview Questions and Answers

HTML Interview Questions

  • 1. What is HTML?
  • Answer.

    It stands for Hyper Text Markup Language. It is a language of World Wide Web. It is a standard text information language that is employed to form and show pages on the Web page.

  • 2. Do all HTML tags have end tag?
  • Answer.

    No. There are few HTML tags that don’t need a closing tag. For example:  tag,

     


    tag.

     

  • 3. What are some common lists that are used when designing a page?
  • Answer.

    There are several common lists which are used to design a page.
    You can opt any or a combination of the following list types:

    • Ordered list
    • Unordered list
    • Menu list
    • Directory list
    • Definition list

  • 4. What are the key differences between HTML and HTML5?
  • Answer.

    HTML5 has made several steps forward compared to its previous versions. Notable changes include:

    • HTML5 supports video, graphics, and audio, whereas HTML only supports them through third-party extensions
    • HTML5 is mobile-friendly, whereas HTML is not
    • HTML5 is compatible with all major web browsers, whereas HTML is not
    • HTML5 offers several options for local storage, whereas HTML only offers cookies
    • HTML5 supports multi-threading, whereas HTML operates only in one thread

  • 5. What are the key HTML5 page structure elements?
  • Answer.

    The most important HTML5 structure elements are:

    • <header>, containing the header or top of the page
    • <footer>, containing the footer or bottom of the page
    • <section>, containing one section that is thematically similar to other sections
    • <article>, containing standalone content
    • <nav>, containing the navigation functionality of the page
    • <aside>, containing secondary content

  • 6. What is the role of formatting tags in HTML5?
  • Answer.

    Formatting tags allow text to be stylized in HTML5 without the need for CSS. There are a number of HTML5 formatting tags, and the most popular ones include:

    • <b> - used to make text bold
    • <i> - used to italicize text
    • <u> - used to underline text
    • <mark> - used to highlight text
    • <strong> - used to mark text as important

  • 7. What types of graphics are supported by HTML5?
  • Answer.

    Unlike previous versions, HTML5 offers inbuilt graphics features. The two types of graphics supported by HTML5 are:

    • SVG (Scalable Vector Graphics), used to create vector-based graphics, such as diagrams and icons
    • Canvas, used to draw graphics, such as shapes

  • 8. What is new about the relationship between the
    and

    tags in HTML5?

  • Answer.

    The <header> tag is used to design the header of a web page and can contain a range of elements including text, logos, or a navigation bar. 

    The <h1> tag is the textual part of the header and is used to specify the most important section of a piece of content. It’s often used alongside other header tags (through to <h6>) to format and prioritize content sections.

  • 9. What are some of the new input types in HTML5?
  • Answer.

    HTML5 introduces several new input types to create a more interactive user experience. The new input types include:

    • Date, used to select a date from a drop-down calendar
    • Time, used to enter a time
    • Email, used to enter an email address
    • Tel, used to enter a telephone number with a specific pattern
    • Color, used to select a color from a color picker
    • Range, used to select a range of values on a slider

  • 10. What are image maps in HTML5?
  • Answer.

    Image maps are images with several clickable areas that link to different web pages. They use the <map> and <area> tags. Coordinates are specified to segment the image into different areas and then relevant links are applied.

Register for Course !
ONLINE TRAINING FEATURES
  Live Training
 Real-Time Expert Trainers
 Industry Specific Scenarios
  Video Recording Sessions
  Resume Preparation Guidance
 Self- Placed
  Offline & Online Session
 availability + Real Time Concept
 MNC & Top IT Companies + Certificate