Professional Documents
Culture Documents
Web Programming I - Week 1: Mikheil Rukhaia
Web Programming I - Week 1: Mikheil Rukhaia
Mikheil Rukhaia
Outline
1 Introduction
3 HTML5 Basics
4 Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 2 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Introduction
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 3 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
History of WWW
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 4 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 5 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 6 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
We will learn
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 7 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Evaluation schema
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 8 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Course project
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 9 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Take in mind
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 10 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Literature
Rob Larsen.
Beginning HTML and CSS.
Wiley Publishing Inc., 2013.
http://www.w3schools.com
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 11 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 12 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
What is HTML?
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 13 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Basic skeleton
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 14 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Backward compatibility
I You can include them in the document using the following links:
<script
src="http://cdnjs.cloudflare.com/ajax/libs/
html5shiv/3.6/html5shiv.min.js">
// or
// modernizr/2.6.1/modernizr.min.js">
</script>
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 15 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Comments
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 16 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 17 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
I It is used:
At the very top of a browser window.
As the default name for a bookmark.
By search engines to help index pages.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 18 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
I (Almost) All tags you learn in the course are written inside the
<body> element.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 19 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Core attributes
I class: list of classes where element belongs to; used with CSS.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 20 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
UI attributes
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 21 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
HTML5 Basics
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 22 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Basic rule
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 23 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Common elements
I Lists: unordered <ul> and <li>; ordered <ol> and <li>; and
definition lists <dl>, <dt>, and <dd>
Headings
I <h1>, <h2> and <h3> are larger than the default text size.
I <h5> and <h6> are smaller than the default text size.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 25 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Paragraphs
I Browser usually inserts a new line before the next paragraph and
adds a little bit of extra vertical space.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 26 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Escape sequences
Entity Character
& &
> >
< <
' ’
" ”
I These entities are used in the text to avoid mismatch errors with
the markups.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 27 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Preformatted text
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 28 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Grouping elements
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 29 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 30 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 31 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Presentational Elements
I <b>: display bold text, but not necessarily using boldface font.
I <sup>: display superscript; font size is the same, but may create
a taller gap between lines.
I <sub>: display subscript; font size is the same, but may create a
taller gap between lines.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 32 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Phase elements
I <em> and <strong> are almost the same as <i> and <b>.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 33 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 34 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 35 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Editing text
I With CSS it is possible to show and hide the inserted and deleted
content as required.
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 36 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Lists
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 37 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Unordered lists
I Example:
<ul>
<li>Bullet point number one</li>
<li>Bullet point number two</li>
<li>Bullet point number three</li>
</ul>
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 38 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Ordered lists
I Example:
<ol type="i" start="4">
<li>Point number one</li>
<li>Point number two</li>
<li>Point number three</li>
</ol>
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 39 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 40 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Definition lists
I Example:
<dl>
<dt>Unordered List</dt>
<dd>A list of bullet points.</dd>
<dt>Ordered List</dt>
<dd>A list of enumerated points.</dd>
<dt>Definition List</dt>
<dd>A list of terms and definitions.</dd>
</dl>
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 41 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 42 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Laboratory Work
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 43 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Exercises
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 44 / 45
Introduction Hyper Text Markup Language HTML5 Basics Laboratory Work
Discussion?!
Web Programming I — Week 1 M. Rukhaia International Black Sea University August 27, 2018 45 / 45