Day 6 - 28/8
<center/>: set everything in it to the center of webpage<audio src="" controls/>: add audio; give user control rights;
+
autoplay: auto play the audio on first loaded+
muted: the audio is muted on first loaded+
loop: to have the audio loop
<video src="" type="video/webm"/>: display video; only works with .webm files for now<form enctype="">: encode methods
application/x-www-form-urlencoded: default method; all data are encoded before submittingmultipart/form-data: used when type="file" includedtext/plain: submitting data without encoding
text-shadow: x y z color, a b c color; create shadow for text x (positive) pixel to the right, y pixel down, z pixel blur; a (negative) pixel to the left, b pixel up, c pixel blurbox-shadowdisplay: flow-root: used when an image floating among a border to keep it from floating out of the boxoverflow:: adjust content when it doesnt fit a border
visible: still overflow and visiblehidden: hide the overflow part, but still can get back the full contentclip: clip the overflow content; use overflow-clip-margin: ; to decide how much of the overflow part is allowed to be presentedscroll: present a scroll barauto: make the scroll bar visible when overflow and disappear when it's not
display::
block: present a block around its content with a set height and width; 2 blocks will display in 2 individual lineinline: present a block just surround the content even when set a new height and width; 2 consecutive inline can display in the same lineinline-block: like inline but can adjust the size of blocknone: nothing display even the content
visibility::
hidden: the box and content will be invisible but still take up the space as much as it does show up
position::
relative: change the position of objects due to their original positions (ex +-100px from the left)fixed: keep the position unchange compare to the screen; can use top bottom left right to adjust it (ex left: 100px; bottom 50px;absolute: adjust the position relative to the previous blocksticky: adjust the position base on scroll positionstatic: set to default position
pseudo class: add to selectors to modify the behavior of an element when in certain state:
hover,active,visitedpseudo elements:
ex::first-letter: adjust the first letter in text exex::first-line: adjust the first line in paragraph exex::selection: adjust the feedback when selecting some text or the whole paragraph exex::before: addcontent:""to the front of exex::afterli::marker: change the default marker of a list
pagination: devide web page to multiple pages and numbers given
Create drop-down menu: a menu drop when click a button
Icon : insert icon
Create navigation bar
Flex box
Last updated