1. Internal
2. External
3. Inline
| Property | Description |
|---|
| CSS Background | A shorthand property for setting all the background properties in one declaration. |
| CSS Text-align | Specifies the horizontal alignment of text. |
| CSS Font | Sets all the font properties in one declaration. |
| CSS Border | Sets all the border properties in one declaration. |
| CSS Outline | Sets all the outline properties in one declaration. |
| CSS Margin-bottom | Set the bottom margin for a <p> element. |
| CSS Padding-bottom | Set the bottom padding for a <p> element. |
| CSS List-style | Specify all the list properties in one declaration. |
| CSS Table-layout | Sets the layout algorithm to be used for a table. |
| Sr. No. | <DIV> | <SPAN> |
|---|
| 1. | It defines a division in a web page. | It makes no visual difference in the page, unless customized with the style attribute. |
| 2. | It is a block element. The default value is “block”. | It is an in-line element. |
| 3. | It is used while creating CSS based layouts in HTML. | It is used to stylize text. The in-line feature makes it easy to use custom styles without changing the layout. |
| 4. | By default, a line break is placed before and after this element. | No line breaks by default, but this can be achieved if we change its in-line nature by specifying in the style attribute to “display:block”. |
| 5. | It is used for defining a section of your document. | It is used for grouping and applying styles to in-line elements. |
| 6. | Example:
<DIV class= “code”>CareerRide Info Pvt. Ltd.</DIV> | Example:
<SPAN style= “color:#FF0000;”>CareerRide Info Pvt. Ltd.</SPAN> |
| 7. | It is the generic container for flow content, which does not represent anything. | It is a generic in-line container for phrasing content, which does not represent anything. |
HTML documents can be created by a wide range of tools, from simple plain text editors (such as Windows' NotePad, Mac's TextEdit) to sophisticated WYSIWYG (What You See Is What You Get) authoring tools (e.g., DreamWeaver).
| Attribute | Description |
|---|
| src | It is used to give the file name that should be located in the frame. Its value can be any URL. For example: src= “/html/abc.html”. |
| name | It allows you to give a name to a frame. This attribute is used to indicate that a document should be loaded into a frame. |
| frameborder | It specifies whether or not the borders of that frame are shown. This attribute overrides the value given in the frameborder attribute on the <frameset> tag if one is given. This can take values either 1 (Yes) or 0 (No). |
| marginwidth | It allows you to specify the width of the space between the left and right of the frame's border and the content. The value is given in pixels. For example: marginwidth = “10”. |
| marginheigth | It allows you to specify the height of the space between the top and bottom of the frame's borders and its contents. The value is given in pixels. For example: marginheight = “10”. |
| noresize | By default, you can resize any frame by clicking and dragging on the borders of a frame. It prevents a user from being able to resize the frame. For example: noresize = “noresize”. |
| scrolling | It controls the appearance of the scrollbars that appear on the frame. It takes values either “Yes”, “No” or “Auto”. For example: scrolling = “no” means it should not have scroll bars. |
| longdesc | It allows you to provide a link to another page which contains a long description of the contents of the frame. For example: longdesc = “framedescription.html” |
| Attribute | Description |
|---|
| cols (Columns) | It specifies how many columns are contained in the frameset and the size of each column. |
| rows | It works like the 'cols' attribute and takes the same values, but it is used to specify the rows in the frameset. |
| border | It specifies the width of the border of each frame in pixels. For example: border = “5”. A value of zero means no border. |
| frame | It specifies whether a three-dimensional border should be displayed between frames. It takes value either 1 (Yes) or 0 (No). For example: frameborder = “0” specifies no border. |
| framespacing | It specifies the amount of space between frames in a frameset. It can take any integer value. For example: framespacing = “10” means there should be 10 pixels spacing between each frame |
| Tag | Description |
|---|
| <table> | It defines table. |
| <th> | It defines a header cell in a table. |
| <tr> | It defines a row in a table. |
| <td> | It defines a cell in a table. |
| <caption> | It defines a table caption. |
| <colgroup> | It specifies a group of one of more columns in a table formatting. |
| <col> | It specifies a column properties. |
| <thead> | It specifies a header content in a table. |
| <tbody> | It specifies a body content in a table. |
| <tfoot> | It specifies a footer content in a table. |
| Attribute | Value | Description |
|---|
| border | 1 0 | It specifies whether or not the table is being used for layout purpose. |
| align | left center right | It specifies the alignment of a table. |
| cellpadding | pixels | It specifies that the space between the cell wall and the cell content. |
| cellspacing | pixels | It specifies that the space between cells. |
| Width | pixels percentage(%) | It specifies that the width of a table. |
| bgcolor | rgb(x,x,x) #xxxxxx colorname | It specifies that the background color of a table. |
| sortable | sortable | It specifies that the table should be sortable. |
| Tag | Description | Example and Output |
|---|
| Heading | There are six header tags: h1, h2, h3, h4, h5, h6. <h1> tag defines the most important heading and <h6> tag defines the least important heading. | Example: <h1>CareerRide Info</h1>
Output: CareerRide Info
Example: <h6>CareerRide Info</h6>
Output:CareerRide Info |
| Bold | It defines bold text. | Example:<b>CareerRide Info</b>
Output: CareeRide Info |
| Italic | It defines italic text. | Example: <i>CareerRide Info</i>
Output: CareerRide Info |
| Underline | It underlines the text. | Example: <u>CareerRide Info</u>
Output: CareerRide Info |
| Strike-out | It puts a line right through the center of the text, crossing it out. It shows that the text is old and no longer relevant. | Example: <strike>ABC Coperation</strike>
Output: ABC Coperation |
| Small | It defines small text. | Example: <h2>CareerRide <small>Info</small></h2>
Output: CareerRide Info |
| Font Color | It changes the text color. | Example: <font color=“#000fff”>CareerRide Info</font>
Output: CareerRide Info |
| Emphasis | It is used to emphasize text, usually it appears in italics but can vary according to your browser. | Example: <em>CareerRide Info</em>
Output: CareerRide Info |
| Mark | It defines marked or highlighted text. | Example: <mark>CareerRide Info</mark>
Output: CareerRide Info |
| Subscript | It defines subscripted text. | Example: Career<sub>Ride</sub> Info
Output: CareerRide Info |
| Superscipt | It defines superscripted text. | Example: Career<sup>Ride</sup> Info
Output: CareerRide Info |
| Strong | It defines strong text, usually it appears in bold but can vary according to your browser. | Example: <strong>CareerRide Info</strong>
Output:CareerRide Info |