What Is HTML in English
What Is HTML
TOP QUESTION'S RELATED TO HTML INTERVIEW
What is the purpose of HTML? Answer: The purpose of HTML is to structure content on the web page and present it to the user.
What is the difference between HTML and HTML5? Answer: HTML5 is the latest version of HTML and includes new features such as audio and video elements, canvas, and new form input types.
What is a DOCTYPE in HTML? Answer: DOCTYPE is a declaration that tells the browser which version of HTML the webpage is using.
What is the difference between <div> and <span>? Answer: The <div> tag is used for block-level elements, while the <span> tag is used for inline elements.
What is the difference between <strong> and <em>? Answer: The <strong> tag is used to indicate strong importance, while the <em> tag is used to indicate emphasis.
What is a semantic element in HTML? Answer: A semantic element is an HTML tag that gives meaning to the content on the web page, such as <header>, <footer>, <nav>, and <article>.
What is the difference between HTML and XHTML? Answer: XHTML is a stricter version of HTML that follows XML syntax rules and requires well-formed markup.
What is the purpose of alt attribute in an <img> tag? Answer: The alt attribute is used to provide alternative text for an image when it cannot be displayed, such as for users with visual impairments or slow internet connections.
What is a form in HTML? Answer: A form is an HTML element that allows users to input data on a web page and submit it to a server.
What is the difference between GET and POST methods in form submissions? Answer: The GET method submits data as part of the URL, while the POST method submits data separately from the URL and is more secure for sensitive information.
Comments
Post a Comment