By GokiSoft.com| 14:35 05/12/2020|
Học HTML5 - CSS3

[Share Code] Tìm hiểu CSS - Format Text trong HTML/CSS/JS - Lập trình HTML/CSS/JS

#style.css


body {
	background-color: #d1f0bd;
	background-image: url('https://media.travelmag.vn/files/hoangvantai/2020/04/27/hot-girl-dong-phuc-1-1347.jpeg');
	background-size: cover;
}

h3 {
	background-color: yellow;
}

ul li {
	color: red;
	font-size: 16pt;
}

ol li {
	color: white;
	font-size: 20pt;
}
.text-size-50 {
	font-size: 50pt;
	background-color: blue !important;
	padding-left: 100px;
	padding-top: 50px;
	padding-bottom: 200px;
	padding-right: 50px;
	text-align: right;
	text-decoration: underline;
}

.text-size-50:hover {
	background-color: yellow !important;
}

.bg-red {
	background-color: red;
	padding: 30px;
}

#abc {
	background-color: black;
	text-transform: uppercase;
	font-size: 100pt;
	margin-top: 50px;
	margin-left: 160px;
	margin-bottom: 200px;
	margin-right: 100px;
	text-align: center;
	font-style: italic;
}


#test.html


<!DOCTYPE html>
<html>
<head>
	<title>TEST tutorial</title>
	<meta charset="utf-8">
	
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<h3>OKOK</h3>
</body>
</html>


#vidu.html


<!DOCTYPE html>
<html>
<head>
	<title>HTML/CSS/JS Tutorial</title>
	<meta charset="utf-8">

	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<h3>Welcome to learn HTML/CSS/JS</h3>
	<h3>ABC</h3>
	<h3>sdwerwe</h3>
	<h3>werwerwer</h3>
	<ul>
		<li title="Vi du 1">Vi du 1</li>
		<li title="Vi du 2">Vi du 2</li>
		<li>Vi du 3</li>
		<li>Vi du 4</li>
		<li>Vi du 5</li>
		<li>Vi du 6</li>
	</ul>
	<ol>
		<li class="bg-red text-size-50">Vi du 1</li>
		<li id="abc">Vi du 2</li>
		<li>Vi du 3</li>
		<li class="bg-red">Vi du 4</li>
		<li>Vi du 5</li>
		<li class="bg-red">Vi du 6</li>
	</ol>
</body>
</html>


#vidu2.html


<!DOCTYPE html>
<html>
<head>
	<title>Test HTML/CSS/JS</title>
	<meta charset="utf-8">
	<style type="text/css">
		p {
			padding: 50px;
			text-align: justify;
			text-indent: 50px;
			word-spacing: 10px;
			text-transform: uppercase;
			border: solid black 3px;
			border-top: dotted blue 5px;
			border-left: solid red 5px;
		}
	</style>
</head>
<body>
	<p>
		Thượng tá Huỳnh Trung Phong - Trưởng phòng PC08 cho biết năm 2020, tình hình trật tự an toàn giao thông trên địa bàn TP có nhiều biến chuyển tích cực, nhưng tình trạng thanh thiếu niên tụ tập thành tốp biểu diễn, đua xe rất nguy hiểm cho người tham gia giao thông và cho chính bản thân họ.
Qua rà soát, PC08 xác định các nhóm đua xe thường hẹn nhau qua mạng xã hội, thấy lực lượng kiểm tra thì bỏ chạy tán loạn nên việc nắm tình hình, xử lý của CSGT gặp nhiều khó khăn. Do đó, lần này PC08 phối hợp với các đơn vị khác thuộc Công an TP để mở đợt cao điểm phòng chống tụ tập, đua xe từ nay đến cuối năm.
	</p>

	<img src="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_160x56dp.png" width="10px" style="max-width: 2000px; min-width: 500px; max-height: 1000px; min-height: 500px;">
</body>
</html>


Phản hồi từ học viên

5

(Dựa trên đánh giá ngày hôm nay)