HTML5/BS
Chrome
Percent-encoding reserved
https://en.wikipedia.org/wiki/Percent-encoding
! | # | $ | % | & | ' | ( | ) | * | + | , | / | : | ; | = | ? | @ | [ | ] |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%21 | %23 | %24 | %25 | %26 | %27 | %28 | %29 | %2A | %2B | %2C | %2F | %3A | %3B | %3D | %3F | %40 | %5B | %5D |
HTML5
https://www.w3.org/TR/html5 https://developer.mozilla.org/en-US/docs/Web/HTML/Element
lang
empty string indicates that the primary language is unknown
https://www.w3.org/TR/html5/dom.html#the-lang-and-xml:lang-attributes http://www.ietf.org/rfc/bcp/bcp47.txt
Subresource Integrity
https://www.w3.org/TR/SRI/#resource-integrity
media type
MIME type or content type: http://www.iana.org/assignments/media-types/media-types.xhtml#application
icons
https://github.com/encharm/Font-Awesome-SVG-PNG/tree/master/white/svg
Events
https://developer.mozilla.org/en-US/docs/Web/Events
CSS box model
box-sizing
https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
content-box
is the default.
border-box
tells the browser to account for any border and padding in the value you specify for width and height.
content
"real" content of the element
size can be explicitly defined with the width, min-width, max-width, height, min-height, and max-height properties.
When the content area has a background, it extends into the padding.
padding
extends the content area to include the element's padding.
border
extends the padding area to include the element's borders.
If the box-sizing property is set to border-box, the border area's size can be explicitly defined with the width, min-width, max-width, height, min-height, and max-height properties.
margin
extends the border area to include an empty area used to separate the element from its neighbors.
When margin collapsing occurs, the margin area is not clearly defined since margins are shared between boxes. https://developer.mozilla.org/en/CSS/margin_collapsing
Spacing
https://getbootstrap.com/docs/4.0/utilities/spacing/
Mobile
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html#//apple_ref/doc/uid/TP40008193
Flexbox
Game: https://flexboxfroggy.com/
Click links to live try:
flex-direction
: specifies which direction the main axis runs;column
-> verticallyflex-wrap
: defaultnowrap
flex-flow
=flex-direction
+flex-wrap
justify-content
: defaultflex-start
, items sit at the start of the main axisalign-items
:defaultstretch
,fill the parent in the direction of the cross axisalign-content
:around content items along a flexbox's cross-axisflex
: grow or shrink to fit the space | flex-grow + flex-shrink + flex-basis
UI Frameworks
https://github.com/stars/fzinfz/lists/frontend
Bootstrap
Version 3
https://getbootstrap.com/docs/3.3/getting-started/#download-cdn
Version 4
https://v4-alpha.getbootstrap.com/getting-started/introduction/#starter-template
http://blog.getbootstrap.com/2017/08/10/bootstrap-4-beta/
compiles faster than ever thanks to Libsass
moved nearly everything to flexbox, added a new grid tier to better target mobile devices, and completely overhauled our source Sass with better variables, mixins, and now maps, too.
https://getbootstrap.com/docs/4.0/components/card/
move gradients, transitions, shadows, grid classes, and more into Sass variables.
drop support for IE8/IE9, Safari 8-, iOS 8-, etc
JS plugins in ES6. new teardown methods, option type checking, new methods, and more.
auto-placement of tooltips, popovers, and dropdowns from https://popper.js.org
npm scripts instead of Grunt
Version 5
https://blog.getbootstrap.com/2021/05/05/bootstrap-5/
Grid system
https://getbootstrap.com/docs/3.3/css/#grid
Rows must be placed within a .container[-fluid] for proper alignment and padding. Columns create gutters (gaps between column content) via padding
. That padding is offset in rows for the first and last column via negative margin on .rows
.
forms
https://getbootstrap.com/docs/4.0/components/forms/#form-groups
.form-group provides a flexible class that encourages proper grouping of labels, controls, optional help text, and form validation messaging.
.row for .form-row, a variation of our standard grid row that overrides the default column gutters for tighter and more compact layouts.
https://getbootstrap.com/docs/4.3/components/forms/#inline-forms
.form-inline class to display a series of labels, form controls, and buttons on a single horizontal row.
whitespace and wrap
https://css-tricks.com/almanac/properties/w/whitespace/
New lines | Spaces and tabs | Text wrapping | |
---|---|---|---|
normal | Collapse | Collapse | Wrap |
pre | Preserve | Preserve | No wrap |
nowrap | Collapse | Collapse | No wrap |
pre-wrap | Preserve | Preserve | Wrap |
pre-line | Preserve | Collapse | Wrap |
robots
Frameworks
htmx | AJAX, CSS Transitions, WebSockets and Server Sent Events: https://htmx.org/
Last updated