0% found this document useful (0 votes)
38 views1 page

CSS Selector (Property: Value) Body (Background-Color: Red)

The document provides examples of HTML and CSS, illustrating three types of CSS: Internal, External, and Inline. It shows how to set background colors and styles for elements using different methods. Additionally, it includes a CSS rule for paragraph text alignment and font family.

Uploaded by

Thein Zaw Min
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views1 page

CSS Selector (Property: Value) Body (Background-Color: Red)

The document provides examples of HTML and CSS, illustrating three types of CSS: Internal, External, and Inline. It shows how to set background colors and styles for elements using different methods. Additionally, it includes a CSS rule for paragraph text alignment and font family.

Uploaded by

Thein Zaw Min
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

HTML CSS

<tag attribute=”value”> selector {property: value}


<body bgcolor=”red”> body {background-color: red}

<html>
<head> title>Internal CSS </title>
<style type="text/css">
body {background-color: red}
Internal CSS </style>
</head>
<body>
</body>
</html>
<html>
<head>
<title>External CSS by WWM</title>
External CSS <link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
</body>
</html>
<html>
<head> title>Inline CSS by WWM</title>
</head>
Inline CSS <body>
<p style="color: red; margin-left: 50%">This is Paragraph</p>
</body>
</html>

p {text-align: center; font-family: "sans serif"}

You might also like