Content Identification, HTML page, Forms, Interactivity, Tables Flashcards
This global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user.
The lang attribute specifies the language of the element’s content.
Common examples are “en-US” for English or “en-GB” for English from Great Britain.
This attribuate can be placed on any element.
Which attribute specifies the text direction of the element’s content?
The dir attribute specifies the text direction of the element’s content. “ltr” is left to right and “rtl” is right to left.
When used by the meta element, this attribute specifies the character encoding for the HTML document.
The meta element specifies the character encoding for the HTML document. It’s place between the head tag.
This tag defines a division or a section in an HTML document.
The div tag.
Use to mark a phrase or group of elements where other elements may not make sense.
All the global attriburtes such as class, id, lang, and aria roles apply.
Any sort of content can be put inside the div tag but use as a last resort.
This element is an inline container used to mark up a part of a text, or a part of a document.
The span tag.
Much like the div tag, the span tag is used to mark up a part of a text, or a part of a document where other elements may not make sense. All the global attriburtes such as class, id, lang, and aria roles apply. Use as a last resort.
This declaration is not an HTML tag. It is an “information” to the browser about what document type to expect.
All HTML documents must start with a DOCTYPE declaration.
What element contains information the browser needs to know though it won’t be displayed on the page?
The head element.
It is a container for metadata and is placed between the html tag and the body tag.
This element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
The body element contains the information and content that will be displayed on the page.
The element defines the title of the document and is shown in the browser’s title bar or in the page’s tab.
The title element.
Which meta element should be included on all web pages? It’s refers to the user’s visible area of a web page. It varies with the device - it will be smaller on a mobile phone than on a computer screen.
Setting the viewport in the meta tag gives the browser instructions on how to control the page’s dimensions and scaling.
The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).
The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.
This tag defines the relationship between the current document and an external resource.
The link element links to a range of other assets we want to load.
The link tag is most often used to link to external style sheets.
Which attribute tells the browser which kind of asset it is?
The rel attribute specifies the relationship between the current document and the linked document/resource.
This attribute provides the URL to the asset.
The href attribute specifies the link’s destination or location of external resources such as a style sheet file.
This element and attribute points to an external JavaScript file.
The script element and src attribute specifies the URL of an external script file.
This element wraps around the main content of the page.
The main element
It’s only used once per webpage and it tells the browser where the main content is.