From 439c5d3ef5fb8b8ebba28d45088d9b91db7418ac Mon Sep 17 00:00:00 2001 From: JJ Date: Thu, 4 Jan 2024 18:37:28 -0800 Subject: meow --- web/css.md | 234 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/html.md | 217 ++++++++++++++++++++++++++++++++++++++++++++++++++ web/htmx.md | 12 +++ web/index.md | 5 ++ web/networking.md | 12 +++ web/tailwind.md | 12 +++ web/wasm.md | 5 ++ 7 files changed, 497 insertions(+) create mode 100644 web/css.md create mode 100644 web/html.md create mode 100644 web/htmx.md create mode 100644 web/index.md create mode 100644 web/networking.md create mode 100644 web/tailwind.md create mode 100644 web/wasm.md (limited to 'web') diff --git a/web/css.md b/web/css.md new file mode 100644 index 0000000..14367bc --- /dev/null +++ b/web/css.md @@ -0,0 +1,234 @@ +--- +layout: web +title: A Brief Reference for Modern CSS +--- + +# A Brief Reference for Modern CSS + +I like CSS. I really, really like CSS. I greatly enjoy just... fucking about with it, producing [pretty websites](https://apropos.codes) (egotistical, i know!) and [ugly websites](https://cursedc.tf/2023) and [weird-ass websites](https://cursedc.tf). + +But I don't like *everything* about CSS, and one of those things I don't like is how much I have to rely on references. Property names are remarkably unintuitive. And CSS is complicated! There's a lot to keep in your head, and it's ever changing - ever improving, I would say, but ever changing nonetheless. So I figured writing my *own* reference might help. + +So here is some sort of reference. If you're me, hi! I hope this was helpful. If you're not me, hi! I hope this is helpful. But you shouldn't be here really, go to the [MDN reference](https://developer.mozilla.org/en-US/docs/Web/CSS) or the [Interneting is Hard tutorial](https://www.internetingishard.com/) or something. I wrote these notes for me: they do not cover things I do not care about: very notably browser support. *Especially* vendor prefixes but also just generally: if it works in modern Chrome and modern Firefox, it's good enough for me. + +https://css-tricks.com/whats-new-since-css3/ + +## Layout + +### flow + +### absolute + +### flexbox + +### grid + +## Media Queries + +## Selectors + +**attributes** go on elements... + +**identifiers** can be selected with `#`. + +**classes** can be selected with `.`. + +### combinators + +### nested queries + +Queries can be nested!!!!!1!! + +### pseudo-classes + +### pseudo-elements + +## Elements + +Many elements have default styles provided by the browser. These are accessible at ... in Firefox, and ... in Chrome. +resource://gre-resources/html.css + +### body and friends + +```css +body { + display: block; + margin: 8px; +} +``` + +```css +html, main, header, footer, div, +section, nav, article, aside, blockquote { + display: block; +} +``` + +### formatting + +```css +b, strong { + font-weight: bolder; +} +``` + +```css +i, em { + font-style: italic; +} +``` + +```css +u { + text-decoration: underline; +} +``` + +```css +s { + text-decoration: line-through; +} +``` + +```css +q:before { + content: open-quote; +} + +q:after { + content: close-quote; +} +``` + +```css +small { + font-size: smaller; +} +``` + +```css +sub { + vertical-align: sub; + font-size: smaller; +} +``` + +```css +sup { + vertical-align: super; + font-size: smaller; +} +``` + +```css +code { + font-family: -moz-fixed; +} +``` + +### paragraphs + +```css +p { + display: block; + margin-block: 1em; +} +``` + +```css +pre { + display: block; + font-family: -moz-fixed; + white-space: pre; + margin-block: 1em; +} +``` + +### headers + +```css +h1, h2, h3, h4, h5, h6 { + display: block; + font-weight: bold; +} + +h1 { + font-size: 2em; + margin-block: .67em; +} + +h2 { + font-size: 1.5em; + margin-block: .83em; +} + +h3 { + font-size: 1.17em; + margin-block: 1em; +} + +h4 { + font-size: 1.00em; + margin-block: 1.33em; +} + +h5 { + font-size: 0.83em; + margin-block: 1.67em; +} + +h6 { + font-size: 0.67em; + margin-block: 2.33em; +} +``` + +`h1`s nested within an `article`, `aside`, `nav`, or `section` behave somewhat strangely, acting as a smaller header depending on the level of nesting. + +### lists + +```css +li { + display: list-item; + text-align: match-parent; +} +``` + +```css +ul, menu { + display: block; + counter-reset: list-item; + margin-block: 1em; + padding-inline-start: 40px; + list-style-type: disc; +} +``` + +```css +ol { + display: block; + counter-reset: list-item; + margin-block: 1em; + padding-inline-start: 40px; + list-style-type: decimal; +} +``` + +Nested lists have no top or bottom margins. The `list-style-type` of unordered lists changes with depth: from a `disc`, to a `circle`, to a `square`. + +### meta + +```css +head, link, meta, title, style, script { + display: none; +} +``` + +___ are invisible. + +## Properties + +There are a *lot* of properties, of various elements, and things. + +`property left right center up` or whatever +this seems consistent and i don't know it diff --git a/web/html.md b/web/html.md new file mode 100644 index 0000000..6dcdef6 --- /dev/null +++ b/web/html.md @@ -0,0 +1,217 @@ +--- +layout: web +title: A Quick Guide to Modern HTML +--- + +# A Quick Guide to Modern HTML + +This guide is a work in progress! + +Modern HTML is a remarkably simple and coherent standard. + +## Basic HTML + +HTML is a *markup language* used for content on the web. It is composed of *tags*, that may be *nested* within each other to form a *document tree*. It is *semantic*: every tag + +and many tags indeed hold no purpose other than indicating ... + + +Every website you visit is composed of HTML, which alongside with styling via CSS... Modern websites are composed of somewhat atrocious amounts of + +Web browsers receive HTML documents from a web server or from local storage and render the documents into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for its appearance. + +HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects such as interactive forms may be embedded into the rendered page. HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as and directly introduce content into the page. Other tags such as

and

surround and provide information about document text and may include sub-element tags. Browsers do not display the HTML tags but use them to interpret the content of the page. + + +HTML is composed of *tags*. These tags are enclosed in angle brackets + +There are quite a few tags, but not overwhelmingly many. Here they all are. + +if your tag is not reserved, you can kinda just write whatever?? i like doing this + +There are about XX important tags. Here they all are. + +## Style + +- [` `](https://developer.mozilla.org/HTML/Element/b) or [` `](https://developer.mozilla.org/HTML/Element/strong): bold text +- [` `](https://developer.mozilla.org/HTML/Element/i) or [` `](https://developer.mozilla.org/HTML/Element/em): italic text +- [` `](https://developer.mozilla.org/HTML/Element/s): struckthrough text +- [` `](https://developer.mozilla.org/HTML/Element/u): underlined text +- [` `](https://developer.mozilla.org/HTML/Element/q): quoted text +- [` `](https://developer.mozilla.org/HTML/Element/small): small text +- [` `](https://developer.mozilla.org/HTML/Element/sub): subtext +- [` `](https://developer.mozilla.org/HTML/Element/sup): supertext +- [` `](https://developer.mozilla.org/HTML/Element/code): text styled like code + +Some emphasis must be put: these tags are **semantic**. They are not for styling! You have a much more expressive form of styling with CSS! +Given the existence of a quote key on most ASCII keyboards, this is not very useful, unless you're a stickler for Unicode quotes. + +## Wrappers + +These wrappers have no style associated with them, but are *semantically meaningful*. or is that true? they are all `block`, no? + +`` +`` +`
` + +```css +

+

+

+

+
+
+``` + +`

` +`
 
` +`
` +`
` +` ` (or below) + +## Content + +```css + +``` +`` +`