Sunday 15 April 2018

Website Design in HTML and CSS


<html>
<head>
<title>Castor Classes</title>
<style type=”text/css”>
body{
background-color:gray;
font-family:Arial,Helvetica,sans-serif;
}
*
{
margin:0;
padding:0;
}
#wrapper{
border:1px solid;
width:970px;
padding:2px;
background-color:gray;
}
#header{
border:1px solid;
width:100%;
background-color:white;
}
#header ul{
list-style-type:none;
}
#header ul li{
border:1px solid;
float:left;
color:sky;
background-color:green;
width:190px;
text-align:center;;
height:30px;
line-height:30px;
}
#header ul li a{
text-decoration:none;
}
#header ul li:hover{
background-color:blue;
}
#image{
width:100px;
}
#bodypart{
border:1px solid;
margin-top:10px;
}
#bodyleft{
border:1px solid;
float:left;
width:250px;
}
#bodyleft h2{
background-color:pink;
color:sky;
padding:4px;
}
#bodyleft ul{
list-style-type:none;
}
#bodyleft ul li{
border:1px solid;
padding:5px;
height:30px;
line-height:20px;
}
#bodyleft ul li a{
color:black;
text-decoration:none;
}
#bodyleft ul li:hover{
color:blue;
background-color:yellow;
}
#bodyright{
border:1px solid;
width:1070px;
float:left;
margin-left:2px;
padding-right:10px;
}
#bodyright h2{
background-color:black;
color:red;
padding:2px;
}
#bodyright p{
padding:6px;
padding-right:10px;
font:20px;
text-align:justify;
}
#footer{
border:1px solid;
background-color:pink;
color:blue;
text-decoration:none;
padding:1px;
margin-top:1px;
}
#footerright{
border:0px solid;
width:150px;
margin-left:10px;
float:right;
margin-bottom:3px;
padding:1px;
text-decoration:none;
}

</style>
</head>
<body>
<div id=”wrapper”>
<div id=”header”>
<ul>
<li><a href=”#”> Home</a></li>
<li><a href=”#”>About Us</a></li>
<li><a href=”#”>Courses</a></li>
<li><a href=”#”>Contact</a></li>
<li><a href=”#”>Online Video</a></li>
</ul>
<div id=”image”></div>
<img src=”html/image/online.jpg”/></div>
</div>
<div id=”bodypart”>
<div id=”bodyleft”>
<h2>Courses</h2>
<ul>
<li><a href=”http://castorclasses.com/courses/matlab-program-2/”>MatLab </a></li>
<li><a href=”http://castorclasses.com/courses/c-language/”>C Language</a></li>
<li><a href=”http://castorclasses.com/php-programs/”>PhP </a></li>
<li><a href=”http://castorclasses.com/courses/java/”>Java </a></li>
<li><a href=”http://castorclasses.com/html-and-css/”>HTML and CSS </a></li>
<li><a href=”#”> C++</a></li>
</ul>
</div>
<div id=”bodyright”>
<h2>Welcome to our online Courses (Castor Classes)</h2>
<p>This is provide a online classes for all subject.Online courses are revolutionizing formal education,
and have opened a new genre of outreach on cultural and scientific topics. These courses deliver a series of lessons to a web browser or mobile device,
to be conveniently accessed anytime, anyplace.</p>
<p>An online course is designed as a built environment for learning.Deciding to study online can bring up a whole range of emotions –
excitement, pride and maybe a little apprehension –
but don’t worry. With Open Colleges,
you’ll have all the flexibility and support you need to get through your course and create a new future.
Find out more about the benefits of studying online with us below,
discover more about how online learning works, or simply go ahead and get started.</p>
<p>This is provide a online classes for all subject.Online courses are revolutionizing formal education, but don’t worry. With Open Colleges,
you’ll have all the flexibility and support you need to get through your course and create a new future.
Find out more about the benefits of studying online with us below,
and have opened a new genre of outreach on cultural and scientific topics. These courses deliver a series of lessons to a web browser or mobile device,
to be conveniently accessed anytime, anyplace.</p>
</div>
<br clear=”all”/>
</div>
<div id=”footer”>
<h3>About Us</h3>
<li><a href=”http://castorclasses.com/contact-us/about-us/introduction/”>Introduction</li>
<li><a href=”http://castorclasses.com/contact-us/about-us/mission-and-vision/”>Mission and Vision</li>
<li><a href=”http://castorclasses.com/contact-us/about-us/management/”>Managements</li>
<div id=”footerright”>
<h4>Thank You</h4>
<li>Castor Classes</li>
</div>
<br clear=”all”/>
</div>
</div>
</body>
</html>

How to set style of list in CSS?


—>This is use for give some decoration of list.

Syntax:-

ul{
list-style-type:circle OR squre OR upper roman OR upper alpha;
list-style-image:url(‘folder name’);
}
ul li{
line-height:30px;
}
ul li:hover{
margin-left:10px;
}
ul li a{
text-decoration:none;
}

Example:-

<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/CSS”>
ul{
list-style-type:circle OR squre OR upper roman OR upper alpha;
list-style-image:url(‘folder name’);
}
ul li{
line-height:30px;
}
ul li:hover{
margin-left:10px;
}
ul li a{
text-decoration:none;
}
</head>
<body>
<ul>
<li>
<a href=”#”>HOME</a></li>
<a href=”#”>ABOUT US</a></li>
<a href=”#”>SERVICES</a></li>
<a href=”#”>CONTACT US</a></li>
</UL>
</body>
</html>

How to make element floating from CSS?


 Image arrangement

Example:-

<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/CSS”>
.image{border:1px solid;
wedth:30px;
height:100px;
float:left;
margin:left;
}
</head>
<body>
<div class=”image”>
<img src=”flower.jpg” width=”100″ height=”100″/>
</div>
<div class=”image”>
<img src=”flower.jpg” width=”100″ height=”100″/>
</div>
<div class=”image”>
<img src=”flower.jpg” width=”100″ height=”100″/>
</div>
<br clear=”all” // This is use for next line.
</body>
</html>

Show Display Inline function in CSS


Example:-

<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/CSS”>
#div{border:1px solid;
wedth:30px;
background-color:blue;
color:white;
display-inline:block;
</head>
<body>
<div id=”div1> The Contents goes here
</div>
</body>
</html>

Negation in CSS with Display tag



–> Here, we are see a navigation of menu.  
Syntax:-
li{display:inline;
padding-left:20px;
padding-right:20px;
}


Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/CSS”>
li{display:inline;
padding-left:20px;
padding-right:20px;
}
</head>
<body>
<ul>
<li>HOME</li>
<li>ABOUT US</li>
<li>CONTACT US</li>
</ul>
</div>
</body>
</html>

Visibility and Display Text in CSS


  • We are see a visibility of any div and display of div.
Syntax:-
#div2{
border:1px solid;
width:30px;
height:100px;
Visibility:visible;   //This is a use a visibility.
}
#div3{
border:1px solid;
width:30px;
height:100px;
Display:none;     // Here, This is use a display syntax.
}
Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css”>
#div1{
border:1px solid;
width:30px;
height:100px;
}
#div2{
border:1px solid;
width:30px;
height:100px;
Visibility:visible;
}
#div3{
border:1px solid;
width:30px;
height:100px;
Display:none;
}
</head>
<body>
<div1 id=”div1″></div>
<div1 id=”div2″></div>
<div1 id=”div3″>
</div>
</body>
</html>

How to use div in Center?


  • Here we are use a any heading on center.
Syntax:-
#div1{border:1px solid;
width:400px;
height:70px;
background-color:blue;
margin:auto;
}
Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
#div1{border:1px solid;
width:400px;
height:70px;
background-color:blue;
margin:auto;
}
</style>
</head>
<body>
<div id=”div1″>
Hello  Friends!!!!
</div>

</body>
</html>

Padding in CSS


  • Padding is a space between edges of element and the element contents.
Syntax:-
#div1{border:1px solid;
width:400px;
height:70px;
background color:blue;
color:white;
padding-left:10px;
padding-top:10px; OR padding:20px;
}

Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
#div1{border:1px solid;
width:400px;
height:70px;
background color:blue;
color:white;
padding-left:10px;
padding-top:10px; OR padding:20px;
}
</style>
</head>
<body>
<div id=”div1″>
Hello  Friends!!!!
</div>

</body>
</html>

Margin Property in CSS


  • In this slide we are see a how to arrange  two box in CSS.
Syntax:-
#div1{border:1px solid;
width:400px;
height:70px;
margin-top:100px;
margin-left:100px;
}


Example:-

<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
#div1{border:1px solid;
width:400px;
height:70px;
margin-top:100px;
margin-left:100px;
}
#div{border:1px solid;
width:400px;
height:70px;
margin-bottom:100px;
margin-right:100px;
}
</style>
</head>
<body>
<div id=”div1″>
Hello  Friends!!!!
</div>
<div id=”div2″>
Hello  Friends!!!!
</div>
</body>
</html>

Overflow Property in CSS


  • In this slide we are see a overflow property in CSS.
Syntax:-
#test{border:1px solid;
width:400px;
height:70px;
overflow:auto/scroll;
}


Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
#test{border:1px solid;
width:400px;
height:70px;
overflow:auto/scroll;
}
</style>
</head>
<body>
<div id=”test”>
Hello  Friends!!!!
</div>
</body>
</html>

Width and Height in CSS


  • Here, we are set a width and height of paragraph in CSS.
Syntax:-
#test{
border:1px solid;
width:400px;
height:70px;  OR
Max-height:70px
}


Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
#test{
border:1px solid;
width:400px;
height:70px;  OR
Max-height:70px
}
</style>
</head>
<body>
<p>
Hii My name is Castor Class.I am provide a online Classes.
</p>
</body>
</html

CSS Border Property


  • In this slide we are set a property of border in Heading.
Syntax:-
h2{border:1px dash/double/dotted/inset/outset green;
}


Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
h2{border:1px dash/double/dotted/inset/outset green;
}
</style>
</head>
<body>
<h1>CASTORCLASSES</h1>
</body>
</html>

Class Selector


  • Class Selector is use one or more element.
  • Here, we are see a multiple text in different form.
Syntax:-
.para{
color:white;
background color:blue;
}
.services{
color:white;
background:black;
width:140px;
height:30px;
margin:10px;
}


Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
.para{
color:white;
background color:blue;
}
</style>
</head>
<body>
<p class=”para”>This is paragraph1</p>
<p class=”para”>This is paragraph2</p>
<p>This is paragraph3</p>
</body>
</html>

Example2:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
.services{
color:white;
background color:black;
width:140;
height:30px;
margin:10px;
</style>
</head>
<body>
<div class=”services”>
Hardware
</div>
<div class=”services”>
Software
</div>
<div class=”services”>
Networking
</div>
</body>
</html>

Saturday 14 April 2018

Id Selector / Use a Header and Footer


  • Id selector is a single element specified.
  • Here, we are see a div command.
Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
# p1{color:red;}
#header{
border:1px solid;
}
</style>
</head>
<body>
<div id=”header”>
This is a header
</div>
<p id=”p1″>this is paragraph</div>
</body>
</html>

How to Link Style in CSS?


  • Here, we are see a all Link decoration.
Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
a{color:blue;text-transform:uppercase;}
a:visited{color:green;}
a:active{color:white;background-color:black;}
</style>
</head>
<body>
<a href=”#”>This is link 1.</a>
</body>
</html>

Text Decoration / Align / Text indent


  • Here, we are decorate a plain text.
Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
a{
color:red;   //Set Color
text-align:left;     //Set Align
text-decoration:uppercase/lowercase/blink;   //Set text decoration
text-transform:uppercase/lowercase/capitalize;   //Set text transform
text-indent:100px;       //Set text indent
}
</style>
</head>
<body>
<a href=”#”>This is My first Paragraph </a>
</body>
</html>

Background image


  • Set background image.
Example:-
<html>
<head>
<title>CastorClass.com</title>
<style type=”text/css”>
body{background-image:url (‘image/image.jpg’);    ///This is set a image link.
background-repeat:no repeat; //This is use a not repeat image.
background-position:top center;  OR background-position:top right;   //This is set a image position
}
</style>
</head>
<html>

Use background color


  • This is use for background color.

Example:-
<!Doctype html>
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
body{background-color:red;}
h1{bacground-color:red;
color:white;
}
p<background-color:yello;color:pink;}
</style>
</head>
<body>
<h1>hello everyone</h1>
<p>This is very good</p>
</body>
</html>

How to use CSS in HTML?


we are already study in starting CSS.In this slide we will use a CSS is coding is another file.Because we are write same file that is very complicated.

Example:-
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
h1{color:red; bacground:red;}        //This is write a another File.
</style>
</head>
<body>
<h1>hello everyone</h1>
</body>
</html>

Introduction of CSS

CSS stands for Cascading Style Sheets. It is a style sheet language which is used to describe the look and formatting of a document written in markup language. It provides an additional feature to HTML. It is generally used with HTML to change the style of web pages and user interfaces. 

It can also be used with any kind of XML documents including plain XML, SVG and XUL.

CSS is used along with HTML and JavaScript in most websites to create user interfaces for web applications and user interfaces for many mobile applications.

Syntax:-
<style type=”text/css”>
h1{color:red;}
</style>

Example:-
<html>
<head>
<title>CastorClasses.com</title>
<style type=”text/css>
h1{color:red;}
</style>
</head>
<body>
<h1>hello everyone</h1>
</body>
</html>

Use a Text box / Button / Radio box / Check box.


  • In text box we are use a only plain text.
  • We know everyone how to use a button.
  • Radio button is use for choose a one option.
  • Check box is use for select multiple option.
Syntax:-
<form>
<input type=”text”/>
<input type=”button” “value=show”/>
<input type=”radio” name=”gender”/>Male<input type=”radio” name=”gender”/>Female
<input type=”Check box”/>English<input type=”Check box”/>hindi
</form>


Example:-
<html>
<head>
<title>Welcome</title
</head>
<body>
<form>
<input type=”text”/>
<input type=”button” “value=show”/>
<input type=”radio” name=”gender”/>Male<input type=”radio” name=”gender”/>Female
<input type=”Check box”/>English<input type=”Check box”/>hindi
</form>
</body>
</html>

List

Type of List

  • Unorder list
  • order list
  • Definition list
Syntax:-
<form>
  • <ul type=”circle”>    //Unorder list
  • <li>item1</li>
  • <li>item2</li>
  • <li>item3</li>
  • </ul>
  1. <ol type=”i”>      //order list
  2. <li>item1</li>
  3. <li>item2</li>
  4. <li>item3</li>
  5. </ol>
<dl>                                             ///Definition list
<df>CastorClasses</df>
<dd>MatLab</dd>
<dd>Java</dd>
</dl>
</form>

Example:-
<html>
<head>
<title>Welcome everyone </title>
</head>
<body>
<form>
<ul type=”circle”>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
<ol type=”i”>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ol>
<dl>
<df>CastorClasses</df>
<dd>MatLab</dd>
<dd>Java</dd>
</dl>
</form>
</body>
</html>

How to take YouTube video in HTML?


Example:-
<html>
<head>
<title>Irawen</title>
</head>
<body>
<iframe go to youtube site and click a share button then use embedded key and copy all link>
OR
<embed height=”160″ width=”220″ src=”Link copy” type=”application/X=shockwave=flasn”>
</embe>
</body>
</html>

Cell Padding / Cell Spacing


  • Cellpadding is the amount of space between the outer edges of the table cell and the content of the cell.
  •  Cellspacing is the amount of space in between the individual table cells.
Syntax:-
<table cellpadding=”10″>   //This is for cell padding.
<table cellspacing=”10″>    // This is cell spacing.


Example:-
<html>
<head>
<title>Welcome CastorClasses </title>
</head>
<body>
<table>
<tr>
<td>name</td>
<td>age </td>
<td>gender </td>
</tr>
<tr>
<td>ABC</td>
<td>26</td>
<td>Male </td>
</tr>
<tr>
<td>DEF</td>
<td>24</td>
<td>Female </td>
</tr>
<table cellpadding=”10″>
<table cellspacing=”10″>
</table>
</body>
<html>

Table Heading / Col span / row span


  • In table heading we give a heading of table.
  • In col span we give a heading of column.
  • In row span we are give a heading of rows.

Syntax:-
<th>speed </th>     //This is a table heading.
<th colspan=”2″> My bike speed </th>   //This is for col span.
<td rowspan=”3″>10% discount for all Indian </td>   //This is for row span.

Example:-
<html>
<head>
<title>CastorClasses.com </title>
</head>
<body>
<tr>
<th> Sr.no. </th>
<th> speed </th>
<th> age </th>
</tr>
<table border="1″>
<tr>
<th col span="2″>my internet plans </th>
<td rowspan="3″> 10% for discount </td>
</body>
</html>

Create Table


  • Everyone know that for create a table that is use a rows and columns.
Syntax:-
<table>
<border=”4″>
<tr>     For use a rows
<td>Sr. no. </td>
<td> Age </td>
<td> name </td>
</tr>
</table>

Example:-
<html>
<head>
<title>CastorClasses.com</title>
<body>
<table>
<border=”4″>
<tr>
<td>Sr. no. </td>
<td> Age </td>
<td> name </td>
</tr>
<tr>
<td> 1. </td>
<td> 22 </td>
<td>ABC </td>
</tr>
</table>
</body>
</html>

Popular Posts

Categories

AI (27) Android (24) AngularJS (1) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (114) C (77) C# (12) C++ (82) Course (60) Coursera (176) coursewra (1) Cybersecurity (22) data management (11) Data Science (89) Data Strucures (6) Deep Learning (9) Django (6) Downloads (3) edx (2) Engineering (14) Excel (13) Factorial (1) Finance (5) flutter (1) FPL (17) Google (19) Hadoop (3) HTML&CSS (46) IBM (25) IoT (1) IS (25) Java (92) Leet Code (4) Machine Learning (44) Meta (18) MICHIGAN (5) microsoft (3) Pandas (3) PHP (20) Projects (29) Python (745) Python Coding Challenge (197) Questions (2) R (70) React (6) Scripting (1) security (3) Selenium Webdriver (2) Software (17) SQL (40) UX Research (1) web application (8)

Followers

Person climbing a staircase. Learn Data Science from Scratch: online program with 21 courses