新聞動態(tài)
HTML + CSS 為何得不到編程界的認可?
行業(yè)資訊 發(fā)布者:cya 2019-12-18 08:52 訪問量:171
作者 | Amadou Ibrahim
譯者 | 彎月,責編 | 郭芮
出品 | CSDN(ID:CSDNnews)
如果我在用HTML+CSS編程,那么,我能算是名開發(fā)人員嗎?
超文本標記語言(英語:HyperText Markup Language,簡稱:HTML)是一種用于創(chuàng)建網(wǎng)頁的標準標記語言。
<html>
<head>
<!-- Metadata goes here -->
</head>
<body>
<!-- Page content goes here -->
</body>
</html>
層疊樣式表(英語:Cascading Style Sheets,縮寫:CSS;又稱串樣式列表、級聯(lián)樣式表、串接樣式表、階層式樣式表)是一種用來為結(jié)構(gòu)化文檔(如HTML文檔或XML應用)添加樣式(字體、間距和顏色等)的計算機語言。
box-sizing: border-box; max-width: 100%;
}
body{
font-size: 1.25rem; padding-bottom: 70px;
background: #fff;
}
## Set a new varibale age to 0.
age = 0
## Then another varibale required_age to 15.
required_age = 15
## Print this message "What is your age?" to the user
puts "What is your age?"
## Get the user input and store it in age. Type 14
age = gets.chomp.to_i
## Print this message "You are 14 year's old" to the user
puts "You are #{age} year's old"
## Set a new varibale age to 15.
age = 15
## Then another varibale required_age to 16.
required_age = 16
## check if the user age is less than 16
if age < 16
## If the condition is checked, print the message "Sorry, you can't pass the driver license!" to the user
puts "Sorry, you can't pass the driver license!"
else
## If the condition is not checked, print this message "Great! You can pass your driver license" to the user
puts "Great! You can pass your driver license"
end
## Set a variable "counter" to zero
counter = 1
## Iterate through the loop as long as "counter" is less than 5
while counter <=5 do
## Print "Get your driver license with LicenseGuru"
puts "Get your driver license with LicenseGuru"
## Add 1 to the current value of counter
counter+=1
end
數(shù)據(jù)結(jié)構(gòu)(英語:data structure)是計算機中存儲、組織數(shù)據(jù)的方式。
// Set the background to white color
background:#fff;
// Set the font size to 20px
font-size: 20px;
// Set the background to yellow
background:yellow;
// Set the font size to 14px
font-size:14px
}
// Style 1
}
@media screen and (max-width: 900px) {
// style 2
}
navbar{
display:flex;
}
}
div { float: left; } /* alternative styles */
}
font-weight:700;
display: block;
padding: 15px;
margin-bottom:10px;
background:#333;
color:white;
text-align: center;
text-decoration: none;
}
li a.active{
background:red;
color:white;
}
【推薦閱讀】
文章連接: http://m.hsjyfc.com.cn/hyzx/646.html
版權(quán)聲明:文章由 晨展科技 整理收集,來源于互聯(lián)網(wǎng)或者用戶投稿,如有侵權(quán),請聯(lián)系我們,我們會立即刪除。如轉(zhuǎn)載請保留