13

For example follow simple HTML code display "Stack Overflow" in web browser. My question is what is the default font family and how can I check it? (Are there any specific way to check this?)

<body>
  Stack Overflow 
</body>
Sandun Madola
  • 870
  • 2
  • 10
  • 26
  • 4
    The default font family is whatever is specified by the user in the browser preferences. – BoltClock Jun 29 '15 at 17:12
  • 3
    Are there any method or way to get browser's font family? So can I change default font family in web browser according to my preference? – Sandun Madola Jun 29 '15 at 17:21

3 Answers3

15

Here is an overview of default web browser fonts: http://www.granneman.com/webdev/coding/css/fonts-and-formatting/web-browser-font-defaults/

You can also download a browser plugin to select some text and get the font name (e.g Font Finder for Firefox)

Wessel van der Linden
  • 2,592
  • 2
  • 21
  • 42
4

Each browser has a default stylesheet, e.g. this one from Chrome:

https://chromium.googlesource.com/chromium/blink/+/master/Source/core/css/html.css

Alternatively, just Inspect the element, and look at the computed tab.

Rich Bradshaw
  • 71,795
  • 44
  • 182
  • 241
0

In browsers I use (Chrome, Opera, Firefox) default fonts are: Standard font: Times New Roman, Serif font: Times New Roman, Sans-serif font: Arial, Monospaced or fixed-width: Consolas (Firefox: Courier New).