-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4.CatatanTags.txt
62 lines (53 loc) · 1.26 KB
/
4.CatatanTags.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
https://youtu.be/cUWBYzA6M-8
Tag of <HTML>
tag ada yang berpasangan dan ada yang tidak berpasangaan
Struktur dasar HTML:
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
Tag <head> bisa ditambahkan
- Judul Halaman
<title> </title>
- CSS
<style> </style>
- javascript
<script> </script>
- metadata
<meta> </meta>
Tag <body> bisa ditambahkan
- teks
<h1>, <h2>, <h3>, ..., <h6>, <p>, ...
- pendukung teks
<br>, <hr>, <em>, <strong>, ...
- gambar
<img>
- hyperlink
<a> (a = anchor)
- list (bullets & numbering)
<ul> (unordered list), <ol> (ordered list), <li> (list item), <dl> (definition list), <dt>, <dd>
- table
<table>, <thead>, <tbody>, ...
- form
<form>, <input>, <select>, <button>
- script (java script)
<script>
- object
<object>
- frouping
<div>, <span>
Komentar
<!-- [Isi Komentar] -->
Struktur tag
<namatagya atribut="nilai">
cth.
<body bgcolor="lightblue">
<body bgcolor="lightblue" id="myid" class="myclass">
Atribut Global
accesskey (shortcut), class, id, dir (arah tulisan [diraction]), lang (bahasa), style (utk css), lang, tabindex, title
Referensi
www.w3school.com/Tags