Welcome Guest! (App Version 3.1)

websitnero logo name

My First Program

Writing First Program in CSS

CSS is pretty easy to implement. We would be using inline styles in our examples (styles written in the head section of a web page). Here, in the example below, we are setting the background of a div tag to yellow. To do so, first add a div in the body, and put its background property to yellow, within the styles tags, present in the head section.

Example

<head>
<style>
  div{
  background:yellow;
}
</style>
</head>

<body> 
  <div>This is a div.</div>
</body> 

In this example you will see that there is a div and its background is of color yellow as mentioned in the example. Background and color are most easy ways to test CSS for any element.

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.