By GokiSoft.com| 14:46 09/10/2020|
Học HTML5 - CSS3

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

#style.css


body {
	background-image: url('https://media.ed.edmunds-media.com/rolls-royce/phantom/2018/oem/2018_rolls-royce_phantom_sedan_base_fq_oem_2_1600.jpg');
	background-repeat: no-repeat;
	background-size: cover;
}

.text-red {
	mau: red !important;
}

h1, ul {
	mau: white;
	text-align: center;
	text-transform: capitalize;
	text-decoration: underline;
}

h1:hover {
	background-mau: red;
}

h1:active {
	background-mau: yellow;
}

img {
	width: 250px; 
	min-width: 500px; 
	max-width: 1000px;
}

ul {
	mau: yellow;
	font-size: 20px
}

.text-white {
	mau: white;
}

#li_abc {
	text-transform: uppercase;
	text-decoration: underline;
}

p {
	mau: white;
	text-align: justify;
	width: 400px;
	/*margin-left: 20%;*/
	margin: 10%;
	padding: 50px;
	padding-left: 100px;
	border: solid blue 5px;
	text-indent: 100px;
	word-spacing: 5px;
}
/*tag => class => id*/


#test.html


<!DOCTYPE html>
<html>
<head>
	<title>CSS Tutorial</title>
	<style type="text/css">
		body {
			background-image: url('https://media.ed.edmunds-media.com/rolls-royce/phantom/2018/oem/2018_rolls-royce_phantom_sedan_base_fq_oem_2_1600.jpg');
			background-repeat: no-repeat;
			background-size: cover;
		}

		.text-red {
			mau: red !important;
		}

		h1 {
			mau: white;
			text-align: center;
			text-transform: capitalize;
			text-decoration: underline;
		}

		img {
			width: 250px; 
			min-width: 500px; 
			max-width: 1000px;
		}

		ul {
			mau: yellow;
			font-size: 20px
		}

		.text-white {
			mau: white;
		}

		#li_abc {
			text-transform: uppercase;
			text-decoration: underline;
		}
		/*tag => class => id*/
	</style>
</head>
<body>
	<h1>Welcome to learn HTML5/CSS3</h1>
	<h1 class="text-red">ABC</h1>
	<ul>
		<li class="text-white">Vi du 1</li>
		<li>Vi du 2</li>
		<li class="text-white text-red">Vi du 3</li>
		<li id="li_abc">Vi du 4</li>
		<li>Vi du 5</li>
	</ul>
	<img src="https://tinbanxe.vn/uploads/news/2020_04/rolls-royce/phantom/danh-gia-xe-rolls-royce-phantom-ve-dau-xe.jpg">
</body>
</html>


#test1.html


<!DOCTYPE html>
<html>
<head>
	<title>CSS Tutorial</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
	<h1>Welcome to learn HTML5/CSS3 - sdjkksdfkdshfdksj</h1>
	<h1 class="text-red">ABC</h1>
	<p>
		As you can see from the examples above, it might be a good idea to create a proper random function to use for all random integer purposes.

This JavaScript function always returns a random number between min (included) and max (excluded):

As you can see from the examples above, it might be a good idea to create a proper random function to use for all random integer purposes.

This JavaScript function always returns a random number between min (included) and max (excluded):

As you can see from the examples above, it might be a good idea to create a proper random function to use for all random integer purposes.

This JavaScript function always returns a random number between min (included) and max (excluded):

	</p>
	<!-- <h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1>
	<h1 class="text-red">ABC</h1> -->
	<ul>
		<li class="text-white">Vi du 1</li>
		<li>Vi du 2</li>
		<li class="text-white text-red">Vi du 3</li>
		<li id="li_abc">Vi du 4</li>
		<li>Vi du 5</li>
	</ul>
	<img src="https://www.autocar.co.uk/sites/autocar.co.uk/files/1-rolls-royce-phantom-2018-review-otr-front.jpg">

<!-- <script type="text/javascript">
	var colorList = ['red', 'blue', 'yellow', 'green', 'black', 'pink'];

	setInterval(function() {
		var tags = document.getElementsByTagName('h1')
		for (var i = tags.length - 1; i >= 0; i--) {
			rad = Math.floor(Math.random() * colorList.length);
			tags[i].style.backgroundColor = colorList[rad]
		}
	}, 50)
</script> -->
</body>
</html>


#vidu.html


<!DOCTYPE html>
<html>
<head>
	<title>HTML Tutorial</title>
</head>
<body>
	<a href="https://gokisoft.com" target="_blank">gokisoft.com</a>
	<br/>
	<a href="tel:0967025996">Goi Dien</a>
	<br/>
	<a href="mailto:tranvandiep.it@gmail.com">Gui Mail</a>
</body>
</html>


Tags:

Liên kết rút gọn:

https://gokisoft.com/1979

Bình luận