Important fronted interview Questions #
INTERVIEW QUESTION HTML 1. What are semantic HTML elements? Give examples. Ans: Semantic HTML elements clearly describe their meaning to both browsers and developers, such as <header> , <footer> , <article> , <section> , and <main> . 2. Difference between block, inline, and inline-block elements? Ans: Block elements take full width and start on a new line, inline elements take only content width, and inline-block elements behave inline but allow width and height. 3. What is the difference between <div> and <span> ? Ans: <div> is a block-level element used for layout, while <span> is an inline element used for styling small text. 4. What are HTML5 new features? Ans: HTML5 introduced semantic tags, audio/video support, canvas, localStorage, geolocation, and improved form controls. 5. Explain the difference between HTML and XHTML. Ans: HTML is flexible and not case-sensitive, while XHTML is strict, XML-based, and ...