Ui/ux Design: HTML
Ui/ux Design: HTML
HTML is an important language in web application. Its used to design web structure and
a web page constructed by using it. Like Indonesia tea motto “Makan Apa Saja Minumnya
Teh Botol Sosro”, HTML recognised by all web browsers. In the server there many server-
side programming languages such as PHP, Python java, etc., however their will response
a HTML page when there is a request from the client.
Create a web page by using HTML is easy since HTML is easy to learn. To create a
web page by using HTML you just need a text editor. You can use any text editor but, in
this course, I suggest you use Visual Studio Code or/and PHPStorm. Visual studio
code is free software that you can use it without worry. PHPStorm in my opinion is very
powerful, this application has rich features needed by developer. Even though this
software has a price but as a student you can register and apply for free usage.
<body>
<p>HTML page contains many HTML Tags. Those tags have unique functiona
lities. </p>
</body>
</html>
4) Save the page and open in web browser.
1.1 HTML Structure
A web page constructed from HTML. The minimum structure of a HTML document are
<html>
<head>
</head>
<body>
</body>
</html>
From the code above, the HTML document start and end with tag <html> dan </html>.
There two main parts in HTML documents:
1) Head. In this section you can declare any information about the HTML document
for example, the title, keyword, CSS, JavaScript and other information. Any
information in this section will not be shown in the body of web browser. You can
create and put any information for this section in your HTML page by using tag
<head> and </head>.
2) Body. This section contains any thing that will be shown in the web browser such
as text, paragraph, image, table, and so on. You can create and put any content that
you want display in web browser in this section using tag <body> and </body>.
Text formatting is about how to format a text that you want to display in web browser.
For example, you want create paragraph, or you want to highlight a word by using bold,
italic or underline or combination of those formats, and so on. In this section we will
discuss several tags used to format text.
1.2.1 Paragraph
A web page sometimes consisting of many texts. If the text is very large, it arranged into
several paragraph. A paragraph is consisting of several sentences. To format a text into
paragraph in HTML you can using tag <p> with format and example as follow
Format
Example :
<html>
<head>
<title>Formatting Text</title>
</head>
<body>
<p>My name Monkey D. Luffy. I am a Pirate. My goal is to find One Piec
e and become Pirate King.</p>
<p>My name Roronoa Zorro. I am a Pirate. I'm santoryu style which mean
I using three sword.</p>
</body>
</html>
As you can see in the code above, we place the paragraph inside the body because we
want to display it in the web browser. You can create new page in visual studio code and
put the above code and save it (for example practice-2.html) and open it in web browser.
1.2.2 List
In text sometimes you want to make a list, for example to list your favourite food or you
want list your task, and so on. To make a list you can use following format:
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>...</li>
</ul>
<html>
<head>
<title>Formatting Text</title>
</head>
<body>
<p>My name Monkey D. Luffy. I am a Pirate. My goal is to find One Piec
e and become Pirate King.</p>
<p>My name Roronoa Zorro. I am a Pirate. I'm santoryu style which mean
I using three sword.</p>
<p>Our other crews:</p>
<ul>
<li>Usop</li>
<li>Nami</li>
<li>Sanji</li>
<li>Copper</li>
<li>Robin</li>
<li>Franky</li>
<li>Brook</li>
<li>Jimbe</li>
</ul>
</body>
</html>
Save your changes and refresh your web browser you will see:
As you can see in the image above, it created a bullet list. To create a numbering list, you
can change the tag <ul> into <ol>, please try it by yourself.
To use those tags are easy, you just need put the text between the tag. For example:
Maybe you wonder how to use them together? To use them together also easy:
<html>
<head>
<title>Formatting text 2</title>
</head>
<body>
<p>Hello my name is <b>John</b>. I live in <i>Samarinda</i>. My <u>motto</
u> is "<u><i><b>just do it</b></i></u>"</p>
<p>Please take attention of the tags order from following example:</p>
<ul>
<li><u><i><b>just do it</b></i></u></li>
<li><i><u><b>just do it</b></u></i></li>
<li><b><i><u>just do it</u></i></b></li>
</ul>
<p>Even though the order is different each other, the tree example has sam
e display in web browser.</p>
</body>
</html>
Save above code with name practice-3.html and open it in web browser:
1.2.4 Other tags
In previous section we learned several tags used to format a text. For example in section
1.2.1 we learned how to create a paragraph, in section 1.2.2 we learned how to make a
list and in section 1.2.3 we learned how to bold the text, how to underline the text and
how to make a text italic. Previous section is a basic understanding about a tag and how
to use it. It’s very important because there are lot of tags related to text formatting and
we cannot discuss all of them here, but at least from previous lesson we learned about
basic usage of the tags.
For other tags related to formatting text you can found in this link:
https://www.w3schools.com/tags/ref_byfunc.asp at formatting section.
1.3 Hyperlink
A hyperlink is a tool that enable a web page connected to other pages. A hyperlink or
simply called link contain an address of another web page and when you click that link, it
will go to another page. This HTML tag commonly use as navigation or menu of the
website.
<a href="address">label</a>
1) address. The address can be anything for example a web page URL, or a filename.
2) label. The label is a text that you want to display in web browser. It’s a text that
will be clicked by the user.
<body>
<h1>Internal Link:</h1>
<ul>
<li><a href="practice-1.html">Example 1</a></li>
<li><a href="practice-2.html">Example 2</a></li>
<li><a href="practice-3.html">Example 3</a></li>
<li><a href="practice-4.html">Example 4</a></li>
</ul>
<h1>External Link:</h1>
<ul>
<li><a href="http://www.rofilde.web.id">My Website</a></li>
<li><a href="https://www.google.co.id">Google Indonesia</a></li>
<li><a href="https://www.umkt.ac.id">Website UMKT</a></li>
<li><a href="http://www.fst.umkt.ac.id">Website FST</a></li>
</ul>
</body>
</html>
Save the above code with name practice-4.html. Open it in web browser:
1.4 Assignment