Thẻ p là thẻ chứa đoạn văn,
sau khi kết thúc thẻ p, nội dung tiếp theo sẽ được viết xuống dòng và cách một dòng.Ví dụ thẻ p:
--------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<p>
nguyenquangtuyen048.blogspot.com
</p>
<p>
nguyenquangtuyen048.blogspot.com
</p>
<p>
nguyenquangtuyen048.blogspot.com
</p>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------
Kết quả:
Thẻ p |
Thẻ DIV là một thẻ lưu trữ đoạn văn,
nhưng nội dung sau thẻ div chỉ bắt đầu từ dòng sau đó và không cách một dòng giống thẻ p.Ví dụ thẻ div trong HTML:
--------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div>
nguyenquangtuyen048.blogspot.com
</div>
<div>
nguyenquangtuyen048.blogspot.com
</div>
<div>
nguyenquangtuyen048.blogspot.com
</div>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------
Comments
Post a Comment