Welcome to Black & White learning!!

HTML - HyperText Markup Language


HTML was developed by Tim Berners-Lee in the year 1991. current version: HTML 5
HTML is the standard language used to create and design web pages. It structures content using elements like headings, paragraphs, links, images, and more.
HTML is not a programming language it is a markup language which is understand by the browser.


HTML Interview Questions


  1. What is HTML?

    HTML (HyperText Markup Language) is the standard language used to create and structure content on the web using elements like headings, paragraphs, links, and images.
  2. What is the purpose of <!DOCTYPE html> ?

    It declares the document type and version of HTML, helping browsers render the page correctly.
  3. What are void elements in HTML?

    Elements that do not have closing tags, such as <img>, <br>, <hr>, and <input>.
  4. What is the use of the <meta> tag?

    It provides metadata about the HTML document, such as character encoding, author, and viewport settings.
  5. What is the difference between block and inline elements?

    Block elements take up the full width (e.g., <div>, <p>), while inline elements only take up as much width as necessary (e.g., <span>, <a>).
  6. What is the difference between <div> and <span>?

    <div> is a block-level element used for layout, while <span> is an inline element used for styling small parts of text.
  7. How do you create a hyperlink in HTML?

    <a href="https://example.com"> Visit Example </a>
  8. How do you insert Multimedia in HTML?

    For image: <img src="image.jpg" alt="Description">
    For video: <video src="video.mp4"> video not found </video>
    For audio: <audio src="audio.mp3"> audio not found </audio>
  9. How do you create a table in HTML?

    <table>
    
      <tr>
        <th> Name </th>
        <th> Age </th>
      </tr>
    
      <tr>
        <td> Alice </td>
        <td> 25 </td>
        </tr>
    
    </table>
    
  10. Give an example <blockquote> tag used for?

    The <blockquote> tag is used to define a section that is quoted from another source, typically displayed with indentation by browsers.
    Example code:
        <p>Here is the answer taken from "Geeks for Geeks"</p>
        <blockquote cite="https://www.geeksforgeeks.org/html-blockquote-tag/">
        "The blockquote tag in HTML is used to define a block of text that is a quotation from another source."
        </blockquote>
    

    Output:
  11. How do you create a list in HTML?

    Ordered List: Creates a numbered list using the <ol> tag.
    Unordered List: Creates a bulleted list using the <ul> tag.
    Definition List: Creates a definition list using the <dl> tag.

    Example code: for Definition List

    <dl>
      <dt>HTML</dt>
        <dd>HyperText Markup Language</dd>
      <dt>CSS</dt>
        <dd>Cascading Style Sheets</dd>
    </dl>

    Output:
  12. What is the difference between the <b> and <strong> tags?

    The <strong> tag for emphasizing important content and the <b> tag for purely stylistic bolding. This approach ensures better accessibility and semantic clarity in your HTML documents.
  13. What are attributes in HTML?

    Attributes provide additional information about HTML elements. They are included within the opening tag and usually come in name-value pairs, like name="value".
  14. What is the use of <iframe> tag?

    The <iframe> tag in HTML is used to embed another HTML page within the current page. It stands for inline frame, and it's commonly used to display content like videos, maps, or other web pages.

    Example code:

     <iframe src="https://example.com" width="600" height="400"></iframe>
  15. What is an HTML Form?

    An HTML form is a section of a document that contains interactive controls like text fields, checkboxes, radio buttons, and submit buttons. It allows users to enter data and send it to a server.

    Example code:

            
    <form action="/submit" method="post">
      <label for="name">Name:</label>
      <input type="text" id="name" name="name"><br><br>
    
      <label for="email">Email:</label>
      <input type="email" id="email" name="email"><br><br>
    
      <input type="submit" value="Submit">
    </form>
        

    Output:

Final Thoughts

To wrap up, if you're aiming for roles such as Web Designer where a strong grasp of HTML is essential, the interview questions shared here offer a solid foundation. They touch on the key concepts and practical knowledge you'll need to confidently navigate interviews and demonstrate your expertise in HTML.

🔗 USEFUL LINKS:

→ For HTML Projects:

→ For HTML Resources:


WHO ARE WE!!

We are a passionate group of web development enthusiasts dedicated to helping learners understand the fundamentals of HTML and web design. Our mission is to provide clear, beginner-friendly resources, projects, and interview questions to empower anyone interested in building websites from scratch. Whether you're a student, job seeker, or hobbyist, we're here to support your journey into the world of web development.

Page Developer Details:

Special Thanks:

Special thanks to GeeksforGeeks, W3Schools, and Tap Academy for their valuable tutorials and resources that inspired and supported the creation of this learning platform.

This is my personal project built with pure HTML.

Happy Learning!!