Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS equivalent of <big>

What is the CSS equivalent of the <big> element? If I'm not mistaken then wrapping your text in the <big> element is not the same as setting a larger font-size.

like image 665
Web_Designer Avatar asked Jul 09 '11 15:07

Web_Designer


2 Answers

Google Chrome says:

big {
     font-size: larger;
}

That should be the corresponding CSS. Anyway, make sure not to use tags like big since they go against the rule which states HTML should be used to describe the content, not the appearance. You could go for something like:

<span class="important-text">My important text</span>

And use this in CSS:

span.important-text {
     font-size: larger;
}

Which is the correct form, whereas

<big>My important text</big>

is incorrect.

like image 150
Gabriele Cirulli Avatar answered Sep 22 '22 17:09

Gabriele Cirulli


This

<span style="font-size:larger">...</span>

is a direct equivalent of the <big>

like image 23
c-smile Avatar answered Sep 20 '22 17:09

c-smile