You are on page 1of 2

<a href="https://www.w3schools.

com">This is a link</a>

To add ‘LINK’ in website. Must ‘a’ letter before href

<img src="w3schools.jpg" alt="W3Schools.com" width="155" height="200">

Src = sumber file

Alt = alamat website

<button>Click me</button>

Untuk tombol

<ul> *untuk unordered list (tidak perlu urutan)

<li>Coffee</li> *untuk membuat pointer <li> …. </li>

<li>Tea</li>

<li>Milk</li>

</ul>

<ol> *untuk ordered list (perlu urutan nomor)

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ol>

Warna Huruf

<p>I am normal</p>

<p style="color:red;">I am red</p>


<p style="color:blue;">I am blue</p>

Ukuran Huruf

<p style="font-size:50px;">I am big</p>

Warna Background

<body style="background-color:powderblue;">

h1 style="color:blue;">This is a heading</h1>

<p style="color:red;">This is a paragraph.</p>

Ukuran Text

<h1 style="font-size:300%;">This is a heading</h1>

<p style="font-size:160%;">This is a paragraph.</p>

Komentar tersembunyi

<!-- This is a comment -->

You might also like