From 468dcac699ee2df8a8614e143ae9a00007938f57 Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 21 Sep 2024 16:52:20 -0700 Subject: meow --- web/html.md | 254 +++++++++++++++++++++++++++--------------------------------- 1 file changed, 115 insertions(+), 139 deletions(-) (limited to 'web/html.md') diff --git a/web/html.md b/web/html.md index f47a0ec..e82634d 100644 --- a/web/html.md +++ b/web/html.md @@ -9,119 +9,6 @@ title: A Quick Guide to Modern HTML 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 - -- [``][b] or [``][strong]: bold text -- [``][i] or [``][em]: italic text -- [``][u]: underlined text -- [``][s]: struckthrough text -- [``][q]: quoted text -- [``][small]: small text -- [``][sub]: subtext -- [``][sup]: supertext -- [``][code]: text styled like code -- [`
`][pre]: 
preformatted text
- -Some emphasis must be made: 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. - - -
-default styles - -```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: monospace; -} -``` - -```css -pre { - display: block; - font-family: -moz-fixed; - white-space: pre; - margin-block: 1em; -} -``` - -
- ## Semantic - [``][html]: The root of an HTML document. @@ -220,18 +107,16 @@ wbr { -Aside from being block elements, they have no styling... - -- [`
`][main] - - There should exist at most one `
` element in a document. -- [`
`][section] -- [`