Title: Why am I seeing the 'title' in Web-page's body (Not only in Title Bar)?
Tags: html;hyperlink;stylesheet;title
Question: ```<!DOCTYPE html&gt;
<html&gt;
<head&gt;
    <title&gt;My Page</title&gt;
    <link rel="stylesheet" href="main.css" /&gt;
</head&gt;
<body&gt;
</body&gt;
</html&gt;
```

When I run this code, I see 'My Page' in my Browser's Title Bar and in Body too!

Why am I getting this?

Comment: I have cleared everything from main.css - No Problem!
But, when I add `* { display: block; }` I get that. @lc.

Comment: Well [clearly](https://jsfiddle.net/ecr1hbcb/) your main.css looks like: `body:after { content: 'My Page' }`.


Here is another answer: Because ```<head&gt;``` and ```<title&gt;``` are just tags, like anything else. And the ```*``` selector picks them up too.



For kicks, take a look at this fiddle, which clearly demonstrates when you give ```head``` and ```title``` a ```display:block``` style, they indeed show up as text on the page:

HTML

```<body&gt;
    <p&gt;hi</p&gt;
</body&gt;
```

CSS

```head, title {display:block}
```

Output

```
- jsFiddle demo

hi
```



For a bit more fun, we can color things too. And we even learn something about the inner workings of JSFiddle in the process. It looks like they inline your style in a ```<style&gt;``` tag inside the ```<head&gt;```. Ha!

Comment for this answer: Are meta tags (meta title) also affected the same way? I've never had a meta title show on the page, only in the title bar. Just out of curiosity and for future reference. Thanks.
Comment for this answer: Oh you beat me to it! Cheers
Comment for this answer: reset css is a much better option than `*`.
Comment for this answer: yeah, thats true! What if we add `*{color: blue;}` ?

Does that apply to title, head,... tags too ?
Comment for this answer: That's going crazy ! @lc.
Comment for this answer: @SathyamoorthyR It's funny you should mention that. Take a look at my last link (https://jsfiddle.net/ecr1hbcb/3/)

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:08/20/15', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<html><hyperlink><stylesheet><title>', 'Title': "Why am I seeing the 'title' in Web-page's body (Not only in Title Bar)?", 'ViewCount': 855, 'id': 32123762, 'user_AboutMe': '<p>Love to deliver creative designs and intelligent algorithms</p>\n', 'user_AccountId': 5479968.0, 'user_DisplayName': 'Sathyamoorthy R', 'user_Reputation': 364.0, 'user_Views': 105.0, 'user_id': 5207386.0}}