Home

Showing posts with label BOOTSTRAP with CSS3 and HTML5. Show all posts
Showing posts with label BOOTSTRAP with CSS3 and HTML5. Show all posts

Saturday, 24 January 2015

HOW TO WRITE HTML

<html>
<head>

<title>   My first html page </title>
</head>

<body>

 <h1> Hello World </h1>
<p>hello this is my first html page </p>

</body>
</html>


copy and paste these lines in txt file and save as NAME = "myfirstfile.html"
Now open the file and enjoy :)

Thursday, 22 January 2015

ID selector and class selector

Class selector is used when we want to apply style on many items that contain respective class
but ID selector is used for unique elements.

<p class="newclass">  </p>

<p class="newclass">  </p>

<p id="pid">    </p>


in css file

#pid{

/*we use # sign for ID selector and it will e unique for a element  */

}

.newclass{
/* (dot) . sign is used for class and we can assign a class to many elements. */

}

Change in Bootstrap class

If you want to change  "your build in bootstrap class" suppose you want to change the background color of "container" class,

then make your custom css file suppose it is custom.css
in html <head> tag
// link bootstrap build in style sheet here

//and your custom.css below the bootstrap stylesheet
</head>      close headtag
And if you want to change container class

then in custom.css file

.container{
     // write new style here
}


it will apply changes in your html file and new style will be appear.