Break tag can be represented using <br>.
- It moves the cursor from current line to next line.
- Using break tag you can increase the number of lines with empty text.
- Closing of break tag is not necessary.
- Used for creating a new line.
Explanation with MS Word:
Without <br> Tag:
With Break Tag
Before using <br>:
<!DOCTYPE html>
<html>
<head>
<title>Break tag</title>
</head>
<body>
<a href="https://www.google.com/">Google</a>
<a href="https://www.youtube.com/">YouTube</a>
<a href="https://www.googlemaps.com/">Maps</a>
</body>
</html>
All links in same line because there is no <br> tag.
With <br> tag:
<!DOCTYPE html> <html> <head> <title>Break tag</title> </head> <body> <a href="https://www.google.com/">Google</a><br> <a href="https://www.youtube.com/">YouTube</a><br> <a href="https://www.googlemaps.com/">Maps</a> </body> </html>
<!DOCTYPE html>
<html>
<head>
<title>Break tag</title>
</head>
<body>
<a href="https://www.google.com/">Google</a><br>
<a href="https://www.youtube.com/">YouTube</a><br>
<a href="https://www.googlemaps.com/">Maps</a>
</body>
</html>
Post a Comment