By Ankit Sir
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.
Difference between HTML and CSS?
Answer:
What are HTML tags and attributes?
Answer:
< > used to define elements (e.g., <p>, <h1>).<img src="pic.jpg" alt="image">).What is the difference between <div> and <span>?
Answer:
<div> → Block-level element (takes full width, starts on a new line).<span> → Inline element (used for styling a part of text within a line).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.
What is the difference between <ol>, <ul>, and <dl>?
Answer:
<ol> → Ordered list (numbered).<ul> → Unordered list (bullets).<dl> → Definition list (terms and descriptions).What is the difference between inline, internal, and external CSS?
Answer:
<p style="color:red;">)<style> in the <head>..css file and linked with <link>.What is the difference between absolute, relative, and fixed links in HTML?
Answer:
https://example.com/about.html).about.html).<a href="#top">Go to Top</a>).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>