Refinance now before rates go up! Get multiple rate quotes at GetMyLender.com.

Difference between HTML 4.0 Block Level and Inline Elements

HTML 4.0 Elements

Following is a list of some of the HTML elements.
• a : Anchor
• abbr : Abbreviation
• acronym : Acronym
• address : Address
• applet : Applet
• b : Bold
• base : Base URL
• base : Base Font Size
• bdo : Bi-Directional Override
• big : Big
• blockquote : Blockquote
• body : Body
• br : Break
• button : Button
• caption : Table caption
• center : Center align
• cite : Citation
• code : Computer code
• col : Table column
• dd : Definition description
• del : Deleted text
• dfn : Instance definition
• dir : Directory list
• div : Division
• dl : Definition list
• dt : Definition term
• em : Emphasis
• fieldset : Form control Group
• font : Font
• form : Form
• frame : Frame
• frameset : Frameset
• h1 : Header 1
• h2 : Header 2
• h3 : Header 3
• h4 : Header 4
• h5 : Header 5
• h6 : Header 6
• head : Head
• hr : Horizontal Rule
• html : HTML document root
• i : Italics
• iframe : Iframe
• img : Image
• input : Input
• ins : Inserted text
• isindex : Single line prompt
• kbd : Keyboard input
• label : Label
• legend : Legend
• li : List Item
• link : Media Independent link
• map : Client side image map
• menu : menu list
• meta : Meta information
• noframes : No Frames
• noscript : No script
• object : Object
• ol : Ordered List
• optgroup : Option group
• option : Select an option
• p : Paragraph
• param : Named property value
• pre : Preformatted text
• q : Quotation
• s : Strike through text style
• samp : Sample program output,Scripts
• script : Script statements
• select : Option selector
• small : Small text
• span : Generic style or language container
• strike : Strike through text
• strong : Strong emphasis
• style : Style info
• sub : Subscript
• sup : Superscript
• table : Table
• tbody : Table body
• td : Table data
• textarea : Textarea of a form
• tfoot : Table foot
• th : Table header cell
• thead : Table header
• title : Title of document
• tr : Table row
• tt : Tele type
• u : Underline text style
• ul : Unordered list
• var : instance of a variable or program argument


HTML 4.0 Block Elements

In general, HTML elements can be divided into two categories : block level and inline elements.
1. HTML block level elements can appear in the body of an HTML page.
2. It can contain other block level as well as inline elements.
3. By default, block-level elements begin on new lines.
4. Block level elements create larger structures (than inline elements).

List of block level elements

• p
• h1, h2, h3, h4, h5, h6
• ol, ul
• pre
• address
• blockquote
• dl
• div
• fieldset
• form
• hr
• noscript
• table

HTML 4.0 Inline Elements

1. HTML inline level elements can appear in the body of an HTML page.
2. It can contain data and other inline elements.
3. By default, inline elements do not begin on new lines.
4. inline elements create shorter structures (than block level elements).

List of inline elements

• b, big, i, small, tt
• abbr, acronym, cite, code, dfn, em, kbd, strong, samp, var
• a, bdo, br, img, map, object, q, script, span, sub, sup
• button, input, label, select, textarea


Conclusion :

I hope that this article would have helped you in understanding difference between HTML 4.0 Block Level and Inline Elements. Your feedback and constructive contributions are always welcome.


No comments:

Post a Comment