Referens
HTML inline element
De flesta element som kan skrivas mellan taggarna klassificeras som antingen blockelement eller inline element. Inline element kan vanligtvis bara innehålla text och andra inline element.
Inline element formateras till skillnad från blockelement oftast utan radbrytning.
Inline element i HTML
Följande element definieras som inline element i HTML 4.01
- a – Anchor
- abbr – Abbreviation
- acronym – Acronym
- b – Bold text
- basefont – Base font change
- bdo – Bidirectional override
- big – Large text
- br – Line break
- cite – Citation
- code – Computer code
- dfn – Defined term
- em – Emphasis
- font – Font change
- i – Italic text
- img – Inline image
- input – Form input
- kbd – Text to be input
- label – Form field label
- q – Short quotation
- s – Strike-through text
- samp – Sample output
- select – Option selector
- small – Small text
- span – Generic inline container
- strike – Strike-through text
- strong – Strong emphasis
- sub – Subscript
- sup – Superscript
- textarea – Multi-line text input
- tt – Teletype text
- u – Underlined text
- var – Variable
Både blockelement och inline element
Följande element kan användas som antingen blockelement eller som inline element.
- applet – Java Applet
- button – Button
- del – Deleted text
- iframe – Inline frame
- ins – Inserted text
- map – Image map
- object – Object
- script – Client-side script
Om något av dessa element används som inline element inuti ett annat inline element eller en paragraf <p> så får de inte i sin tur innehålla några blockelement!





