|
|
Tutorials » Html »
|
Topic |
How to use headings tag in html?
How to create blank white space in html?
The use of <div> tag?
|
|
Explanation |
Headings: <h1> </h1>
Any text that comes with in this tag will be of heading type 1.
Code:
<h1>
Heading 1
</h1>
Result:Heading 1
Similarly we can draw different headings using <h2> </h2> < h3> </h3> <h4> </h4> <h5> </h5> <h6> </h6>
Space:
This code will help you to give some big space between words or character.
One (nbsp stands for "non-breaking space") is equal to a single space.
Example: testing space.
Result: testing space.
However space, border, padding can be managed easily using css
margin and padding properties.
DIV: <div> </div>
This tag is basically used to align the text in left/right/center
This tag will widely used in css.
Example 1:
<div align=left> Left <br> Left </div>
Result 1:
Left Left
Example 2:
<div align=center> Center <br> Center </div>
Result 2:
Center Center
|
|
|
|