HTML Flashcards
Explain commenting
Commenting allows you to display messages without affecting the browser display. It also, helps to make the code inactive.
What is the purpose of some of those HTML5 elements that separate the webpage into different content areas?
They help to make the HTML easier to read. They improve accessibility and SEO (search engine optimisation)
What are elements without a closing tag called?
A void element/tag.
What are attributes?
Attributes are special phrases that are placed in the opening tag of an element and control the elements behaviour.
What is the ‘a’ element?
It is the anchor element. The ‘href’ attribute is added to the opening tag to add a link. The text acts as the URL
What is the role of the ‘target’ attribute?
The target attribute opens the link in a new tab.
What is the difference between HREF and SRC attribute?
HREF attribute specifies the URL of a resource linked by the element. Whereas, the SRC attribute specifies the URL of a resource that is directly being used by the element.
What is the role of the section element?
The section element is used to define sections in a document, such as chapters, headers, footers, or any other sections of the document. It is a semantic element that helps with SEO and accessibility.
What is nesting and indentation?
When an element/s are placed in an another element, it is called nesting. These elements are placed two places further to the right then the element they are nested in to improve readability.
What is the role of the figure element?
The figure element helps to associate a picture with a caption.
What is the figure caption element?
A figure caption (figcaption) element is used to add a caption to describe the image contained within the figure element.
What is the form element?
It is used to get information from a user such as name, email, etc.
What is the function of the action attribute.
It specifies the location where the form data should be sent.
What is the function of the input element?
The input element allows you several ways to collect the users data (means to get the data)