html and CSS Flashcards
how to make the block of text to the middle by CSS
shorter method:
in {
margin: 10px auto;
longer method
margin-left: auto;
margin-right: auto
display : flex, What is the difference of:
jusify-content: center;
align-items: center;
jusify-content: center; is 橫向中間,
usually justify-content is about horizontal
align-items: center; is 直向中間
usually justify-content is about vertical
(REMEMBER, it is NOT align-content
flex: 1
或者
flex: 2
有什麼用途
代表所占份額
height: auto 有什麼用途
會根據裡面的內容放大放小
margin: 10px 20px 30px 40px ;
margin: 10px 20px;
margin: 20px;
margin: 10px 20px 30px
方向是什麼
順時針, 上右下左
第1個是上下, 這個是左右
4個方向都是
上 左右 下
比較margin and padding 的異同
padding: 10px
Margin是box 外面, padding 是 box 裡面的東西跟box邊緣的距離
運作的方向跟margin一模一樣
border: solid 1px #000000
什麼意思
加一條黑線
have display: flex; and without it, what’s the difference?
打橫直下?
have display: flex; 打橫嚮右
without it,直下
flex-wrap: wrap;
box 如果空間不足放裡面的item, 又不想item變形, 用這個item 會往下一行下一行的排列
what is the default of justify-content: ????
justify-content:flex-start;
justify-content: space-betwenn;
II
@media screen and (max-width: 480px){
}
一般手機的size 不會超過 480px.
如果不超過的話就會執行花括號
Can we just the flex direction?
yes, just :
flex-direction: column;
relationship of flex direction?, justify-content, align-items?
flex-direction; will determine it,
如果我要把margin 變成0, 但在於itemi寫了零又變不到, 通常怎麼做
在於style , 裡面設置mirgin: 0;
為什麼標題最好使用h1
因為這是給搜索引擎看的
in display: flex; , what can I just use taxt-align: center; in other text?
No, because after display flex, the text is forever in justified contented designated by display: flex;, the range of h1 become very small
並非universal (btw idk why?)
one of the usage of flex : 1?
If I want two items in one box, One item in the middle and one item on the right side,
如何弄一個hyper link
<a>資料來源醫管局</a>
如何令hyper link消失
a {
text-decoration: none;
}
whats da use of <br></br>
next line
how to type < and > in form of text in CSS?
you just <p>< 1 小時</p> (less than)
> = greater than
what does it mean by an item having
width: 50%?
the item 佔用某個方向一半的頁面
do CSS accepts decimal?
sometimes YES
Dance Time: (Score: 0)
為什麼使用span 而不用divDance Time: (Score: 0)
所以使用score = document.querySelector 後面的 Parameter要使用什麼?Hello World
Will it really have the color? Since style is inside- or
- and
- : ul is unordered list while ol is ordered list with number.
: A tag specific for holding paragraph content
: A horizontal separator. : the header part for a webpage. Please don't mix this one with the tag. : the footer part for a webpage. : the navigation part for a webpage.,
,
,
,
and
: Headings with different level of weights.
is the biggest and
is the smallest. Inline elements Within the text, there are a lot of inline tags that allows developers to decorate the text for different features. : The most generic inline element that is usually used for styling purpose. : Link to external web page. : Bold text : italic text
: Line breaker.