Friday, 4 December 2015

Codecademy.CSS.Session2

1. Make the <h3> color #cc6666 and the <h2> color #8a2be2
Answer:
h3 {
color: #cc6666;
}
h2{
color: #8a2be2;
}
2. Use emphasize (em) or font-size
3. Set the font-family of the <h1> header to serif, <h2> to sans-serif, <h3> to cursive.
Answer:
h1 {
font-family: Serif;
}
h2 {
font-family: Sans-serif;
}
h3 {
font-family: Cursive;
}
4. Set backup value of h1 times as an option before serif, set backup value of h2 verdana as an option before sans-serif,
h1 {
font-family: Times, Serif;
}
h2 {
font-family: Verdana, Sans-serif;
}

5. Set div's background-color to #cc0000
Set height's to 100px
Set width to 100px
Answer:
div {
background-color: #cc0000;
height: 100px;
width: 100px;
}
6. Table: set tds's height to 50px. Give your tds a border of 1 px dashed blue. Give your table a border of 1px solid black.
Answer:
td {
height: 50px;
border: 1px dashed blue;
}
table {
border: 1px solid black;
}
7. Give your a selector a color of #cc0000 and a text-decoration of none.
Answer:
a {
color: #cc0000;
text-decoration: none;
}
8. Add a pair of <h1></h1> tags inside the body of our HTML page. Your h1 header can say anything you want!
Then, on the CSS tab, make its font-family to Verdana and its color to #576D94.
Add a pair of <p></p> tags below your h1 header and set the font-size to 18px and its color to #4a4943
Answer:
h1 {
   
font-family:Verdana;
   
color:#576D94;
}
p {
   
font-size: 18px;
   
color: #4a4943;
}

9. Set the p font-family to Garamond and set a backup font of Serif. Give h1 a backup font of sans-serif.
Answer:
p {
font-family: Garamond,Serif;
}
h1 {
font-family: Verdana, Sans-serif;
}

10. Add an image and set its width and height to 300px and 100px and give your image of 1px solid #4682b4
Answer:
In index.html
<img src="http://bit.ly/NnVbxt">
In stylesheet.css
img
{
width: 300px;
height: 100px;
border: 1px solid #4682b4;
}
11. Add a link using <a href="url">Link text</a> into your HTML page and set link's text-decoration to none and its color
to #cc0000.
<a href="http://www.codecademy.com"></a>
Add this in the stylesheet.css
a {
text-decoration:none;
color:#cc0000;
}

Codecademy.CSS.Session1

1. make the text inside <span></span> tags blue.
answer:
span {
color: blue;
}

2. Tell the span selector that you want the font-family to be cursive.
answer:
span{
font-family: cursive;
}

3. Insert a <link> to stylesheet.css in index.html between/inside your <head></head> tags.
answer:
<link type="text/css" rel="stylesheet" href="stylesheet.css">
4. Most tags are not self-closing
5. Make the font color of the p selector green.
answer:
p {
color: green;
}
6. One selctor many properties
Underneath your color:green property-value pair (but befor the final }!), set the font-family to Garamond and the font-size to 24px.
Answer:
p{
color: green;
font-family: Garamond;
font-size: 24px;
7. Make all the h3 headings red.
Set all the paragraphs to the Courier font-family.
The second paragraph text between
<span></span>tags. Set teh background-color of that <span> to 'yellow'
Answer:
h3 {
color: red
}
p {
font-family: Courier;
/* Remember to capitalize first character of your color */
}
span
{
background-color:yellow;
}
8. Put semicolon!
9. Commented out p selector
Answer:
/*
p {
color:red;
}
*/

Wednesday, 2 December 2015

Semua orang mempunyai otak, tapi tidak semua orang mampu menggunakannya.


Semua tag-HTML bisa menggunakan semua style CSS. Tapi lebih spesifik, biasanya tag:
1. <a> selalu dipakaikan style:
text-decoration
2. Footer selalu dipakaikan copyright

Tuesday, 1 December 2015

CSS: CSS Border

Algoritmanya:
1. Menentukan style/gaya bordernya
2. Menentukan besar
3. Menentukan warna

CSS: CSS selector

Untuk CSS selector terdiri dari:
1. CSS selector jenis element
2. CSS selector jenis id
3. CSS selector jenis class

So you want to make an Operating System ?

First thing we need to do is creating Disk Operating System. The most common.
So, how?

So what are the components?
1. Hardware
2. Application program
3. User
4. Operating system

What are the operating sytem in this world?
1. UNIX
2. MS-DOS

So, what are hardware in this world?
A lot-lot

How to run a DOS?
You can use VMWare Player to run it.

Jadi apa saja yang dilakukan oleh DOS?
1. Nomor interupt hardware
2.
Jika dulu elemen adalah air, api, tanah dan udara.
Sekarang elemen adalah cahaya, suara dan cuaca/temperatur. Siapa yang bisa mengontrol ini yang menang.


Apa itu cahaya? (defenition)
Cahaya adalah gelombang elektromagnetik.

Apa yang bisa kita lakukan pada cahaya? (method)
Dibengkokkan, dibelokkan(reflect),  dihentikan?, dikurangi (reduce?),

Apa saja properti cahaya? (properti)
Sudut cahaya