3 ms·
> Pretty much you can highlight text. By default Safari shows a yellow highlight. I like it! Chrome also shows a yellow highlight by default. But since I don't
by mkl95 3y ago
> Pretty much you can highlight text. By default Safari shows a yellow highlight. I like it!
Chrome also shows a yellow highlight by default. But since I don't have Safari installed on my machine, I don't know if it's exactly the same color. Also, I'm not sure if other browsers have the same default color. Isn't it a good use case for CSS?
- robotresearcher 3y agoCSS will let you choose the highlight color for your readers. Semantic markup lets the reader choose the highlight rendering, including the choice of leaving it to the browser. A blind reader can configure their client to speak highlights.
- sham1 3y agoOf course it doesn't need to be one or the other. You can still use CSS to give the highlight a uniform colour, while allowing for reader modes to still have the highlights and have the accessibility of the screen readers speak the highlight. Semantic markdown and CSS should ideally be seen as complementary and be used as such.
- politelemon 3y agoYep you can style it with background color: https://jsfiddle.net/wezkth43/ https://jsfiddle.net/wezkth43/
- enriquto 3y ago> I don't know if it's exactly the same color. Why would you care? As long as it appears highlighted it is alright. Let people chose their own highlight colors, and text fonts, and everything.