วันอาทิตย์ที่ 6 สิงหาคม พ.ศ. 2560

styles

 styles

อันที่1
<!DOCTYPE html>
<html>
<body>
<p style="color:blue">This is a paragraph.</p>
</body>
</html>

อันที่2
<!DOCTYPE html>
<html>
<body>

<p style="font-family:courier;">"courier"</p>
</body>
</html>

อันที่3
<!DOCTYPE html>
<html>
<body>
<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>
</body>
</html>


อันที่4
<!DOCTYPE html>
<html>
<body>
<h1 style="font-size:50px;">This is a heading</h1>
<p style="font-size:50px;">This is a paragraph.</p>
</body>
</html>

อันที่5
<!DOCTYPE html>
<html>
<body style="background-color:yellow">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

อันที่6
<!DOCTYPE html>
<html>
<body>
<h1 style="text-align:center;">Centered Heading</h1>
<h2 style="text-align:center;">This is a paragraph</h2>
<p style="text-align:center;">This is a paragraph</p>
<p style="text-align:center;">This is also paragraph</p>
</body>

</html>

ไม่มีความคิดเห็น:

แสดงความคิดเห็น