| Both sides previous revisionPrevious revisionNext revision | Previous revision | 
| webseite:html:basic [2014/05/27 14:29]  –  lunetikk | webseite:html:basic [2018/12/20 17:42] (current)  – Discussion status changed lunetikk | 
|---|
| ====== HTML Basics ====== | ===== HTML basics ===== | 
|  |  | 
| ===== HTML example ===== |  | 
|  |  | 
|  | ^  Code  ^  Function  ^ | 
|  | |  %%<!-- -->%%  |  everything between <!- and %%->%% will be commented  | | 
|  | |  %%<table><tr><td></td></tr></table>%%  |  opens a table, a row, a cell, close cell, close row, close table  | | 
|  | |  %%<td colspan="2">%%  |  connect 2 columns  | | 
|  | |  %%<p></p>%%  |  paragraph around a text  | | 
|  | |  %%<br/>%%  |  break line  | | 
|  | |  %%<a href="http://lunetikk.de/dokuwiki/">This is a link</a>%%  |  creates a link for websites  | | 
|  | |  %%<link rel="stylesheet" type="text/css" href="styles.css">%%  |  insert a css  | | 
|  | |  %%<div id="container"> </div>%%  |  add a div container  | | 
|  | |  %%<meta charset="utf-8" />%%  |  add charset utf-8  | | 
|  | |  %%<input name="Name" type="text" size="12" maxlength="25" required>%%  |  mark an input as required  | | 
|  | |  %%<input name="Datei[]" type="file" size="50" maxlength="100000" accept="text/*" multiple>%%  |  allow to upload multiple files  | | 
|  | |  %%<img src="smiley.gif" alt="Smiley face" height="42" width="42">%%  |  add a picture  | | 
|  |  | 
| <code> | ===== HTML example ===== | 
|  |  | 
|  | <code html index.html> | 
| <!DOCTYPE html> | <!DOCTYPE html> | 
| <html> | <html> | 
|  | <meta charset="UTF-8"> | 
| <body> | <body> | 
|  |  | 
| </body> | </body> | 
| </html> </code> | </html> </code> | 
|  |  | 
| ===== Code basics ===== |  | 
|  |  | 
|  |  | 
| ^Code^What it does^ | \\ | 
| |  %%<!-- -->%%  |  everything between - and - will be commented  | | \\ | 
| |  %%<table><tr><td></td></tr></table>%%  |  opens a table, a row, a cell, close cell, close row, close table  | | ~~DISCUSSION:closed~~ | 
| |  <p></p>  |  paragraph around a text  | |  | 
| |  <br/>  |  break line  | |  | 
| |  <a href="http://lunetikk.de/dokuwiki/">This is a link</a>  |  creates a link for websites  | |  | 
| ||| |  |