Is it possible to strike the title
<title><s>My Title</s></title>
like this, so that the titlebar will show My Title?
Or is there a way to solve this with css?
The <title> tag in HTML is used to define the title of HTML document. It sets the title in the browser toolbar. It provides the title for the web page when it is added to favorites. It displays the title for the page in search engine results.
Editing the HTML Title Tag html, or default. html. Update the text between the opening and closing title tags, i.e. <title> and </title>. For this to work, you must maintain the structure of the opening <title> and closing </title> and just modify the text between them.
HTML <title> Tag.
It's simply the headline on the SERP (search engine results page). For example, if you Google “kitchen appliances,” you'll see that one of the top results is from IKEA. In this case, the page title tag is “Kitchen Appliances – IKEA.” This is what both people and search engines will see as the title of your page.
From MDN on the <title>
element:
The HTML Title Element defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text and any contained tags are not interpreted.
So no, it cannot be done like that.
Update:
Other answers suggest using various combinations of unicode characters to accomplish a strike through, and even though that might be possible and could yield a decent result, I believe it comes with a large drawback.
I'm not an expert in SEO in any way, but from what I know, and according to Googles Search Engine Optimization Starters Guide the <title>
is of great importance when it comes to search engine optimization. Their guide suggest that you should avoid:
My interpretation would be that using obscure characters in your title would be a direct violation of that, so based on that I would strongly suggest that you avoid it.
This is possible by using characters that have a strike built into them. But this is the only way. Using HTML markup or CSS will not yield the result you want.
Example using this: http://blog.imthy.com/2008/06/strikethrough-strikethrough-text.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With