Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML element that contains no formatting

I'm constantly modifying some text on a web page with JavaScript. I want the text to be in-line with other elements, like texts, inputs, etc. What HTML element should I use? Both <div> and <p> create new-lines and other things. <b> kind of does what I want, but it bolds all the text. What's the correct alternative?

like image 929
Claudiu Avatar asked May 19 '10 00:05

Claudiu


People also ask

Which is not formatting tag in HTML?

The <span> tag is the in-line equivalent of <div> . Show activity on this post. Show activity on this post. You can apply a float , inline or inline-block to elements to get them to show up next to other elements.

Which is not formatting tags?

Answer. Answer: Underline style is not paragraph formatting.

What are HTML elements with no content called?

HTML elements with no content are called empty elements.


2 Answers

The <span> tag is the in-line equivalent of <div>.

like image 72
Alconja Avatar answered Sep 20 '22 01:09

Alconja


<span>

you could also apply a display:inline style to a <div> and get similar results

like image 26
Geek Num 88 Avatar answered Sep 20 '22 01:09

Geek Num 88