Spaces in HTML
A tag (non breaking space point) is used for putting the spaces between the text on the web browser.
If we want to insert more than one space then we write this code between the words.
For two space write two times
See example
See example
<html>
<head>
<title>
Spaces
</title>
</head>
<body>
Hello world
<BR>
Hello World
<BR>
Hello World
</body>
</html>
<head>
<title>
Spaces
</title>
</head>
<body>
Hello world
<BR>
Hello World
<BR>
Hello World
</body>
</html>
Hello world
Hello World
Hello World
Hello World
Hello World
Horizontal Line
It is tag used for inserting a horizontal line between the different contents on the web page.
The for horizontal line are <HR>
Possible attributes that can be used with horizontal line are:
| ALIGN | Size | Width | NOSHADE | Color |
|---|---|---|---|---|
| Specify the alignment of the line. | Specify the size of the line like 2 it count in pixels. | Specify the width of the line can be used in % or pixel. By default the line is 100%. | It remove the shades of the line. | It specify the line of the color. |
See example
<html>
<head>
<title>
Horizontal lines
</title>
</head>
<body>
<BR>
<HR></HR>
<BR>
<HR SIZE='4' COLOR='YELLOW' WIDTH='50%'></HR>
<BR>
<HR WIDTH='100%' SIZE='2' COLOR='red' NOSHADE> </HR>
<BR>
</body>
</html>
<head>
<title>
Horizontal lines
</title>
</head>
<body>
<BR>
<HR></HR>
<BR>
<HR SIZE='4' COLOR='YELLOW' WIDTH='50%'></HR>
<BR>
<HR WIDTH='100%' SIZE='2' COLOR='red' NOSHADE> </HR>
<BR>
</body>
</html>
No comments:
Post a Comment
Thank you for choosing https://www.htmlcodzz.com
We have receive your message and response very soon..