By Ankit Sir

Basic Level

  1. What is HTML?

    Answer:

    HTML (HyperText Markup Language) is the standard language used to create the structure of web pages. It defines elements like headings, paragraphs, links, images, forms, etc.


  1. Difference between HTML and CSS?

    Answer:


  1. What are HTML tags and attributes?

    Answer:


  1. What is the difference between <div> and <span>?

    Answer:


  1. What are semantic tags in HTML?

    Answer:

    Semantic tags have a clear meaning and describe their purpose.

    Examples: <header>, <footer>, <article>, <section>.

    They improve SEO and readability.


  1. What is the difference between <ol>, <ul>, and <dl>?

    Answer:


  1. What is the difference between inline, internal, and external CSS?

    Answer:


  1. What is the difference between absolute, relative, and fixed links in HTML?

    Answer:


  1. What are forms in HTML?

    Answer:

    Forms are used to collect user input.

    Example:

    <form>
      <input type="text" placeholder="Name">
      <input type="email" placeholder="Email">
      <input type="submit" value="Submit">
    </form>