Tuesday, November 21, 2017

Beginning of CSS


As mentioned before CSS is a language which is used to design a web page. CSS starts with a <style>  tag and ends with </style> tag.CSS can be included in the HTML page.

There are 3 types to add CSS to HTML file.
    1. Inline - by using the style attribute in HTML elements.
   2. Internal - by using a <style> element in the <head> section.
   3. External - by using an external CSS file

Just try this  CSS. 


<html>
<head>
<style>

body {
    background-color: lightblue;
}

h1 {
    color: white;
    text-align: center;
}

p {
    font-family: verdana;
    font-size: 20px;
}
</style>
</head>
<body>

<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>

</body>
</html>

No comments:

Post a Comment

Why We Need Web Sites Imagine you are a web designer. You are meeting some people after long time, may be your friends or relations. Whe...