HTML Blocks


HTML <div>,<span>
HTML elements can be categorized into <div> and <span>.

HTML Blocks

Most HTML components are described as prevent stage components or as inline components.
Block stage components normally start  with a new line when shown in a web browser.

Examples:
<table>,<h1>,<ul> and <p>

HTML Inline Elements
We know that html elements are normally shown or displayed without starting a new line.

Example:
<a>,<td> , <img> and <a>.

HTML <div> Element


the html div elements are used as a container to grouping other html elements
one thing is here important is that <div> elements has no special meaning ,it always behave as a block level and the browser show or display a line break after and before their result.Basically we use the <div> elements mostly in CSS  for setting a large content of blocks .

HTML <span> Elements                                             
The html <span> elements behave as a container for text and we also know they have no meaning.



HTML Grouping Tags

TagDescription
<div>This is a div
<span>This is a span


No comments:

Post a Comment