Lexikon
My working reference for web engineering and AI tools: HTML, CSS, JavaScript, PHP, Python, SQL, Bash, GitHub, Claude, Codex, Hermes, and the expressions AI assistants use, each explained in plain language with an example.
Filters (3 active)
A
-
*args and **kwargsCollect any number of extra positional arguments (args) or named arguments (kwargs).
-
aspect-ratio and object-fitKeep a box at a fixed shape, and make images fill it without being squashed.
-
async / awaitA way to write code that waits for something (a network call, a timer) without freezing the page.
-
async / await (Python)Running many waiting tasks (network calls) at the same time in one program.
-
autocomplete attributeTells the browser and password manager what a field is, so it can fill it in correctly.
C
-
calc(), min(), max()Do maths in CSS, mixing units, and pick the smaller or larger of two values.
-
classList and changing the pageAdding and removing CSS classes, text and attributes from JavaScript.
D
-
data- attributesYour own attributes for storing small pieces of information on an element for JavaScript or CSS.
-
<details> and <summary>A built-in open/close section, perfect for FAQs, with no JavaScript needed.
-
<dialog>A native popup window with focus handling and a backdrop built in.
-
display (block, inline, none)The CSS property deciding how an element takes space: block, inline, flex, grid or hidden.
-
<div> and <span>Neutral containers with no meaning: div for blocks, span for pieces of text.
-
<!DOCTYPE html>The first line of every HTML page; it tells the browser to use modern standards mode.
F
-
f-stringA string with expressions inside {}, filled in at runtime.
-
:focus-visibleShows a clear focus outline for keyboard users without showing it on every mouse click.
-
for, while, range, enumerate, zipThe ways to repeat things in Python.
G
-
gapSpace between items in a flex or grid container, without margins on the items themselves.
-
$_GET, $_POST, $_SERVERPHP's built-in arrays holding the request: URL parameters, form data, server info.
H
-
:has()The "parent selector": style an element depending on what it contains.
-
<head> and <body>The head holds information about the page; the body holds what visitors see.
-
hreflangTags that tell search engines which language versions of a page exist, so each visitor gets the right one.
I
-
if __name__ == "__main__"Runs code only when the file is executed directly, not when it is imported.
-
import and modulesEvery .py file is a module; import loads code from another file, the standard library or an installed package.
-
IntersectionObserverNotices when an element scrolls into view; used for lazy loading, animations and "load more".
L
-
lambdaA tiny nameless function written on one line.
-
lang attributeDeclares the language of the page or a part of it.
-
let, const and varWays to declare variables: const for values that won't be reassigned, let for ones that will; avoid var.
M
-
match expressionA stricter, shorter switch that returns a value.
N
-
Null coalescing (??)Returns the left value if it exists and isn’t null, otherwise the right one.
O
-
Optional chaining (?.) and ???. stops quietly when something is missing; ?? gives a default for null or undefined.
-
overflowWhat happens when content is bigger than its box: show it, hide it, or scroll.
P
-
pathlib and filesThe modern way to work with file paths and read or write files.
-
position (relative, absolute, fixed, sticky)Moves elements out of the normal flow: on top of others, fixed to the screen or sticking while scrolling.
-
preventDefaultStops the browser's normal action, such as following a link or reloading the page on form submit.
Q
-
querySelectorFinding elements on the page with CSS selectors.
R
-
rel="noopener"A link setting that stops a page opened in a new tab from controlling the page that opened it.
S
-
script, defer and asyncWays to load JavaScript without blocking the page from showing.
-
setTimeout and setIntervalRun code once after a delay, or repeatedly at an interval.
T
-
Template literalStrings in backticks that can span lines and include ${values}.
-
transformMove, scale, rotate or skew an element without affecting the layout around it.
-
try / exceptCatching errors so the program can react instead of crashing.
-
Types and equality (=== vs ==)JavaScript values: string, number, boolean, null, undefined, object, array; always compare with ===.
U
-
Useful string functionsBuilt-in helpers for text: length, replace, search, split, trim.
Z
-
z-index and stackingWhich element appears on top when they overlap.