Friday, 11 December 2015

Kak sebenernya absolute positioning itu buat apa sih?

Absolute positioning itu buat menempatkan atau meletakkan div kamu dimana pun kamu suka/inginkan. Tapi, ingat harus menggunakan margin top, margin right, margin bottom, sama margin left buat nentuin posisinya. Contoh sebagai berikut:

<div id="keren" style="position:absolute;margin:50px 50px 50px 50px;">
Ada juga skill seperti berikut: margin : auto.

Kak sebenernya margin itu buat apa sih?

Margin itu membuat ruang atau space antara 1 div dengan div lainnya.

Thursday, 10 December 2015

Cisco: Kak bagaimana sih cara supaya user 'dalem' bisa internetan?

Gampang. Pertama, kita pasti menggunakan ip nat inside. Trus kedua, kita harus tahu address/alamat IP publik kita, kalau gak tahu, bisa menggunakan interface,

Contoh:
Config# ip nat inside source list 101

Kak bagaimana sih cara supaya nilai select bisa diambil?

Pertama, define select-option nya dan id bagi select-nya.

<select id="myselect">
<option value="BMW">BMW</option>
<option value="Toyota">Toyota</option>
</select>


Kemudian, define script javascriptnya, dan deklarasi/define variabel penampungnya.Di bawah ini:
<script>
var mycar;
mycar = document.getElementById("myselect").value

</script>

Kak bagaimana sih cara mena

Cara yang gua tau sih harus ditampung dulu ke suatu variabel, baru kemudian di terapkan ke suatu paragraph.

Kayak gini:
var text="";

for (i=0; i <= hh ; i ++)
{
text = text + "<p>Hello</p>" ;
alert(text);
}
document.getElementById("myparagraph").innerHTML = text;

Wednesday, 9 December 2015

1. Change a text to strong
Answer: <strong>Text goes here </strong>

2. Put basic 3 lines into blank html
Answer:
<!DOCTYPE html>
<head>
This my text like.
</head>

3. Between the <head> tags, add in an opening <title> tag and closing </title> tag and Between the <title> tags, write in a title for your page. For example, "My Webpage."
Answer:

<!DOCTYPE html>
<head>
<title>This my title</title>
</head>

4. Underneath the closing </head> tag, put an opening <body> tag and a closing </body> tag, like in the example above.
Answer:
<!DOCTYPE html>
<head>
<title>This my title</title>
</head>
<body>
</body>

5. Inside the body, create two paragraphs. Each paragraph starts with an opening <p> tag and ends with a closing </p> tag. We can write content in between the tags.
Answer:
<!DOCTYPE html>
<head>
<title>This my title</title>
</head>
<body>
<p>Hello World!</p>
</body>

6. In the body section, create a heading. To do this, create an <h1> tag. Close the element with a closing tag </h1>. (Your content should now be between <h1> and </h1>.)
Answer:


7. Underneath the heading tags, create two paragraphs using <p> tags with whatever content you like.

HTML & CSS: Hey whats the difference between width using % and using pixel?

Hey whats the difference between width using % and using pixel?
Answer: