From the course: HTML: Metadata in the Head

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting color themes

Setting color themes - HTML Tutorial

From the course: HTML: Metadata in the Head

Start my 1-month free trial

Setting color themes

- [Narrator] The next tag I'd like to talk about is one you may not be familiar with, partially because it's got terrible browser support and that is one called the theme color metatag, and this has to do with the color of the bar above your web browser. At this point it's pretty much only on your mobile device, but in theory it could be on a desktop device as well. By setting this to a color, you'll change the color of that bar for that particular webpage, and just to show you how to put this in, I'm going to go on ahead and add this metatag. I'm going to group it with the other ones, but it could go anywhere in the head of your document. It's a metatag. The name is theme color, and then the content for it would equal some sort of color value and I'm going to say bad6545. That color could be in any of the usual formats. This is, of course, a hex code with six digits. It could be three digit hex codes, RGB, RGBA, HSL…

Contents