Friday 30 November 2018

CSS

CSS 

  • css called cascading style sheet
  • css describes the style of html
  • css save a lot of works to developer


syntax of css

h2 {
color:red;
font-size:12px;



  • h2 - selection
  • color - property
  • red - value
  • color:red; - declaration 


3 ways to add css styles in our html document 

  • Inline style
  • Internal
  • External

1.Inline
<p style="color:red;"> about uki...... </p>

here is a paragraph. and a ccs style used in that html's <p> line. it's called inline css.

2.Internal
<html>
<head>
<style>
body {
    background-color: red;
}
p {
    color: black;

</style>
</head>
<body>

<p>i am a uki student</p>


</body>


</html>

here is a paragraph's styles designs between head tags. internal's every design process from the head tags.


3.External
<html>

<head>

<link rel="stylesheet" type="text/css" href="data.css">

</head>

<body>



<h1>i'm a uki student </h1>

a

</body>

</html>



here is a heading's style linked in a css document which is called external css. most of the developers using external css


css backgroundcolour

<html>
<head>
<style>
h1 {
    background-color: red;
}

p {
    background-color: blue;
}
</style>
</head>
<body>

<h1>here is the red colour /h1>

<p>here is the blue colour</p>

</body>
</html>






we can use css colors like this format
          p {background-color:black;}


css background image

<html>

<head>

<style>

body {

    background-image: url("https://image.spreadshirtmedia.net/image-server/v1/mp/designs/140238303,width=178,height=178/nerd-kode-klippet-inn-sekskant.png");

    background-repeat: no-repeat;

    background-position:right center;

    margin-right: 5px;

    background-attachment: fixed;
}

</style>

</head>

<body>

<h1>Hello</h1>
</body>

</html>


we can use background image like this format

css border

<!DOCTYPE html>
<html>
<head>
<style>
p {
    border: 5px solid blue;
}
</style>
</head>
<body>

<h2>uki life</h2>

<p>color blue</p>

</body>
</html>


we can use the border like this format border: border's width border's type and border's color then border radius: enough radius like a round shape 

css margin
<!DOCTYPE html>
<html>
<head>
<style>
div {
    border: 1px solid black;
    margin: 25px;
    background-color: lightgreen;
}
</style>
</head>
<body>

<h2>uki</h2>

<div>uki life</div>

</body>
</html>


css margin is where will we pix our content? which limits of the distance from outside of the page

css pading
<!DOCTYPE html>
<html>
<head>
<style>
div {
    border: 1px solid black;
    padding: 25px 50px 75px;
    background-color: lightblue;
}
</style>
</head>
<body>

<h2>uki</h2>

<div>It is a full scholarship based Accelerator program for Coding in Jaffna, Sri Lanka targeting students who has completed Advanced Level examinations and don’t have access to university education or any other form of vocational education. It is aimed to provide the necessary training to enter Computer Software industry or to start an IT startup.
</div>

</body>
</html>



Padding is a distance between content to border

css height and width

<!DOCTYPE html>
<html>
<head>
<style>
div {
    max-width: 500px;
    height: 100px;
    background-color: powderblue;
}
</style>
</head>
<body>

<h2>uki</h2>
<p>uki life</p>

<div>It is a full scholarship based Accelerator program for Coding in Jaffna, Sri Lanka targeting students who has completed Advanced Level examinations and don’t have access to university education or any other form of vocational education. It is aimed to provide the necessary training to enter Computer Software industry or to start an IT startup.
</div>

<p>uki</p>

</body>
</html>


how to display our content in our web page.we can set our content placement by height and width.

Css box model

<!DOCTYPE html>
<html>
<head>
<style>
div {
    width: 320px;
    padding: 10px;
    border: 5px solid gray;
    margin: 0;
}
</style>
</head>
<body>

<h2>uki:</h2>

<img src="http://uki.life/wp-content/uploads/2016/11/aaa-2.jpg" width="350" height="263" alt="Klematis">
<div>This the logo of uki</div>

</body>
</html>



different  between margin border padding and the content


Css outline

<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {
    border: 1px solid black;
    outline-style: solid;
    outline-color: red;
    outline-width: thin;
}

p.ex2 {
    border: 1px solid black;
    outline-style: solid;
    outline-color: red;
    outline-width: medium;
}

p.ex3 {
    border: 1px solid black;
    outline-style: solid;
    outline-color: red;
    outline-width: thick;
}

p.ex4 {
    border: 1px solid black;
    outline-style: solid;
    outline-color: red;
    outline-width: 4px;
}</style>
</head>
<body>

<h2>the uki batch stone</h2>

<p class="ex1">uki1</p>
<p class="ex2">uki2</p>
<p class="ex3">uki3</p>
<p class="ex4">uki4</p>

</body>
</html>


Css text

<html>
<head>
<style>
body{

    color: green;

    text-align: center
    ;

    text-decoration: none;

    text-transform: uppercase;

    text-indent: 50px;

    letter-spacing: 3px;

    direction: rtl;

    word-spacing: 10px;

    text-shadow: 3px 2px red;

}

</style>

</head>

<body>
<h1>uki batch 4</h1>

<p>It is a full scholarship based Accelerator program for Coding in Jaffna, Sri Lanka targeting students who has completed Advanced Level examinations and don’t have access to university education or any other form of vocational education. It is aimed to provide the necessary training to enter Computer Software industry or to start an IT startup.
</p>
</body>
</html>


Css font

<html>
<head>
<style>
p.serif {

    font-family: "Times New Roman", Times, serif;

}


p.sansserif {

    font-family: Arial, Helvetica, sans-serif;

    font-size: 30px;

    font-weight: bold;

    font-variant: small-caps;

}

</style>
</head>
<body>

<h1>uki-family</h1>

<p class="serif">uki batch4</p>

<p class="sansserif">we are the good family</p>

</body>
</html>


Css icon

<html>
<head>
<title>Google Icons</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>

<p>Some Google icons:</p>
<i class="material-icons">cloud</i>
<i class="material-icons">favorite</i>
<i class="material-icons">attachment</i>
<i class="material-icons">computer</i>
<i class="material-icons">traffic</i>
<br><br>

<p>Styled Google icons (size and color):</p>
<i class="material-icons" style="font-size:24px;">cloud</i>
<i class="material-icons" style="font-size:36px;">cloud</i>
<i class="material-icons" style="font-size:48px;color:red;">cloud</i>
<i class="material-icons" style="font-size:60px;color:lightblue;">cloud</i>

</body>

</html>




Css links

<html>
<head>
<style>
a:link, a:visited {
    background-color: #f44336;
    color: white;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}


a:hover, a:active {
    background-color: red;
}
</style>
</head>
<body>

<a href="default.asp" target="_blank">share it</a>

</body>
</html>


Thursday 29 November 2018

GIT & GITHUB

GIT






A staggering number of software projects rely on Git for version control

Git's features

  • Performance
  • Security
  • Flexibility
  • Version control

Some important commands in Git

  • git config --global user.name "xxx"
  • git config --global user.email "yyy"
     This two commands for 1st time works on git we must insert our github username and user email.
  
  • git init - Initiate  projects
  • git  add . - Adding project in directory area
  • git status - Different between index & working directory
  • git commit -m "this is html file" - description of the project 
  • git remote add origin url - attach with our github url
  • git remote -v - list github project's remote
  • git push -u origin master - pushes a local branch to the remote origin 
  • git clone - download a copy of a remote like which is in github

Process of git

interface of github




Sunday 25 November 2018

HTML

HTML

HTML - Hyper text markup language 

html is used to create electronic documents that are displayed on the www
each page contain a series of connection to other pages called "hyperlinks"
every web page you see on the internet is written using one version of html code or another

HTML means Hyper Text Markup Language. 
which is using for markup a web page. and the elements are the building blocks of html pages. and the elements makes tags. tags like ( <p> <head> <body> )

every html tags have been content for example  <p>  p means  a paragraph

<Tags>
 This is the most important of html. a tag has been opening and closing brackets like <> this.
note- most of the html tags has contain opening&closing tags

<html> tag
every html coding starts from html command
 like this<html>

<body> tag
which are the items we thought displayed in our page that all are in body tag


Important tags of html

!DOCTYPE>         - defines the document type
<html>                   - defines as html document
<body>                  - defines the document's body
<title>                    - title for the document
<head>                   - information about the document
<p>                         - a paragraph
<h1> - <h6>           - html heading 
<br>                        - a single line break


HTML flow 

<html>
  <head>
    <title> </title>
  </head>
     <body>
            <h1> </h1>
            <p> </p>
     </body>
</html>



Example-
This is the html for create a heading and then create a paragraph .

<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>MY SELF</h1>
<p>I am vithurasan</p>

</body>
</html>

and the web page's output

MY SELF

I am vithurasan

  • Links define with the <a> tag which link is specified by href attribute

Example-
we just add a link which is google.com and title it

<html>
<body>

<h2>TO GET GOOGLE</h2>
<a href="https://www.Google.com">go to google</a>

</body>

</html>

and the web page's output

TO GET GOOGLE
go to google



  • How to add a image in our web page?
Example-
we want to add a image which is Uki logo

<html>
<body>

<h2>UKI</h2>
<img src="ukilogo.jpg" alt="logo of uki" width="460" height="345">

</body>
</html>

and the web page's output


UKI














How to add a table in html

Example-
we want to add a table which is details of having vehicles

<html>
<head>
<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
th, td {
    padding: 5px;
    text-align: left; 
}
</style>
</head>
<body>

<h2>vehicle details</h2>
<table style="width:100%">
  <tr>
    <th>Name:</th>
    <td>meino</td>
  </tr>
  <tr>
    <th rowspan="2">number of vehicles :</th>
    <td>bike -2</td>
  </tr>
  <tr>
    <td>cycle -3</td>
  </tr>
</table>

</body>
</html>


and the web page's output



  • How to create a form in our web page?
Example-
we want to create a form like a email login process

<html>
<body>

<h2>login here</h2>

<form>
  E-mail:<br>
  <input type="text" name="mail">
  <br>
  Password:<br>
  <input type="password" name="password"> <br>
  <input type="submit" name="submit">
</form>


</body>
</html>

and the web page's output



















Example-
we want to select a option which is you are male or female so we used radio button to give options.


<!DOCTYPE html>
<html>
<body>

<h2>Sex</h2>

<form>
  <input type="radio" name="gender" value="male" checked> Male<br>
  <input type="radio" name="gender" value="female"> Female<br>
</form> 

</body>
</html>
















IDE

IDE- intergrated development environment

which is provides many facilities to programmers. IDEs are built to work with specific application platforms and remove barriers involved in the lifecycle of software development. IDEs are used in development teams to build new software, apps, web pages, and services, and they help by providing one tool with all the features and removing the need for integrations

eg:- IDE works when  running the programme

Image result for ide

ATOM

 

ATOM

Atom is a free and open-source text and source code editor for macos,linux and ms windows with support for plug- ins written in node.js, and embedded git control, developed by github. 

atom is adesktop application built using web technologies. 
 interface of atom


Why we use atom?
  • which is a free & open source text editor.
  • which is works on macOS, linux and wnidows 
  • which is developed by Github and it is provides us with a platform to create responsive and interactive web apps 



WEB BROWSERS

WEB BROWSER

A variety of web browsers are available with different features, and designed to run on different operating system.

How can work browsers..


When we type a website address such as www.uki.life in to our browser that web page in its entirely is not actually stored on a server ready and wait for delivered.
in fact that web page that you request is individually created in response to your request.