Table of Contents
Συνοπτική Λίστα Ετικετών html
Βασικές ετικέτες
<html> .. </html> : Η αρχή και το τέλος
<head> .. </head> : Η επικεφαλίδα
<title> .. </title> : Ο τίτλος της σελίδας
<body> .. </body> : Το κυρίως κείμενο
<body bgcolor=“pink”> : Ορίζει το χρώμα του φόντου
<body text=“black”> : Ορίζει το χρώμα του κειμένου
<body link=“blue”> : Ορίζει το χρώμα των υπερσυνδέσμων
<body vlink=“#ff0000”> : Ορίζει το χρώμα των υπερσυνδέσμων που έχουμε επισκεφτεί
Απλή μορφοποίηση κειμένου
<BR> : Αλλαγή γραμμής (Line BReak)
<P> : Αλλαγή παραγράφου (Paragraph)
<Β> .. </B> : Έντονη γραφή (Bold)
<I> .. <I>: Πλάγια γραφή (Italics)
<U> .. </U>: Έντονη γραφή (Underline)
<H1> .. </H1>: Επικεφαλίδα μέγιστου μεγέθους
<H6> .. </H6>: Κείμενο ελάχιστου μεγέθους
<SUP> .. </SUP>: Κείμενο ως εκθέτης
<SUB> .. </SUB>: Κείμενο ως δείκτης
<CENTER> .. </CENTER>: Κεντραρισμένο κείμενο
Αντικείμενα
<hr> : Εισαγωγή οριζόντιας γραμμής
<hr size=“3” > Ορισμός πάχους (ύψους) οριζόντιας γραμμής
<hr width=“80%”> Ορισμός πλάτους οριζόντιας γραμμής
Εικόνες
<img src="name.jpg"> : Εισαγωγή εικόνας name.jpg
<img src=“name.jpg” align=“left”> Στοίχιση εικόνας σε σχέση με το κείμενο
Συνδέσμοι
<a href="URL"> .. </a> : Δημιουργία υπερσυνδέσμου
<a href=“mailto:EMAIL”></a> Δημιουργία συνδέσμου αποστολής mail
<a name=“NAME”></a> Δημιουργία θέσης εσωτερικού συνδέσμου μέσα σε μια μεγάλη σελίδα
<a href=“#NAME”></a> Συνδέση με την εσωτερική θέση NAME σε μια μεγάλη σελίδα
Λίστες
<ol> <li> .. </li>.. </ol> : Δημιουργία αριθμημένης λίστας
<ol></ol> Αρχή και τέλος όλης της αριθμημένης λίστας
<li></li> Αρχή και τέλος κάθε στοιχείου της αριθμημένης λίστας
<ul> <li> .. </li>.. </ul> : Δημιουργία μη αριθμημένης λίστας
Πίνακες
<table></table> Creates a table
<tr></tr> Sets off each row in a table
<td></td> Sets off each cell in a row
<th></th> Sets off the table header (a normal cell with bold, centered text) Table Attributes
<table border=“1”> Sets width of border around table cells
<table cellspacing=“1”> Sets amount of space between table cells
<table cellpadding=“1”> Sets amount of space between a cell's border and its contents
<table width=“500” or “80%”> Sets width of table, in pixels or as a percentage of document width
<tr align=“left”> or <td align=“left”> Sets alignment for cell(s) (left, center, or right)
<tr valign=“top”> or <td valign=“top”> Sets vertical alignment for cell(s) (top, middle, or bottom)
<td colspan=“2”> Sets number of columns a cell should span (default=1)
<td rowspan=“4”> Sets number of rows a cell should span (default=1)
<td nowrap> Prevents the lines within a cell from being broken to fit
Πλαίσια
<frameset> <frame> .. </frame> .. </frameset> : Δημιουργία πλαισίων
<frameset></frameset> Replaces the <body> tag in a frames document; can also be nested in other framesets
<frameset rows=“value,value”> Defines the rows within a frameset, using number in pixels, or percentage of width
<frameset cols=“value,value”> Defines the columns within a frameset, using number in pixels, or percentage of width
<frame> Defines a single frame — or region — within a frameset
<noframes></noframes> Defines what will appear on browsers that don't support frames Frames Attributes
<frame src=“URL”> Specifies which HTML document should be displayed
<frame name=“name”> Names the frame, or region, so it may be targeted by other frames
<frame marginwidth=“value”> Defines the left and right margins for the frame; must be equal to or greater than 1
<frame marginheight=“value”> Defines the top and bottom margins for the frame; must be equal to or greater than 1
<frame scrolling=“value”> Sets whether the frame has a scrollbar; value may equal “yes,” “no,” or “auto.” The default, as in ordinary documents, is auto.
<frame noresize=“noresize”> Prevents the user from resizing a frame
Άλλα
Μορφοποίηση
<pre></pre> Creates preformatted text
<tt></tt> Creates teletype, or typewriter-style text
<cite></cite> Creates a citation, usually italic
<em></em> Emphasizes a word (with italic or bold)
<strong></strong> Emphasizes a word (with italic or bold)
<font size=“3”></font> Sets size of font, from 1 to 7
<font color=“green”></font> Sets font color, using name or hex value Links
<p></p> Creates a new paragraph
<p align=“left”> Aligns a paragraph to the left (default), right, or center.
<blockquote></blockquote> Indents text from both sides
<dl></dl> Creates a definition list
<dt> Precedes each definition term
<dd> Precedes each definition
<div align=“left”> A generic tag used to format large blocks of HTML, also used for stylesheets
<hr noshade /> Creates a rule without a shadow
Φόρμες
<form></form> Creates all forms
<select multiple name=“NAME” size=?></select> Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll.
<option> Sets off each menu item
<select name=“NAME”></select> Creates a pulldown menu
<option> Sets off each menu item
<textarea name=“NAME” cols=40 rows=8>
