Để chọn phần tử, hãy sử dụng bộ chọn phần tử. Bạn có thể thử chạy đoạn mã sau để chọn các phần tử
:
Ví dụ
<!DOCTYPE html>
<html>
<head>
<style>
p {
color: blue;
background-color: orange;
}
</style>
</head>
<body>
<h1>Demo Website</h1>
<h2>Learning</h2>
<p>Tutorials on web dev, programming, database, networking, etc.</p>
<p>Every tutorials has lessons with illustrations and figures.</p>
</body>
</html>