1 / 9

Uvod u xhtml

Uvod u xhtml. Linkovi i tablice. Linkovi ( anchor ). Najosnovniji: <a href =„http://www.google.hr /” > Ovo je link </a> Dodatni atributi: title= „miš je iznad linka” ( tooltip ) target =„_ blank ” (otvara link u novom tab -u). Linkovi ( anchor ) - fragmenti.

fritzi
Download Presentation

Uvod u xhtml

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Uvod u xhtml Linkovi i tablice

  2. Linkovi (anchor) Najosnovniji: <ahref=„http://www.google.hr/” > Ovo je link </a> Dodatni atributi: • title=„miš je iznad linka” (tooltip) • target=„_blank” (otvara link u novom tab-u)

  3. Linkovi (anchor) - fragmenti • linkovi na istu stranicu • IZVORIŠTE: <ahref=„#ime_fragmenta”> nešto </a> • ODREDIŠTE: <aname=„ime_fragmenta”></a> • odredište ne treba sadržaj

  4. Linkovi (anchor) – e-pošta • za adrese e-pošte <a href=„mailto:fakultativna@gmail.com”>Mejl</a> • klikom na link otvara se preglednik elektroničke pošte

  5. Tablice –osnovne oznake • opisna oznaka za tablice je: <table> </table> • opisna oznaka retka tablice je: <tr> </tr> (eng. table row) • opisna oznaka ćelije je: <td> </td> (eng. table data)

  6. Tablice-primjer <table> <tr> <td>prvi redak prvi stupac</td> <td>prvi redak drugi stupac</td> </tr> <tr> <td>drugi redak prvi stupac</td> <td>drugi redak drugi stupac</td> </tr> </table>

  7. Tablice – dodatne oznake • za zaglavlje tablice postoje opisna oznaka: <th> </th> (eng. table header) samo kao sadržaj <tr> oznake, sadržaj je podebljan i centriran • za naslov tablice koristi se: <caption> </caption> sadržaj <table> oznake

  8. Tablice – atributi • za <th> i <td>: <th colspan=„2” > </th> broj stupaca kroz koje se proteže ćelija • <table border=„1” > </table> debljina tablice u pikselima • ostali atributi za <table>: width=„100%” tablica se prilagođava prema veličini prozora, uvijek se 100% prikazuje

  9. Tablice – atributi • width=„broj_piksela” (širina tablice u pikselima) • cellpadding=„broj_piksela” (razmak između granice ćelije i podatka) • cellspacing=„broj_piksela” (razmak između ćelija tablice)

More Related