Professional Documents
Culture Documents
WWW
World
wide web je najpopularnija usluga Interneta Mrea informacijskih resurasa Aleksandrijska knjinica Informacije svima dostupne i besplatne
WWW
itanje
informacija
Objavljivanje
Informacija
Web building izrada vlastitih web stranica WYSIWYG FrontPage Dreamweaver HTML
HTML
Hyper Text Markup Language Markup tagovi oznake uz tekst koje govore kako se prikazuje tekst
<b>fesb</b>
Sadraj taga Start tag
End tag
HTML
<!doctype> <html>
<head>
</html>
5
Html atributi
http://www.w3schools.com/html/html_colornames.asp
6
Osnovni tagovi
Tag Description
<html>
<body> <h1> to <h6> <p>
Defines an HTML document Defines the document's body Defines header 1 to header 6 Defines a paragraph Inserts a single line break Defines a horizontal rule Defines a comment
7
primjeri
primjeri
9
<acronym>
<address> <bdo> <blockquote>
Defines an acronym
Defines an address element Defines the text direction Defines a long quotation
<q>
<cite> <dfn>
primjeri
10
Entiteti
Neki
znakovi (poput <) imaju posebno znaenje u HTML-u Da bi se prikazali na web stranici koistimo entitete Entitet se sastoji od:
& Ime ili # i broj ;
Najpopularniji
11
Jo neki entiteti
Result Description cent
Entity Name
¢
Entity Number
¢
pound
yen section copyright registered trademark multiplication division
Svi entiteti
£
¥ § © ® × ÷
£
¥ § © ® × ÷
13
HTML koristi <a> (anchor) tag za kreiranje linka na drugi dokument Anchor moe povezivati na bilo koji resurs na webu : HTML stranicu, sliku, zvuk, film itd Sitaksa za kreiranje linka je:
<a> tag koristi se za kreiranje mjesta koje povezuje. href atribut se koristi za adresiranje dokumenta na kojeg povezuje Tekst izmeu otvarajueg i zatvarajueg taga je tekst koji e se prikazivati na dokumentu i predstavljati poveznicu (hyperlink) Npr:
<a href="http://www.w3schools.com/">Visit W3Schools!</a>
14
Target atribut
Target atribut odrauje gdje e se povezani dokument otvoriti. <a href="http://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
the target URL will open in a new window the target URL will open in the parent frameset the target URL will open in the same frame as it was clicked
_top
the target URL will open in the full body of the window
15
Name atribut koristi se da bi se kreiralo imenovano sidro Koritenjem sidra moemo kreirati linkove koji e nas voditi do tono odreenog mjesta na stranici <a name="tips">Useful Tips Section</a> Ne ispisuju se na poseban nain kao linkovi da bismo kreirali link na sekciju tips dodajemo # i ime sekcije na kraj URLa
<a href="http://www.w3schools.com/html_links.asp#tips"> Jump to the Useful Tips Section</a> Ako se sidro nalazi unutar iste stranice kao i link href atribut izgleda: <a href="#tips">Jump to the Useful Tips Section</a>
primjeri
16
Umetanje slika
<img
src="url">
URL
Apsolutni Relativni
Nema
17
Required Attributes
indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
DTD
Attribute
Value
Description
DTD
alt src
text URL
Defines a STF short description of the image The URL of the image to display STF
18
Optional Attributes
Attribute
Description
Specifies how to align the image according to surrounding text. Deprecated. Use styles instead
DTD TF
align
Defines a border around an image. Deprecated. Use styles instead Defines the height of an image
TF STF TF
Defines white space on the left and right side of the image. Deprecated. Use styles instead Defines the image as a server-side image map A URL to a document that contains a long description of the image Defines the image as a client-side image map. Look at the <map> and <area> tags to figure out how it works Defines white space on the top and bottom of the image. Deprecated. Use styles instead Sets the width of an image
ismap longdesc
usemap vspace width
URL
URL URL pixels pixels %
STF
STF STF TF STF
19
Standard Attributes
id, class, title, style, lang, xml:lang
Event Attrbutes
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
primjeri
20
Image Tags
Description Defines an image Defines an image map Defines an area inside an image map
Radi brzine uitavanja preporuka je izbjegavati slike na web stranici i dodavati samo neophodne slike Odabrati komprimirane formate slike radi breg uitavanja
21
planets:
Liste
Preporuka
: ne koristiti <br> umjesto lista Svaka stavka se uokviruje <li> tagom Nepobrojane - <ul>
Pobrojane
-<ol>
Liste
definicija -<dl>
23
List Tags
Tag
Description
<ol>
<ul> <li> <dl> <dt> <dd> <dir> <menu>
primjeri
24
Okviri ( frejmovi)
Pomou okvira mogue je prikazati vie od jednog html dokumenta u jednom prozoru preglednika. Svaki dokument predstavlja jedan okvir frame Svaki okvir neovisan je o ostalima. Nedostaci koritenja okvira su:
Programer mora voditi rauna o vie dokumenata Teko je ispisati itavi stranicu.
25
Frameset Tag
<frameset> tag definira kako podijeliti prozor preglednika u okvire Svaki frameset definira skup redaka(rows) ili kolona (columns) Vrijednosti rows/columns oznaavaju koliki dio povrine ekrana zauzima svaki okvir
Frame Tag
<frame> tag odreuje koji html dokument prikazati u okviru <frameset cols="25%,75%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> </frameset> Ukoliko su granice okvira vidljive korisnik e moi mijenjati veliinu okvira. Da bismo to sprijeili moemo dodati noresize="noresize" atribut <frame> tagu Preporuka : Dodajite <noframes> tag za browsere koji ne prikazuju okvire
primjeri
27
Frame tagovi
Tag Description
<frameset>
<frame> <noframes> <iframe>
primjeri
28
Tablice
Forme
29