Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what do you call this gray line thing in html

Tags:

html

line

What do you call this "gray line" in HTML, where you can use like a separator?

like image 257
tintincutes Avatar asked Aug 25 '10 12:08

tintincutes


People also ask

Why is there a line in my HTML?

The above blank line is caused by the browsers default css style. Use normalize. css to reset the CSS applied by all the browser to a common one.

What is line code in HTML?

<code>: The Inline Code element The <code> HTML element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code.

How to get a horizontal line in HTML?

HTML <hr> Tag The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag. Used to specify the alignment of the horizontal rule.


2 Answers

<hr /> is this what you mean?

like image 63
simnom Avatar answered Sep 20 '22 18:09

simnom


this is called a horizontal rule and can be created using the following:

<hr />

However, the fact that the line is gray is online its default behaviour. Using CSS you can style it as you like.

like image 37
Dr. Simon Harrer Avatar answered Sep 19 '22 18:09

Dr. Simon Harrer