HTML Memory Page

HTML Memory Notes

























1. What does HTML stand for?


HTML stands for HyperText Markup Language.



2. What is HTML?


It is the standard language used for creating web pages and plays a crucial role in web development by defining the structure and content of a webpage.



3. What are HTML tags?


We use HTML tags to place the elements in the proper and appropriate format.







4. What are HTML Attributes?


Attributes are the properties that can be added to an HTML tag. These attributes change the way the tag behaves or is displayed.



5. Differentiate between HTML and XHTML?


HTML is a markup language used for structuring web content, while XHTML is a stricter version of HTML that adheres to XML syntax rules.



6. How do you add comments in an HTML document?


Comments in HTML are added using the syntax.







7. What is the purpose of adding comments in an HTML document?


Comments are used to add notes or explanations that are not displayed on the rendered webpage.



8. In how many ways can we specify the CSS styles for the HTML element?


Inline, Internal and External.



9. What is an element in HTML?


An element in HTML is a set of tags that define a specific part of a web page. It consists of a start tag, content, and an end tag.







10. What are void elements in HTML?


HTML elements which do not have closing tags or do not need to be closed are Void elements. For Example br, img, hr, etc.



11. Explain the purpose of DOCTYPE in HTML?


The DOCTYPE declaration in HTML is used to specify the version of HTML being used in a document, which helps the browser to understand and render the content correctly.



12. How to specify the metadata in HTML5?


The meta tag is a self-closing tag in HTML, meaning it does not require a closing tag.







13. What is metadata ?


It is used to specify metadata or additional information about the HTML document.



14. What is the basic structure of HTML document?


It typically includes a head section for metadata and a body section for the visible content.



15. What is the purpose of the head tag in HTML?


The head tag is used to define the metadata of an HTML document, such as the document’s title, character encoding, linked stylesheets, and JavaScript files.







16. Explain the significance of the title tag in HTML?


The title tag is used to specify the title of an HTML document, which appears as the title of the browser window or tab when the page is opened.



17. What is the class attribute in HTML?


The class attribute is used to specify the class name for an HTML element. Multiple elements in HTML can have the same class value.



18. Define multipart form data?


Multipart form data is one of the values of the enctype attribute. It is used to send the file data to the server-side for processing.







19. What is a marquee in HTML?


Marquee is used for scrolling text on a web page. It automatically scrolls the image or text up, down, left, or right.



20. What is div tag in HTML?


The div tag is a block-level element used for grouping and styling larger sections of content.



21. What is span tag in HTML?


The span tag is an inline element used for styling smaller sections or individual elements.







22. How can we club two or more rows or columns into a single row or column in an HTML table?


HTML provides two table attributes rowspan and colspan to make a cell span to multiple rows and columns respectively.



23. What is cell padding?


Cell Padding is the space or gap between the text/ content of the cell and the edge border of the cell.



24. What is cell spacing?


Cell Spacing is the space or gap between two consecutive cells.







25. Is it possible to change an inline element into a block level element?


Yes, it is possible using the display property with its value as block, to change the inline element into a block-level element.



26. What is the purpose of the img tag?


The img tag is used to embed an image in an HTML document.



27. How img tag is used?


It requires the src attribute to specify the image source (URL or file path) and can have additional attributes for alt text, width, height, etc.







28. What is the alt attribute in HTML?


The alt attribute displays text in place of an image whenever the image cannot be loaded due to technical issues.



29. How do you create a hyperlink in HTML?


A hyperlink can be created in HTML using the tag.



30. What are the attributes of anchor tag?


Its href attribute specifies the URL or location to link to, and it can also have attributes like target for specifying the link behavior.







31. Define the list types in HTML.


Ordered list, Unordered list and Definition list.



32. How do you create an ordered list in HTML?


An ordered list in HTML can be created using the ol tag.



33. Explain the concept of nesting tags in HTML?


Nesting tags in HTML means placing one HTML element inside another.







34. How do you create a table in HTML?


A table in HTML can be created using the

tag.



35. What are semantic HTML elements?


Semantic HTML elements are tags that provide meaning and context to the content they enclose.



36. What are some examples of semantic HTML elements?


header for page headers, nav for navigation menus,

for sections of content, and
for page footers.







37. How do you embed an audio file in HTML?


To embed an audio file in HTML, the



38. What type of audio files can be played using HTML5?


Mp3, WAV, Ogg



39. What is a form in HTML?


A form is a set of input fields and other elements to collect user data.







40. How do you validate user input in HTML forms?


HTML5 introduced form validation attributes like required, pattern, and max length.



41. What is the purpose of the form tag?


The form tag is used to create an HTML form that allows users to input data. It includes input fields, buttons, checkboxes, etc.



42. What are the attributes of form tag?


The action attribute specifies the URL where the form data is submitted, and the method attribute specifies the HTTP method used for submission (GET or POST).







43. What is the purpose of the input tag?


The input tag is used to create input fields within HTML forms.



44. How do you create a dropdown menu in HTML?


A drop-down menu can be created in HTML using the select tag for the dropdown container and



45. Explain the concept of HTML entities?


HTML entities are special characters that are represented by a code or entity name, allowing them to be displayed correctly in HTML.







46. What is the purpose of the iframe tag in HTML?


The iframe tag is used to embed another HTML document or webpage within the current document.



47. How do you embed a YouTube video in an HTML page?


To embed a YouTube video in an HTML page, you can use the YouTube embed code provided by YouTube.



48. What are HTML data attributes?


HTML data attributes allow you to store extra information within an HTML element.







49. How do you create a navigation bar in HTML?


A navigation bar in HTML can be created using the