Exam code: 0417 & 0983
1/190Still learning
Know0
Was this flashcard helpful?
Define HTML.
HTML, or Hypertext Markup Language, is the foundational language used to structure content on the web.
What are HTML elements often referred to as?
HTML elements are often referred to as tags, which are used to structure and format a webpage.
Which tag is the root element of an HTML page?
The <html> tag is the root element, and it includes all other HTML elements used on the page.
What does the head section of a webpage contain?
The head contains information about the web page that is not displayed on the page itself. Its content is shown in the browser tab.
True or False?
The content of the head tag is displayed in the browser window.
False.
Content in the head is displayed in the browser tab, not on the page. It is the body content that appears in the browser window.
What does the <title> element do?
It sets the page title that displays in the browser tab, and is placed inside the <head> section.
How is an external stylesheet linked to a page?
Using the <link> element in the <head>, with rel set to 'stylesheet' and href containing the relative file path to the CSS file.
Why does the order of linked stylesheets matter?
Stylesheets are loaded in the order they are listed, so hierarchy is important.
Define metatag.
A metatag is a snippet of text in HTML that describes a page's content. It appears in the page's code, not on the page itself.
Name three metatags.
Metatags include charset, keywords, author, description and viewport.
What does the description metatag do?
It provides a concise explanation of the content of the web page. It often appears in search engine results and can influence click-through rates.
What does the viewport metatag control?
It controls the viewport size and the initial zoom level, so the page displays correctly on all devices.
What does the body section of a webpage contain?
The body contains the main content of the web page, such as text, images, videos, hyperlinks and tables, which is displayed in the browser window.
What are tables mainly used for in webpages today?
Tables are primarily used for displaying tabular data, meaning information that is logically displayed in a grid format.
How do tables enhance accessibility?
Screen readers for visually impaired users can read tables effectively if they are correctly structured using elements such as <table>, <tr>, <th> and <td>.
How do you link to a bookmark on the same page?
Use the <a> tag with an href value set to # followed by the id of the bookmark, for example <a href="#section1">.
What does the target attribute _blank do?
It opens the link in a new tab or window, whereas _self opens it in the same tab or window.
What is the difference between a relative and an absolute file path?
A relative path gives the location in relation to the file that references it. An absolute path gives the exact location regardless of the current location, including the entire path from the root directory.
A bookmark is created in HTML by adding a unique attribute to a tag.
A bookmark is created in HTML by adding a unique id attribute to a tag.
By signing up you agree to our Terms and Privacy Policy