30 Basic HTML Interview Questions and Answers
1. What is HTML? HTML stands for Hypertext Markup Language. It is the standard markup language used for creating web pages and applications on the internet. HTML uses various tags to structure the content and define the elements within a web page 2. What are the basic tags in HTML? Some of the basic tags in HTML include: <html> : Defines the root element of an HTML page. <head> : Contains meta-information about the HTML document. <title> : Sets the title of the HTML document. <body> : Defines the main content of the HTML document. <h1> , <h2> , <h3> , etc.: Heading tags used to define different levels of headings. <p> : Defines a paragraph. <a> : Creates a hyperlink. <img> : Inserts an image. <div> : Defines a division or a container for other HTML elements. 3. What is the difference between HTML and CSS? HTML (Hypertext Markup Language) is used for structuring the content of a web page, while CSS (Casc...