Saturday, April 19, 2025

HTML Breaks, Horizontal Lines

Setting up vertical difference between html elements is extremely easy. We will use br tag. That tag is single, which means, theres no need to close it.

We can also have horizontal lines in web page using hr tag, which is also single.

We can set specific color for a horizontal line using color attribute, but also there's size and width attributes. 

For width attribute use numbers, and for size attribute use percents.

<!DOCTYPE html>

<html>
<head>
	<title>Security Tutorials</title>
	<meta charset="utf-8">
	<meta name="description" content="Free Security Tutorials">
	<meta name="keywords" content="it security, pentesting, hacking">
</head>

<body>

	<h1>Default H1 Heading</h1>
	<br>
	<hr color="black" width="500">
	
	<h1>Default H1 Heading</h1>
	<br>
	
	<hr color="red" size="50%">
	
	<h1>Default H1 Heading</h1>
	
</body>
</html>

No comments:

Post a Comment

Tkinter Introduction - Top Widget, Method, Button

First, let's make shure that our tkinter module is working ok with simple  for loop that will spawn 5 instances of blank Tk window .  ...