Week 2 Exploration

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/161

flashcard set

Earn XP

Description and Tags

Introduction to HTML — HTML Tags — Linking HTML Documents — Introduction to CSS & Selectors — CSS Properties and the Box Model

Last updated 12:38 AM on 10/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

162 Terms

1
New cards

acronym: HTML

HyperText Markup Language

2
New cards

definition: HTML

a language that structures hypertext and is what webpages are written in

3
New cards

element

the basic building block of HTML, there are many types of elements in HTML, they can be nested within each other, and are represented with opening and closing tags.

4
New cards

4 main parts of an HTML document

1 - Document Type Declaration

2 - HTML root element

3 - Head element, nested inside HTML root, sibling of body

4 - Body element, nested inside HTML root, sibling of head

5
New cards

Document Type Declaration

the first line, which tells the browser that the document type is HTML, <!doctype html>

6
New cards

HTML root element

This element typically has a lang attribute that describes the human language used by the majority of content on the page, all other elements are descendants of this one, <html>

7
New cards

Head element

Used to specify meta-data about the document, also called the header of the document, it helps the browser and robots (e.g., search engine crawlers) understand what is on the page. Often contains a title element, <head>

8
New cards

Body element

This is what contains the the content of the website, only this is rendered on the webpage.

9
New cards

HTML Attributes

Provide additional information about a given HTML element, typically use attribute-name="attribute-value" format, some attribute names have no associated value pair.

10
New cards

Input Element

Used to create controls for user input, it is an empty element (no closing tag). Attributes are added to give further detail about the type and behavior of the input, ex <input type="checkbox" checked >

11
New cards

Entities

Strings that begin with & and end with ; and are provided to display reserved characters as well as characters that may be difficult to type on a keyboard.

12
New cards

Entity: &lt;

Displays <

13
New cards

Entity: &gt;

Displays >

14
New cards

Entity: &amp;

Displays &

15
New cards

Entity: &quot;

Displays "

16
New cards

Entity: &copy;

Displays a copyright symbol ©

17
New cards

Viewport

The portion of a browser's window below the tab, address bar, and bookmark bar.  The area changes size depending on the device being used to view web pages.

18
New cards

Page Layout Tags

Structural HTML tags used to organize and define the different sections of a webpage that act as containers that group content together, creating a visual blueprint and hierarchy for the page's design.

19
New cards

Block-level elements

Elements (like page-layout tags, headlines, and paragraphs) that break up the content flow and are typically displayed by browsers with a newline both before and after them.

20
New cards

<header>

An element that denotes the banner or masthead for an app/site; it typically includes the name, publisher, and marketing slogan, and is kept consistent from page to page.

21
New cards

<nav>

An element used for navigation blocks that take users to other pages, typically containing main menus, search, tools, stories, locations, and legal links.

22
New cards

<main>

The primary HTML element that holds the main content of a page, such as stories, galleries, or tutorials.

23
New cards

<section>

A thematic grouping of related content that does not quite stand on its own, usually starting with an <h1> headline that describes its contents.

24
New cards

<article>

An element typically used inside a <section> to denote a single specific topic, often marked with an ID selector for unique styling and internal page anchors.

25
New cards

<footer>

An element residing below the </main> tag that holds legal information, contact details, and critical links, minimally requiring a copyright statement.

26
New cards

<aside>

An element that holds content related to an article (often floating to the left or right with a different style) or used by frontend developers to create sidebars.

27
New cards

<figure> and <figcaption>

Elements used together to wrap around and label media, where the primary tag encloses both the media (like an image or movie) and its caption tag.

28
New cards

<blockquote>

An element designed for extended quotations that are too long for a standard paragraph, visually styled to stand out, and capable of including <q> and <cite> tags.

29
New cards

<div>

A styleless, dimensionless placeholder used to divide content when no other existing element makes sense, or to serve as a container for dynamic content.

30
New cards

Headings (<h1> to <h6>)

Block-level elements used hierarchically to announce new or subsequent content, with <h1> being the highest level and <h6> being the lowest.

31
New cards

Proper use of Headings

Structural tags that should only be used to add organization to a document (like items in a table of contents) and to ensure accessibility for screen readers and search engines.

32
New cards

Incorrect use of Headings

Using heading tags solely to add emphasis, bolding, or size adjustments to text (such as inside a paragraph) instead of using them for hierarchical structure.

33
New cards

Inline elements

Elements that don’t break the flow of surrounding content.

34
New cards

<strong>

Marks text as important; adds bold styling and screen-reader emphasis.

35
New cards

<b>

Makes text stylistically different (bolded) without adding semantic meaning.

36
New cards

<strong> vs <b>

<strong> adds semantic importance; <b> only adds visual styling.

37
New cards

<em>

Adds emphasis to text; usually italic and emphasized by screen readers.

38
New cards

<i>

Used primarily for denoting icons rather than simply making text italic.

39
New cards

<q>

Marks a short quotation, typically adding quotation marks.

40
New cards

<span>

Targets specific inline content for styling with CSS classes or styles.

41
New cards

Inline elements examples

<strong>, <b>, <em>, <i>, <q>, and <span>.

42
New cards

<ul>

Creates an unordered list with bullet points; its children must be <li> elements.

43
New cards

<ol>

Creates an ordered list with automatically numbered or sequenced items.

44
New cards

<li>

Defines an individual item within an ordered or unordered list.

45
New cards

<dl>

Creates a definition list containing term-and-definition pairs.

46
New cards

<dt>

Defines a term in a definition list.

47
New cards

<dd>

Defines the description or definition of a term in a definition list.

48
New cards

<table>

Parent element that creates a table and contains its nested table elements.

49
New cards

<caption>

Provides the title or description of a table and its purpose or result.

50
New cards

<thead>

Contains the table's header rows and heading cells.

51
New cards

<tbody>

Contains the main rows and data cells of a table.

52
New cards

<tfoot>

Contains the table footer, often used for totals or calculation results.

53
New cards

<tr>

Defines a row in a table and contains <td> or <th> cells.

54
New cards

<td>

Defines a standard data cell in a table.

55
New cards

<th>

Defines a heading or label cell in a table.

56
New cards

colspan

Makes a table cell span across multiple columns. ex—colspan=”3”, the cell will span 3 columns

57
New cards

rowspan

Makes a table cell span across multiple rows. ex—rowspan=”2”, the cell will be two rows high.

58
New cards

Unordered List

A list whose items are displayed without a numbered sequence.

59
New cards

Definition List

A list containing terms and their corresponding definitions or descriptions.

60
New cards

Ordered List

A list whose items are automatically numbered or sequenced.

61
New cards

<a> (anchor element)

Creates a hyperlink from one page or location to another.

62
New cards

href

an attribute to an anchor element that specifies the URL where a hyperlink will take the user.

63
New cards

Link Text

The content between <a> tags that describes the destination of the link.

64
New cards

Path

The location of a file or resource within a directory structure.

65
New cards

index.html

The file in the root directory typically used as a website’s homepage.

66
New cards

Homepage

The main page of a web application, usually served for the root URL /.


67
New cards

Absolute URL

A complete URL that includes the protocol and domain name. Ex—https://module2.cs290.com/index.html

68
New cards

Relative URL

A URL that specifies a resource relative to the current file’s location.

69
New cards

./

Refers to the current directory in a relative path

70
New cards

/

Separates directories and files in a URL path

71
New cards

..

Moves up one directory in a relative path.

72
New cards

Internal Link

A link that navigates to a specific location within the same document

73
New cards

id

An attribute that uniquely identifies an HTML element and can be used as a link destination.

74
New cards

#

Precedes an element’s id value to link directly to that location in a document. Ex—file:///C:/Users/nauman/m2/link_example.html#governance takes the user to the governance section of the web page.

75
New cards

<img>

HTML element that displays an image.

76
New cards

src

An attribute that specifies the URL or path of an image or external resource.

77
New cards

alt

An attribute that provides alternative text for an image’s accessibility

78
New cards

Inline Image

An image displayed within the flow of surrounding content without creating a new line.

79
New cards

<link>

Specifies a relationship between an HTML document and an external resource.

80
New cards

rel

An attribute that specifies the relationship between an HTML document and an external resource. Two commonly used values are “stylesheet” and “icon”.

81
New cards

<script>

Adds JavaScript to an HTML document or references an external JavaScript file.

82
New cards

CSS (Cascading Style Sheets)

A language used to describe the presentation and styling of HTML documents.

83
New cards

Separation of content and style

The practice of using HTML for structure/content and CSS for presentation.

84
New cards

CSS rule

A selector followed by declarations that specify how selected HTML elements should be styled

85
New cards

Stylesheet

A file containing CSS rules, typically using the .css file extension

86
New cards

Selector

Specifies which HTML elements a CSS rule applies to

87
New cards

Declaration

A CSS property-value pair that specifies a style.

88
New cards

Property

The aspect of an element being styled, such as color or font-size.

89
New cards

Value

The setting assigned to a CSS property.

90
New cards

Universal Selector *

Selects all elements

91
New cards

Type Selector

A selector that selects elements based on their HTML tag name (ex all <h1>s).

92
New cards

ID Selector

A selector that selects the element with a specific ID using #id.

93
New cards

Class Selector

A selector that selects all elements with a specific class using .class.

94
New cards

ID vs Class Selectors

An ID identifies one unique element, a class can be reused on multiple elements.

95
New cards

Grouping Selector

Applies the same CSS rule to multiple selectors separated by commas. Ex—p, li {
color: blue;
} applies to all paragraph and list item elements

96
New cards

Combinator

A type of selector that selects elements based on their location or relationship to the document tree.

97
New cards

Parent

The element that directly contains another element.

98
New cards

Child

The element directly contained by another element.

99
New cards

Sibling

Elements that share the same parent.

100
New cards

Descendant

An element contained inside another element at any level.