HTML Review cards
What is HTML?
HTML stands for Hypertext Markup Language, which is used to create and structure content on the web.
What is CSS?
CSS stands for Cascading Style Sheets, which is used to control the presentation and layout of web content.
Who invented the World Wide Web?
The World Wide Web was invented by Sir Tim Berners-Lee in 1989.
What is the purpose of the HTML head element?
The head element is used to contain metadata about the HTML document, such as the title, links to CSS and JavaScript files, and other information that isn't directly displayed on the web page.
What is the difference between the div and span elements?
The div element is a block-level element that is used to group content together, while the span element is an inline-level element that is used to apply styles to a small section of text.
What is the purpose of the HTML form element?
The form element is used to create interactive forms on the web page, which allow users to input data and submit it to a server for processing.
What is the difference between the id and class attributes in HTML?
The id attribute is used to specify a unique identifier for an element, while the class attribute is used to specify one or more class names that can be shared by multiple elements. The id attribute must be unique within a document, while the class attribute can be used multiple times within a single document.
What is the purpose of the HTML img element?
The
element is used to insert images into an HTML document. It can be used with the src attribute to specify the image file to be displayed, and with other attributes to control the size, alignment, and other aspects of the image's presentation.