Biểu định kiểu Internal CSS được sử dụng để thêm một kiểu duy nhất cho một tài liệu. Nó được định nghĩa trong phần <head> của trang HTML bên trong thẻ <style>.

Thí dụ:

Thí dụ:
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: linen;
}
h1 {
color: red;
margin-left: 80px;
}
</style>
</head>
<body>
<h1>The internal style sheet is applied on this heading.</h1>
<p>This paragraph will not be affected.</p>
</body>
</html>

إرسال تعليق
إرسال تعليق