PHP Basic Part 3
Untuk mengubah ukuran font dalam suatu element HTML kita menggunakan sintaks CSS apa?
font
font-size
font-family
font-type
font-length
font-px
Apa perbedaan tag h1 dan h2 ?
h1 ukuran font nya lebih kecil daripada h2
h2 ukuran font nya lebih kecil daripada h1
h1 font nya hanya lebih tebal daripada h2
h2 font nya hanya lebih tebal daripada h1
Untuk melalukan import style ke dalam file HTML kita, kita harus menambahkan tag (...) diantara tag (...). Misal kita akan menambahkan file CSS bootstrap ke dalam HTML kita.
import, body
import, head
link, body
link, head
style, body
style, head
$a = 3;$b = 5;$c = 0;$a = $c;$b = $a;$c = $a + $b;$a = $c - $b;echo $a;Apakah output program diatas?
-2
0
2
3
5
8
$a = -3;$b = 5;if($a > $b) $a = $b;else $a = $a - $b;if($a >= $b) $b = $a;else $b = $b++;$c = $b + $a;echo $c;Output dari program diatas adalah?-8
-5
-3
0
2
8
$a = 0;
for($i=1; $i <= 10; $i++)
if($i % 3 == 0)
$a = $a + $i;
for($i=1; $i <= 10; $i++)
if($i % 3 == 0)
$a = $a + $i;
echo $a;
Output dari $a adalah ?
0
9
18
30
55
$a = array(1,2,3);for($i = 3; $i < 7; $i++){ $a[$i] = $i+1; $a = array();}Nilai akhir dari variable $a adalah?
array(1,2,3)
array(1,2,3,4,5,6)
array(1,2,3,4,5,6,7)
array(4,5,6,7)
array()
$a = array(1,2,3);for($i = 3; $i < 7; $i++){ $a = array(); $a[$i] = $i+1; }echo $a[0];Output program diatas adalah?
0
1
(kosong)
(Error : Undefined offset 0)
$profile = array();$domisili = array('Jl. Panunggangan no 72', 'Garut', 14325);$physical = array('tinggi' => 187, 'berat' => 85, 'goldar' => 'O');$education = 'S1 Ilmu Komputer';$profile = array ( 'address' => $domisili, 'bio_physical' => $physical, 'education' => $education);Bagaimana cara mendapatkan output 'Garut'?
$profile['domisili']['Garut']
$profile['domisili'][1]
$profile['address']['Garut']
$profile['address'][1]
$domisili['address']
$domisili['Garut']
$profile = array();$domisili = array('Jl. Panunggangan no 72', 'Garut', 14325);$physical = array('tinggi' => 187, 'berat' => 85, 'goldar' => 'O');$education = 'S1 Ilmu Komputer';$profile = array ( 'address' => $domisili, 'bio_physical' => $physical, 'education' => $education);echo $count($profile);Apakah output dari program diatas?
0
1
2
3
(kosong)
{"name":"PHP Basic Part 3", "url":"https://www.quiz-maker.com/QR3V7SA","txt":"Dalam HTML, untuk menampilkan link kita memakai tag (...) dan atribut untuk URL nya adalah (...), Untuk mengubah ukuran font dalam suatu element HTML kita menggunakan sintaks CSS apa?, Berikut ini special atribut yang HANYA dimiliki oleh tag adalah :","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}