IES: HTML Flashcards
(289 cards)
1
Q
<p>
</p>
A
- Block element
- Paragraph container separates content into sentences and paragraphs to be more easily read and more readily understood
- The browser usually separates each paragraph element typically leaving two empty lines between them.
2
Q
<article>
</article>
A
- Article container element
- contains a stand-alone composition
3
Q
<a></a>
A
- The anchor is an Inline element that defines a hyperlink which allows users to navigate from one page to another.
- The href attribute is most important to this element indicating the link’s destination: Without href, there is no hyperlink.
- The anchor can also include a title attribute displaying a “tooltip” when the hyperlink is hovered over.
4
Q
URL
A
- A web address is formally known as a uniform resource locator
- Has three parts: protocol, domain, and its path
5
Q
HTML
A
- hypertext markup language
6
Q
HTTP
A
- Hypertext transfer protocol
- This is the first of the three parts that make up the URL: the protocol
- Always appears as the URL prefix: http://
7
Q
HTTPS
A
- Hypertext transfer protocol secure
- Always appears as the URL prefix : https://
8
Q
Protocol
A
- A set of rules governing the exchange or transmission of data between devices
- Denoted by the prefix on any URL
- (example http://… or https://…)
- 1st of 3 parts of the URL
9
Q
IP
A
- Internet Protocol
- The numerical address of a specific domain name
10
Q
WHATWG
A
- Web hypertext application technology working group
- An organization or group that sustains or supports the standard of the HTML language established by the W3C to prevent that Global Internet language from being fragmented or compromised
- This agency maintains the ever-evolving HTML living standard as technology in the world wide web culture demands
11
Q
W3C
A
- Short for World Wide Web Consortium
- It is the international governing body for the development of platform-independent web standards and specifications
12
Q
Domain Or domain name
A
- The hostname of the computer from which the file can be downloaded. For instance: www.example.com
- The second of three parts of a URL
13
Q
Path
A
- The file name prefixed by any Parent Directory names where applicable. For instance:/htdocs/index HTML
- The third of three parts that form a URL
14
Q
DNS
A
- The domain name system (DNS) Is the phone book of the internet. Humans access information online through domain names, like nytimes.com or espn.com
- DNS servers translate domain names into IP addresses, so browsers can load Internet resources.
15
Q
Webserver
A
- The World Wide Web is comprised of a series of large-capacity computers known as web servers.
- Upon request from a computer for a resource, a web server will send back response headers and a copy of the requested file or an error message.
16
Q
HTML document skeletal structure
A
The skeletal structure has three parts:
* document type declaration
* Head section
* Body section
17
Q
Document type declaration
A
- <!doctype html>
- Declaring precisely which version of HTML is used to mark up the document.
18
Q
<head>
</head>
A
- provides descriptive data about the document itself, such as the document title and the character set used.
- Non-empty element
19
Q
<body>
</body>
A
- Contains the content that is to appear when the document gets loaded into a web browser
- Non-empty element
20
Q
HTML fundamental structure (basic coding structure)
A
<!doctype html>
<html>
<head>
<!--Data describing the document to be added here. →
</head>
<body>
<!--Content to appear in the browser to be added here.–>
</body>
</html>
21
Q
lang
A
- attribute of the HTML root element
- <html lang=”en”> (the previous “lang” attribute code appoints the document’s language as English) (“ar”: Arabic, “fr”: French, “es”: Spanish)
- attribute of the HTML root element
- <html lang=”en”> (the previous “lang” attribute code appoints the document’s language as English) (“ar”: Arabic, “fr”: French, “es”: Spanish)
22
Q
<meta></meta>
A
- empty element
- presents Information or parameters about the document itself
- always appears in the head of the document’s HTML coding
23
Q
Charset
A
- Character-set
- Charset is an attribute of the meta element
- Example coding: ( <meta charset=”utf-8”> )
24
Q
UTF-8
A
- Setting the Charset as utf-8 assigns an 8-bit Unicode Transformation Format For the HTML document
- A type of character encoding format
25
* Text container in the head where the doc’s title is placed
* very important for SEO.
Used extensively:
* bookmarks
* Title bar
* Navigation tab
* History
* Search engines
* Title should be short and meaningful: ideal length- 10 characters or less.
26
SEO
* Search Engine Optimization.
* Highly prized process of improving a page's organic page rankings (rank in search results) presumably, maximizing the number of visitors to a particular website.
* It is useful to provide sufficient metadata that describes the page content well.
27
* Block element
* The tags For this element contain the largest of 6 different sizes of headings and subheadings
* Usually holds the doc’s main heading (Should be only one in doc, but can be more)
28
W3C Validator Tool
* Validator.w3.org
* Validator tools verify that any HTML doc will conform to its specified document type declaration: thereby, always appearing correctly in any standards-compliant browser.
29
HTML “character entities”
* In HTML coding, the way of including special characters in the document
* Begins with an ampersand and ends with a semicolon (& … ;) (W3C Chart of all character entities at: dev.w3.org/html5/html-author/charref)
* Best avoided in doc titles as the vocal narrator used by visually impaired viewers may read entity as a word.
30
| (The only coding relevant to this question lies between the quotes.)
* (<)
* These are often needed to avoid confusion with the angled brackets that surround each HTML tag.
31
| (The only coding relevant to this question lies between the quotes.)
* (>)
* These are often needed to avoid confusion with the angled brackets that surround each HTML tag.
32
Word of coding:
* begins with " &..."
* followed by "..nbsp.."
* ending in "..; "
| (The only coding relevant to this question lies between the quotes.)
* (a single non-breaking space)
* A commonly used HTML entity
* A space that will not break into a new line.
* Two words separated by a non-breaking space will stick together (not break into a new line).
* This is handy when breaking the words might be disruptive.
33
| (The only coding relevant to this question lies between the quotes.)
* (bullet point)
34
| (The only coding relevant to this question lies between the quotes.)
* (©)
35
| (The only coding relevant to this question lies between the quotes.)
* (™)
36
| (The only coding relevant to this question lies between the quotes.)
* (®)
37
| (The only coding relevant to this question lies between the quotes.)
* ( “ ), (Quotation marks)
* Example: "HTML in easy steps" (Appears as "HTML in easy steps")
38
To launch the narrator in Windows 10
* WinKey + Ctrl + Enter
* Press the “tab” button to hear the document title
39
Coding in HTML to place a comment that is ignored by the browser
*
40
Optimize doc view (all screens)
* Optimizes the page view for smaller / larger screens: ensures doc will fill the device screen width
* Sets the initial zoom level so the content is not zoomed.
* Coding:
41
Auto-page reload
* A technique often used in websites to dynamically update news our status items
* Does not depend on JavaScript support
* Coding:
42
Auto page redirection
* Coding:
43
SERP
* search engine result page
* Will Show The Meta description in search results below the page title
44
Meta “description”
* Should be between 50 and 160 characters long
* Including keywords relative to the text content is important for SEO purposes
* Coding:
45
Canonical link
* If a website contains pages of identical or very similar content you can specify which page is to be indexed by including this.
* - designates the original source for a piece of content
* Coding:
46
* Empty element
* Used to incorporate resources in a document
* ONLY appears in the head of the document (may contain many links)
* Must contain “rel” and “href” attributes
* May contain title or type attributes
47
type
* Hints at the MIME type of the link resource.
* For
56
* Only displayed when JavaScript functionality is absent or disabled
* Text container for Alternative fallback content (Example- )
57
* Exists purely for scripting
58
* Exists purely for scripting
59
MIME
* Multipart Internet Mail Extension
* Standard for formatting files of different types, such as text, graphics, or audio, so they can be sent over the internet and seen or played by a web browser or email application.
* Describes file types: ex.: “text/html”
* Official list at: http://www.iana.org/assignments/media-types/media-types.xhtml
60
* Empty element
* Specifies an alternate directory holding resources/files to be recognized by the browser. ( )
* Must be placed in doc head before any elements.
61
Absolute address
* Includes the entire URL: protocol, domain name, and path
* Example: “https://www.laurendaigle.com/Daigle-turquoise.jpg”
62
Relative address
* Can reference a file in home directory of the main HTML document by file name and may use the ../ syntax to reference that parent directory. (Example: /Daigle-turquoise.jpg)
* By default, the browser will look in HTML doc’s home directory.
63
Permitted “rel” values
* (Many are intended to help search engines locate resources associated with that HTML document (a.k.a. Increase traffic to your webpage/website/document))
* Alternate
* Author
* Bookmark
* Help
* Icon
* License
* Next
* Nofollow
* Noreferrer
* Prev
* Search
* Stylesheet
* Tag
* Shortcut icon
64
Icon
* Established in the head
* Force browser to refresh icon- assign “favicon.ico?v=2” to link’s href attribute
* Coding:
65
Heading elements
* Order of importance (,
, , , , , ) should implicitly convey the document structure through correct sequencing of the heading tags
* Correct sequencing and use of meta keywords in headings is important to SEO and allows syndication into another site
**Never use heading tags for their style qualities
, , , ) should implicitly convey the document structure through correct sequencing of the heading tags
* Correct sequencing and use of meta keywords in headings is important to SEO and allows syndication into another site
**Never use heading tags for their style qualities
, ) should implicitly convey the document structure through correct sequencing of the heading tags
* Correct sequencing and use of meta keywords in headings is important to SEO and allows syndication into another site
**Never use heading tags for their style qualities
66
* Grouping solution to the limited number of heading levels and the need to maintain a correctly sequenced document outline
* Doc may contain multiple hgroup elements, but an hgroup may contain ONLY heading elements.
* Ex. code
HTML
Building better websites
67
* May contain heading; hgroup; intro items like icons, banners, and table of contents; etc
* *You cannot Nest header elements one within another
* Ex. code

HTML
Building better websites
68
* Acts as a wrapper (not to replace any structural element) enclosing page-wide or site-wide navigation hyperlinks groups
* Includes ONLY page-wide or site-wide nav hyperlinks groups
* Ex. code
69
* Empty element
* used to embed an image in an HTML page
* are not technically inserted into a web page: they are linked to web pages
* creates a holding space for the referenced image
* Ex. code

70
* Includes a list of commands for the webpage or website
* Groups of hyperlinks on a webpage navigating around the page or website should be enclosed in nav tags or menu tags
71
* Line break element Can force the text to wrap to The next line Before It would automatically wrap to the next line at the text container elements edge
72
* A footer can be included in a doc or article, section, etc. of a doc and provides info about the doc or division of the.doc
* Might contain an address element (contact details, etc.); a small element (copyright, etc.); and a nav element
* Ex. code
73
* Page content container located between the header and the footer
* Ex. code
(Page content goes here.)
74
* Formats text (fine print items) within the body of the document, but is only meant to contain short comments that supplement surrounding content
* Regarded as a side comment to surrounding text such as copyright information
* *Does not denote content of lesser importance
75
* Container for Author’s name, author’s contact info, etc.
* Often located in the footer element
76
* Contains a stand-alone composition
* Might typically begin with its own heading followed by one or more paragraphs
77
VPN
* A virtual private network gives online privacy & anonymity by creating a private network from a public internet connection.
* extends a private network across a public network
* enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network.
78
* Typically a sidebar or footnote, it should contain stand alone info (*May contain a footer element, but not a nav hyperlink).
* Can be nested in an article element incorporating contents SOMEWHAT RELATED to the main content, or used alone containing secondary content RELATED to the entire page, such as advertising.
* Ex code
Oscar Wilde
79
* A grouping Element
* Not required in short docs unless you want to add section headings and footers
* Content placed within a body element and nested within a main element can also then be nested in a section element
80
* Empty element
* A horizontal rule tag can be inserted between paragraphs drawing a line separating them, but it may not be inserted inside of paragraph to separate sentences
* It represents a “paragraph-level thematic break“ such as a scene change in a story
* It represents the equivalent of an ellipsis standing alone on its own line
81
Flow
* the arrangement of page elements as defined by positioning statements and the order of html statements
* how the different elements take up space and arrange themselves around each other.
82
Phrasing
* The use of HTML phrase tags are special purpose tags, which define the structural meaning of a block of text or semantics of text.
* Must always be enclosed by a flow element
* Ex.
,
83
* Changes font to bold
* should only be used as a last resort: One legitimate use is to mark up the lead sentence of an article
* No emphasis added or changed
84
* The quotes element causes the browser to automatically add quotation marks around the content
* phrasing element
* Quote elements can be nested one within another
85
* The emphasis element creates italics in the font and bears an emphasized semantic meaning in the content
* Used as an inline element for stylistic and semantic purposes with the font and content
86
* Intended to surround long quotations from another source and bears no quotation marks
* Typically produces a rectangular block area to contain the quotation starting on a new line and indented from surrounding content
87
* Changes Font to bold
* Emphasizes or increases Without changing the meaning of the sentence
88
* Changes font to italics (should only be used as a last resort)
* Text is enhanced without conveying extra importance such as technical terms
89
* The strikethrough is a phrasing element marking the text as being superseded by more accurate, relevant, up-to-date content
* Typically displayed with a strikethrough line
**Should not be used to indicate edited content
90
* The deleted-text element formats text with a strikethrough, and may include a cite attribute to specify a doc’s URL that will explain the changes
* Text within is regarded as having been removed from the document such as a completed item in a to-do list
91
* The inserted-text element formats text with an underline: may include a cite attribute to specify a docs URL explaining changes.
* Text within is regarded as having been added to the document such as a new additional items in a to-do list
92
* The word-break-opportunity is a phrasing element INVISIBLY marking the text broken by this tag as being a suitable point at which to break the line of text
* Particularly suitable for small devices for docs that may contain content that may exceed the width of browser
93
* The unarticulated annotation (underline) is a phrasing element marking the text as being different in some way to normal text content and is TYPICALLY underlined.
* Has the purpose of labeling misspelled words or labeling proper names in Chinese.
**Use is strongly discouraged due to confusion with hyperlinks.
94
* Flow/Block element that preserves the preformatting of the enclosed text:
1.) preserves white space;
2) renders all text with a fixed-width font;
3) disables automatic word-wrapping;
4) does not disable bi-directional processing
* *Use spaces in the place of tabs when preparing pre-formatted text
95
* The marked-text is a phrasing element indicating the text as being of special significance for reference or notation.
* Typically displayed in a colored background block to highlight the text
* Not for emphasis: only to be used to highlight the relevance or importance of the text within a doc
96
* The subscript element specifies inline text typically with a lowered baseline using smaller font displayed for solely typographical reasons.
* Numbers (0-9) = ₀ - ₉
* *Any content can be included within the tags, whereas, the availability of character entity references is limited.
97
| html coding : ₀
* subscript "0"
98
* subscript "1"
99
* subscript "2"
100
* subscript "3"
101
* subscript "4"
102
* subscript "5"
103
* subscript "6"
104
* subscript "7"
105
* subscript "8"
106
* subscript "9"
107
; ⊃
* The superscript (element and entity) specifies inline text typically with a raised baseline using smaller font and displayed for solely typographical reasons.
* Numbers = 1= ¹ 2= ² 3= ³ 4=⁴ 5= ⁵ 6= ⁶ 7= ⁷ 8= ⁸ 9= ⁹ 0= ⁰
* *Any content can be included within the tags, whereas, the availability of character entity references is limited.
* * 2 appears larger than “ ²” ; however, the entity as opposed to the tag keeps line spacings equal
108
* superscript "1"
109
* superscript "2"
110
* superscript "3"
111
* superscript "4"
112
* superscript "5"
113
* superscript "6"
114
* superscript "7"
115
* superscript "8"
116
* superscript "9"
117
* superscript "0"
118
* Inline element with content styled in a fashion intended to indicate that the text is a short fragment of computer code (by default, the text is in monospace font).
**Remember to always nest a
element within a element to preserve the coding layout.
* *Use char entities to avoid conflict with active coding.
119
* A phrase tag used to define a variable in programming or in a mathematical expression.
* The content inside is typically displayed in italics.
120
* Encloses inline text which represents sample (or quoted) output from a computer program.
* Contents are typically rendered using the browser's default monospaced font (such as Courier or Lucida Console).
121
* links a given piece of content with a machine-readable translation: used to add a machine-readable translation of a given content
* This element provides both a machine-readable value for data processors, and a human-readable value for rendering in a browser.
**If the content is time- or date-related, the
122
* represents a specific period in time (time on a 24hr clock; a precise Gregorian calendar date; a valid time duration).
* It may include the datetime attribute to translate dates into machine-readable format, (*allowing for better search engine results or custom features such as reminders).
123
datetime attribute
* Specifies date and time of inserted and deleted text.
* Represents the date and time of the
124
* The abbreviation element is used along with a title attribute to associate a full-text explanation with an abbreviation or acronym.
* Full-text is only seen by website visitor using hovering cursor
* Browsers, search engines, and assistive technologies do see and use full-text.
125
* The Citation element is used to reference a cited creative work,
* must include the title of that work.
* May be in an abbreviated form according to context-appropriate conventions
126
* the "definition element", and it specifies a term that is going to be defined within the content.
* nearest parent tag must also contain the definition/explanation
127
* a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device.
* content displayed in the browser's default monospace font.
* This tag is not deprecated.
128
* defines a scalar measurement within a known range / fractional value. (a.k.a. a gauge).
* Must include a value attribute; should not be used to indicate progress; should include alternate text describing the state of the gauge.
* may include min or max attributes to define the range with default range being 0-1 assumed; low or high attributes effectively create a three-level sub-optimal range
129
* specifies a summary, caption, or legend for a
element's disclosure box.
* toggles the state of the parent
element open and closed.
130
title attribute
* used to specify extra information about the element.
* Hovering cursor reveals the information -most often as a tooltip text
131
keycode
* This property of a KeyboardEvent is used for returning the Unicode character code of the key that has been used to trigger an onkeypress event. ...
* The key codes represent an actual key on the keyboard whereas character codes represent an ASCII character.
**(The keyCode property is deprecated: It should be avoided to prevent RUN-TIME ERRORS in the future)
132
* Stands for Bi-Directional Isolation: Tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text.
* It's particularly useful when a website dynamically inserts some text and doesn't know the directionality of that text (Without, right-to-left languages are read back-to-front).
133
* specifies additional details that the user can open and close on demand.
* By default, the widget is closed. When open, it expands, and displays the content within.
134
* Bidirectional Text Override element
* Overrides the current directionality of text, so that the text within is rendered in a different direction (Without the bi-directional override, right-to-left languages are read back-to-front).
135
dir
* Specifies the text direction of the element's content
* It is essential to support languages that use right-to-left scripts such as Adlam, Arabic, Hebrew, N'Ko, Syriac, and Thaana.
* Possible attribute values: ltr - (default) Left-to-right text direction; rtl - Right-to-left text direction; auto - Let the browser figure out the text direction, based on the content (only recommended if the text direction is unknown)
136
* Represents small annotations rendered above, below, or next to base text and usually used for showing the pronunciation of East Asian characters.
* Can also be used for annotating other kinds of text, but this usage is less common.
* Don’t confuse the ruby annotation with the Ruby programming language
137
* Marks the base text component of a annotation which are used in East Asian typography.
* must be nested inside a element.
* can have both semantic (
138
* used to provide parentheses around a ruby text, to be shown by browsers that do not support ruby annotations.
* optional element used together with and
139
* An inline element specifying the ruby text component of a ruby annotation used to provide pronunciation, translation, or transliteration information for East Asian typography.
* Use
140
* marks the ruby text container for ruby text components in a ruby annotation
* specifies semantic annotations of characters that are presented in elements used inside a
141
hyperlink
* a link from a hypertext file or document to another location or file, typically activated by clicking on a highlighted word or image on the screen.
* Each webpage hyperlink is sensitive to three interactive states: Hover, Active, and Visited.
* Browsers distinguish links with underlining or colored borders typically.
142
accesskey
* Are the keyboard shortcuts to activate/focus specific elements (It supports all HTML elements), and are browser-dependent (may vary from browser to browser)
* Designate a character key (must be any, single keyboard character) as specified for a particular hyperlink through the use of the accesskey attribute of an anchor tag
* Utilize the shortcuts thus: “Alt+accesskey” for most browsers; “Alt+Shift+accesskey” for Firefox; “Cmd+accesskey” for Mac [and Apple?] users.
143
3 ways to access hyperlinks
* Pointer: hover cursor over hyperlink and click
* Tab: repeatedly hit Tab until hyperlink is selected, then, click Enter.
* Access key: hit a designated character key to focus on hyperlink and click Enter to activate.
144
Fragment links
* A short string of characters that refers to a resource that is subordinate to another, primary resource.
* In a separate doc, the fragment identifier introduced by a hash mark # is the optional last part of a URL typically used to identify a portion of that doc: In the same doc, the fragment is specified to a hyperlink in the anchor’s href attribute (beginning with a #), and is specified in the target element by its id attribute.
* Example code:
...
(target element) Top (nav hyperlink to different doc) Top (site or page nav hyperlink)
145
* Defines an unordered list of items
* Typically rendered as a bulleted list.
* Use the
- tag together with the
- tag to create unordered lists.
146
href protocols
* Typical- http//: … or https//: … (various nav hyperlinks)
* Javascript- href=”javascript: …” (various JavaScript event hyperlinks)
* Mailto- href=”... @ gmail.com” (auto-adds the email in the “To:” field hyperlink)
147
list-style-type property
* style attribute that specifies a Bullet’s style value of (disc(default style), circle, square, or none)
* style attribute that specifies a counter’s style value of (Decimals, Roman numerals, Latin letters, Greek letters, Georgian numbers, Armenian numbers, or none(to suppress numbering))
* Ex coding- (
- …
148
* The list item is used inside ordered lists(
- ), unordered lists (
- ), and in menu lists (
149
list-style-image property
* style attribute that specifies that the list-style-image property replaces the list-item marker with an image.
* Note: Always specify the list-style-type property in addition (This property is used if the image for some reason is unavailable).
* Ex coding- (
- …
150
* In the ordered list, each list item is preceded by a numerical or alphabetical identifier (as opposed to bullets or no identifier) (CSS: the bullets and counters (numbers, etc.) are displayed in the padding)
* The automatic counters that differentiate Ordered list items from regular text may be one of these six types:.Decimals, Roman numerals, Latin letters, Greek letters, Georgian numbers, or Armenian numbers or none (to suppress numbering)
* A start attribute can be specified to set a different starting point than the Traditional Counting starting point (start with 5 instead of 1).
151
* a description list encloses a list of groups of terms (specified using the element) and descriptions (provided by elements).
* Common uses: implement a glossary or to display metadata (a list of key-value pairs).(
- ’s are useful to contain a series of questions and related answers, or any other groups of name/value data). .
*
- ’s can contain Multiple terms for a single description or definition, or they can contain multiple definitions or descriptions for a single term.
152
* The tag defines a term/name in a description list (
- ’s are useful to contain a series of questions and related answers, or any other groups of name/value data).
* The
- tag is used in conjunction with
- (describes each term/name) and both are nested in
- (defines a description list)
* The
- alone does not indicate a term being defined: that requires a nested within the
- .
- alone does not indicate a term being defined: that requires a nested within the
153
* Defines a row in an HTML table.
* Are nested within a table element
* Each table row must contain the same number of data cells (for the purpose of maintaining understandable table columns)
* Contains one or more or elements.
154
* The definition description comes in tandem with its term, ; is nested in a
- description list; and defines or describes a list item (
- ’s are useful to contain a series of questions and related answers, or any other groups of name/value data).
* Paragraphs, line breaks, images, links, lists, etc. can be inserted inside
155
and |
* Will typically contain multiple table rows
156
|
* Defines a standard data cell in an HTML table.
* Table data cells are nested within table rows
* * The closing tag for data cells can be omitted
* Text in elements are regular and left-aligned by default.
|
157
* Defines a table caption.
* Must immediately follow the opening table tag
* * By default, a table caption will be center-aligned above a table (CSS properties text-align and caption-side can be used to align and place the caption).
158
Rowspan
* Attribute to a table data element to merge data cells
* (Cells in the spanned rows must then be removed to maintain table symmetry)
159
|
* The table heading element is used to add row and column headings
* Number of headings must exactly match the number of rows and columns.
* * Closing tag is optional.
160
* Used in conjunction with the and elements, the table footer groups special table info beneath the table content (table data should not appear here).
* Browsers can use these elements to enable scrolling of the table body independently of the header and footer.
* These elements can enable the table header and footer to be printed at the top and bottom of each page.
* Note: The element must have one or more
|
---|