What does the (#!) in Twitter URLs do? [duplicate] - html

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
What's the shebang (#!) in Facebook and new Twitter URLs for?
What does the (#!) in Twitter URLs do?
Example: http://twitter.com/#!/search/stackoverflow

That is a way to make ajax applications crawlable. Check this out:
Making AJAX Applications Crawlable

Its for search bots:
http://code.google.com/web/ajaxcrawling/docs/getting-started.html

It's called a shebang or hashbang, besides the above mentioned (making Ajax actions crawable). It does, in a more general sense, make Ajax actions and results more accessible, for example, at Facebook. For example the URL http://twitter.com/#!/search/stackoverflow redirects to http://twitter.com/search/stackoverflow - so you can just give it to someone and that person sees the same as you did after invoking some Ajax functionality. Facebook does the same with picture galleries.

Related

Is it possible to share a website without hosting it? [duplicate]

This question already has answers here:
Is there anyway to render a website and share it without hosting it?
(2 answers)
Closed 1 year ago.
So recently I started a project to expand my knowledge when it comes to HTML and CSS. I made a little website just for myself and I want to get some feedback from my friend.
I want him to be able to maybe click on a link and then get to my website (doesn't have to be a link). So I don't want to publish the website for anyone but for my friend or anyone that has that link or something like that.
I already heard about sharing files to someone on OneDrive and including all the code in it but my OneDrive is already out of storage so something different would be nice.
It is best to use pages.github.com check the page is a small post and video tutorial on how to use it, greetings bro!

ID # reference without index.html [duplicate]

This question already has answers here:
Reference: mod_rewrite, URL rewriting and "pretty links" explained
(5 answers)
Closed 5 years ago.
long time lurker first time signup and poster.
quiet simple really
how do i reference from the navigation page/index.html#id to just page#id
- so i dont want it to show index.html
ie.
ww.page1.com/pasture#clover
i am currently using the codes below, and dont mind if i need to put in some other code. the pages will be in .php later on but for now in html.
I am using the below codes
Clover
from the navigation on the first page/all pages
<h3 id="clover">Clover</h3>
and this on the target page
What you want: Anchors (or Bookmarks)
Look here: https://www.w3schools.com/html/html_links.asp
So: Use Clover
Also: If you call the site as www.abc.de/index.html#123, then it will stay as it is - and give you www.abc.de/index.html#clover.
If you call the site as www.abc.de/#123, then it will also stay as it is - and give you www.abc.de/#clover.
Edit: I misunderstood the OP. I may edit this post later. Sorry.

How to let robots parse our custom html elements? [duplicate]

This question already has answers here:
How do search engines deal with AngularJS applications?
(15 answers)
Closed 6 years ago.
I have a website containing custom elements (i use angular 2), and google fails to parse them correctly :
It only sees
<my-app></my-app>
It seems that the value of this component is not retrieved at all by google robots.
Is there a best practice / workaround ?
Thanks for your help.
This has been asked a million times. Please refer to this question and this specific page by google.
Times have changed. Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and understand your web pages like modern browsers. To reflect this improvement, we recently updated our technical Webmaster Guidelines to recommend against disallowing Googlebot from crawling your site's CSS or JS files.
What you can do is getting the HTML of your rendered page and inserting it into the <my-app></my-app> tags without user information or the like.
This will get replaced anyway after Angular has booted up, this means you can even put something completely different in there.

If I can't use mailto protocol to open a mail with a html body, then how? [duplicate]

This question already has answers here:
Is it possible to add an HTML link in the body of a MAILTO link [duplicate]
(7 answers)
Closed 6 years ago.
On my website I have a button that I hope visitors would use to share my content by mail.
It's simple, it uses the mailto protocol and it works.
However the message within the mail sucks because it's plain text.
I know there are emails with a html body that makes sharing stuff easier and you can add things like Twitter Cards, Facebook Open Graph and Google+ Markup.
However it seems the two doesn't combine or am I missing something?
I want to be able to send rich HTML emails using the mailto protocol.
I'm currently using a CMS-platform called indexhibit and simply changing to wordpress or something else is not an option.
No you aren't missing something, there is not really any reliable way to send HTML via the mailto protocol, it is essentially intended for short plain-text messages. Some clients may show HTML that is included but it isn't the usual case.
Really the best way for you to handle this would be to make a simple mailer script within indexhibit, written in php, that will allow you to send HTML in your emails.
If you google for "sending HTML emails with php" I am sure you will find lots of examples.

How to include duplicate markup in every web page [duplicate]

This question already has answers here:
How to create a template in HTML?
(3 answers)
Closed 8 years ago.
If all my web pages have the same navigation and footer markup, what is the best way of avoid hard-coding this in every page, so if it needs changing it's only changed in one place so as not to have to edit every html file?
Thanks
A few options:
Use a static HTML generator, which will allow you to use template and pure HTML.
Use server side includes if your server supports them.
Use iframes.
Use any server side language, and its templating counter part (php, jinja2, django, et. al)
Use the AJAX load() method.
$('#mysection').load('yourfile.html');
Of course the URL can also point to a PHP script etc.
http://api.jquery.com/load/
You should use a server-side solution depending on the technology that are you using (PHP,ASP,etc...)
I think you should take a look at this link.