the best method for google indexing text content in images? - indexing

I have a webpage where I put 1 image once in a while, this is just like xkcd.com
I would like to know how to let google know the text in my images.
My approach is to put the text in alt html attribute, like this:
<img
src="http://myapokalips.com/public/cartoons/021_Robot_Tattoo.png"
alt="RETARD - aw, that's a sick tattoo! - yea, bro, it means 'strength'"
/>
is that right? or should I put the text in some random metatag?
thank you in advance.

Just do it like xkcd.com is doing.

Related

How do I add HTML tags and links in QnA-maker?

I have tried the suggestions provided for other similar questions but they didn't work.
here 2 example:
1) Link: name of your link is changed by QnAMaker during the save and train step in name of your link](https://url.com)) and it is diplayed in the test feature
name of your link](https://url.com))
2) <b> bold text </b> is not changed in bold and the same thing happens with the escaped html
Did you consider markdown? You examples are supported.
Cheatsheet to help you on you way.

Scrapy - Cleaning up text[/p] from nested links[/a] etc

I am new to python and scrape as well. Nevertheless, I spend a few days trying to scrape news articles from its archive - SUCCESSFULLY.
PROBLEM is that when I scrape CONTENT of the article <p> that content is filled with additional tags like - strong, a etc. And as such scrapy won't pull it out and I am left with news article containing 2/3 of the text. Will try HTML below:
<p> According to <a> Japan's newspapers </a> it happened ... </p>
Now I tried googling around and looking into the forum here. There were some suggestion but from what I tried, it did not work or broke my spider:
I have read about normalized-space and remove tags but it didn't work. Thank you for any insights in advance.
Please provide your selector for more detailed help.
Given what you're describing, I'd guess you're selecting p/text() (xml) or p::text (css), which is not going to get the text in the children of <p> elements.
You should try selecting response.xpath('//p/descendant-or-self::*/text()') to get the text in the <p> and all it's children.
You could also just select the <p>, not its text, and you'll get its children as well. From there you can start cleaning up the tags. There are answered questions regarding how to do that.
You could use string.replace(,)
new_string = old_string.replace("<a>", "")
You could integrate this into a loop which iterates over a list that contains all of the substrings that you want to discard.

How to use special characters on pentaho Dashboard

I'm trying to use special characters on my dashboard using a HTML structure.
It only works if I use HTML Entities such as "& atilde;" (without space) for ã.
But is it the only way to do it? Is there anywhere I can set UTF-8, for example?
I tried to put a META tag setting UTF-8, but I didn't work.
Here's what I'm doying:
Input:
Output:
I need to type: "Alocação de Funcionários"
Notice that I also set a custom noDataMessage_text on Advanced Properties > Extension points of my first Bar Char and, since the message also have special characters on it, using the HTML Entity would certainly not be a good idea.
UPDATE:
I have the same problem when I was looking for my Cubes when I was using the OLAP Selector Wizard
I think your problem will solve. You can use like these.
<h1 style="font-weight: bold;"> Alocação de Funcionários<h1>
or
<h1 style="color:#297385l"> AlocaÇão de Funcionários</h1>
I got these output in my dashboard.
I am thinking your font family is creating some issue. Please copy the exact h1 tag line and paste it in your dashboard let's see.
Thank you.

How do I change a div class first-letter with the first-letter selector?

My html code looks like this:
<div class="entrybody"> Some text/content </div>
I want the first letter between this piece of code (for example "Some text") to become alot much bigger every time I post something on my blog. Here is a picture of what I mean:
http://i58.tinypic.com/9hierp.png
How do I do this? I have tried with
.entrybody::first-letter but it doesn't work...
You were using :: to access the psuedo element.
Put only one :
.entrybody:first-letter
http://jsfiddle.net/zb522v2g/2/
Read more about this here: http://www.hongkiat.com/blog/css-better-paragraph/

SEO - anchor and b tag combination for keywords

On some pages, I put keywords within anchor tags. What's better to use for Google search:
keyword
or
<b>keyword</b>
or
<b>keyword</b>
Thanks in advance!
Doesn't make difference.
However, general usage of <b>, <i>, <u> tags is not advised. Use CSS to adjust text display properties.