Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
<!DOCTYPE html>
<html>
<head>
<title>Moj blog</title>
</head>
<body>
<h1>Najugrozenije zivotinjske vrste</h1>
<p>Kada se govori o ugroženim vrstama, obično se pomisli na pande. Ipak,iako je panda ugrožena, ona ne spada u grupu najugroženijih...</p>
</body>
</html>
Svi HTML dokumenti moraju poceti DOCTYPE deklaracijom:
<!DOCTYPE html>
Ovaj doctype opisuje web stranicu kao HMTL5 dokument.
Neposredno iza doctype dolazi <html> element. Unutar <html> elementa web stranica je podeljena u dva glavna dela: <head> i <body>
Svi HTML elementi mogu imati atribute.
Atributi su dodatne informacije o nekoj osobini elementa koga blize odredjuju i opisuju.
Attributi se uvek smestaju u otvarajucem tagu.
Attributi obicno se javljaju u paru ime/vrednost kao na primer: ime="vrednost"
HTML linkovi se vezuju <a> tagom, a atribut koji ih definise jeste href atribut
primer:
<a href="https://www.nationalgeographic.rs/">Ovo je link</a>
width i height atributi
HTML slike se definisu <img> tagom
Ime fajla zeljene slike koja treba biti postavljena odredjena je i upisuje se kao src atribut
HTML slike imaju atribute za sirinu i duzinu WIDTH i HEIGHT koje se zasnivaju na pikselima.
Tako da width="500" znaci da ce slika biti 500 piksela siroka
<!DOCTYPE html>
<html>
<body>
<h2>Size Attributes</h2>
<p>Images in HTML have a set of size attributes, which specifies the width and height of the image:</p>
<img src="img_girl.jpg" width="500" height="600">
</body>
</html>
Uredjivanje stila nekog elementa HTML-a vrsi se pomocu STYLE atributa
Sintaksa STYLE atributa izgleda ovako:
<tagname style="property:value;">
Background-color definise boju pozadine nekog elementa
<!DOCTYPE html>
<html>
<body style="background-color:red;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<body style="background-color:#F4D03F ;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
<h1 style="font-size:300%;">Ovo je naslov</h1>
<p style="font-size:160%;">Ovo je paragraf</p>
<h1 style="text-align:center;">Centered Heading</h1>
<p style="text-align:center;">Centered paragraph.</p>
<h1 style="text-align:left;">Centered Heading</h1>
<p style="text-align:left;">Centered paragraph.</p>
<h1 style="text-align:right;">Centered Heading</h1>
<p style="text-align:right;">Centered paragraph.</p>