User Tools

Site Tools


webseite:html:basic

HTML basics

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

HTML example

index.html
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>
 
<h1>Head</h1>
 
<p>This is a text.</p>
 
</body>
</html> 



webseite/html/basic.txt · Last modified: 2018/12/20 17:42 by lunetikk