Lernzettel: Tabellenkalkulation & HTML/CSS
Spreadsheet Principles and Basic Formula Mechanics
Mandatory Formula Initialization:
Every formula in a spreadsheet calculation must begin strictly with an equals sign (
=). Without this leading symbol, the program interprets the entry as plain text or a literal string rather than an executable operation.Following the equals sign, formulas incorporate cell references, constants, and standard mathematical calculation operators:
Addition:
+Subtraction:
-Multiplication:
*Division:
/Exponentiation / Powers:
^
Editing and Display Duality:
Cell Display: Clicking on or viewing a cell directly shows only the computed mathematical result of the calculation.
Formula Bar (Bearbeitungsleiste): The actual underlying formula remains visible and editable in the formula bar located at the top of the interface. Any adjustments to the variables, operators, or references must be made there or by entering cell edit mode.
Formula Interpretation:
Formulas are interpreted by evaluating the specific cell identifiers to determine which data points are being calculated.
Example: In the formula
=A2+B2, the system dynamically retrieves the numeric value present in cellA2, retrieves the numeric value in cellB2, and computes their arithmetic sum.
Cell Referencing Systems: Relative, Absolute, and Mixed References
Relative References (Relativer Bezug):
Representation: Denoted without dollar signs (e.g.,
A1).Operational Behavior: Automatically adjusts its row and column coordinates relative to the direction and distance the formula is moved, copied, or autofilled across the grid.
Application: Used when a calculation pattern needs to repeat across consecutive rows or columns (e.g., multiplying adjacent quantities by unit prices down an entire column).
Absolute References (Absoluter Bezug):
Representation: Denoted with dollar signs before both the column letter and row number (e.g.,
$A$1).Operational Behavior: Remains permanently anchored to that exact single cell coordinate when copied or autofilled anywhere in the sheet. The dollar sign (
A1: Locks the column (A), while allowing the row index (1) to increment or decrement when autofilled vertically.A$1: Locks the row (1), while allowing the column letter (A) to shift alphabetically when autofilled horizontally.Operational Behavior: Only the component preceded immediately by the dollar sign remains static during duplication; the non-dollar portion adjusts dynamically relative to target movement.
Data Formatting and Visual Display in Spreadsheets
Principle of Separation between Value and Appearance:
Number formats modify exclusively the visual presentation (Erscheinungsbild) of a cell's contents on screen and in print.
The underlying value stored by the calculation engine remains completely unchanged, preserving full floating-point precision for all subsequent mathematical formulas.
Standard Number Formats:
General / Number (Standard / Zahl): Displays standard numerical values. Under the dedicated "Zahl" format, decimal places can be fixed to a specific number of decimal digits.
Currency / Accounting (Währung / Buchhaltung): Appends explicit currency symbols and standard financial separators (e.g., rendering numeric
4723.14asCHF 4'723.14).Percentage (Prozent): Visually scales the internal numeric value by a factor of 100 and appends the percent symbol
%(e.g., an underlying decimal value of0.5is visually displayed as50%).Date / Time (Datum / Uhrzeit): Translates serial numbers into standard calendar dates and daily clock timestamps.
Core Mathematical and Statistical Spreadsheet Functions
General Syntax of Built-In Functions:
Follows the standardized structure:
=FUNCTIONNAME(Range).Cell ranges are defined continuously by separating the starting cell and the ending cell with a colon (
:). For instance,A1:A10spans the continuous block including every cell fromA1throughA10.
Standard Statistical Functions:
=SUMME(A1:A10): Calculates the total arithmetic sum of all numbers contained within the designated rangeA1:A10.=MITTELWERT(A1:A10): Computes the arithmetic mean (average) across the designated rangeA1:A10.=MIN(A1:A10): Identifies and outputs the smallest value (minimum) within the rangeA1:A10.=MAX(A1:A10): Identifies and outputs the largest value (maximum) within the rangeA1:A10.Scope Note: Logical IF-THEN evaluations (
WENN-DANN) are excluded from this specific operational scope.
Chart Creation, Formatting Rules, and Visual Standards
Chart Creation Workflow:
Select the relevant data set on the worksheet, ensuring that column and row headers (Überschriften) are explicitly included within the highlighted selection.
Navigate to the Insert (Einfügen) menu in the ribbon.
Select the appropriate diagram type based on the data structure (e.g., column chart / Säulendiagramm, bar chart / Balkendiagramm, line chart / Liniendiagramm, or pie chart / Kreisdiagramm).
Mandatory Chart Formatting Standards:
Chart Title: Every generated chart must possess a meaningful, descriptive title explaining the data being visualized.
Axis Labels (Achsenbeschriftungen): All categorical and value axes require informative, unambiguous labels.
Enclosure of Measurement Units: Any physical or financial units of measurement attached to axis labels must strictly be enclosed inside square brackets (
[...]):Example for temporal data:
Zeit [s]Example for monetary/revenue figures:
Umsatz [CHF]
Fundamentals and Structural Distinctions of HTML and CSS
HTML (HyperText Markup Language):
Primary Role: Governs the structural backbone and semantic content of the web document.
Domain: Encompasses all raw text, heading hierarchies, structural containers, hyperlinks, tables, lists, and embedded media/images.
CSS (Cascading Style Sheets):
Primary Role: Governs the visual design, aesthetics, and layout of the web page.
Domain: Controls visual styling including color schemes, typography, font sizing, margin and padding spacing, positioning, and adaptive layout rules.
Standard HTML5 Document Boilerplate and Head/Body Architecture
Standardized HTML Document Structure: ```html
```
Core Structural Components:
<!DOCTYPE html>: Document type declaration confirming the document complies with the HTML5 standard.<html>: Root element that wraps all structural and content elements of the web page.<head>: Container holding metadata and technical configurations invisible to standard website visitors:<meta charset="utf-8">: Defines the character encoding standard as UTF-8 to ensure proper rendering of international special characters and umlauts.<title>Titel im Browser-Tab</title>: Specifies the text string displayed on the browser tab or window title bar.<link rel="stylesheet" href="style.css">: Establishes the external stylesheet linkage that connects the HTML structure to an external CSS stylesheet namedstyle.css.<body>: Container encompassing all visible page content rendered inside the browser viewport for end users.<!-- ... -->: Denotes comments within HTML that are ignored by the browser parser.
Semantic HTML Tags: Headings, Text Formatting, and Lists
Tag Syntax Conventions:
HTML tags typically operate in matched opening and closing pairs:
<tagname>Content</tagname>.
Heading Hierarchy:
Headings are ordered hierarchically from
<h1>down to<h6>:<h1>: Represents the top-level, primary document heading.<h6>: Represents the smallest sub-heading level.
Text and Paragraph Elements:
<p>: Defines a standard text paragraph, establishing vertical separation above and below the block.<strong>or<b>: Renders enclosed text with bold visual emphasis.<em>or<i>: Renders enclosed text with italicized visual emphasis.
List Formatting Elements:
<ul>: Creates an unordered list, rendering items with standard bullet points.<ol>: Creates an ordered list, rendering items with automatic sequential numbering.<li>: Represents an individual list item (List Item); each distinct bullet point or numbered entry must be wrapped within paired<li>...</li>tags inside a parent<ul>or<ol>.
Hyperlink Architecture and Image Embedding Protocols
Hyperlink Creation with the Anchor Tag (
<a>):Links are constructed using the
<a>(Anchor) tag paired with the essentialhref(hypertext reference) attribute, which dictates the destination target URL.Syntax structure:
html <a href="https://beispiel.ch">Hier klicken</a> The text between the opening and closing tag (e.g.,
Hier klicken) represents the clickable anchor text displayed to the user.
Embedding Images via the
<img>Tag:The
<img>element is a void / self-closing tag that does not have an accompanying closing tag (</img>).Requires two primary attributes:
src: The source attribute, indicating the relative file path or URL location of the image file (e.g.,src="bild.jpg").alt: The alternative text attribute, providing a textual description of the image content (e.g.,alt="Beschreibung des Bildes").Accessibility & Fallback Functions of
alt:Rendered visually in the browser in the event that the referenced image file fails to load or cannot be found.
Read aloud by screen-reading software (Vorleseprogramme) to ensure web accessibility for blind and visually impaired users.
Syntax structure: ```html
```
CSS Syntax, Selectors, and Key Styling Properties
CSS Rule Structure:
A CSS rule begins by defining a selector to identify which HTML element(s) will be styled.
Followed by a declaration block enclosed within curly braces
{ ... }.Inside the block, declarations consist of a property name, a colon, the designated property value, and a terminating semicolon:
css h1 { color: blue; font-size: 24px; font-family: Arial; }
Primary CSS Properties and Applications:
color: Determines the foreground color of the text (e.g.,blue).background-color: Sets the background fill color of the targeted element's bounding box.font-family: Defines the font typeface applied to the text (e.g.,Arial).font-size: Controls the height and scale of the text characters (e.g.,24px).