Notes 1063 UNIT-4
Notes 1063 UNIT-4
• Read data from a web server - after the page has loaded
• Update a web page without reloading the page
• Send data to a web server - in the background
• AJAX is not a programming language.
xhttp.onload = function() {
// What to do when the response is ready
}
Open and send a request
To send a request to a server, you can use the open() and send()
methods of the XMLHttpRequest object:
xhttp.open("GET", "ajax_info.txt");
xhttp.send();
document.getElementById("demo").innerHTML = xhttp.responseText;
The responseXML Property
• The XMLHttpRequest object has an in-built XML parser.
Offline, bustling crowds pass by your Online, people search for information.
place of business. Some of the passerby Millions of people. Each searches alone.
traffic notices you and walks in.
• 85%* of all Web site traffic and 70%* of all online purchases
originate from a search engine. (*Jupiter Research)
Definitions
SEO and SEM Strategies
Definitions
• SE - Search Engine is a tool that enables users to locate information
on the World Wide Web. Search engines use keywords entered by
users to find Web sites which contain the information sought.
6. Alt tags
Keywords
Search engine marketing/cont’d
Paid placements - Google
Paid placements
SEO for entire websites
Hyperlinks
Hyperlinks are connections established
between a word/phrase/image and a
website/file. The World Wide Web is based on
hyperlinks. Most often we access websites by
clicking hyperlinks.
• SEO stands for Search Engine Optimization which
defines the optimization of how a website can be
reached through search engines. This process
also involves hyperlinking.
Unintentional duplicate content can happen for a number of reasons – secure HTTPS pages,
URL parameters, and CMS templates. Fortunately, many tools can detect duplicate content,
including Screaming Frog, Link Sleuth, and Moz Crawl Test. Once it is discovered, you have
to decide how to best to tell search engines not to index certain duplicate pages either through
the Noindex, Nofollow, or rel=canonical tags.
2. Bad backlinks
Though link building is still an important part of SEO, not all links are good links. Bad
backlinks, such as links from irrelevant pages, link directories, and spammy websites, can
actually hurt your search-engine rankings.
To fix bad backlinks, gather your backlink data from Open Site Explorer or MajesticSEO and
remove links that look unnatural. This isn’t an easy feat as it is a very manual outreach
process asking webmasters to remove links on their site. But it is imperative to uphold your
search-engine rankings and credibility in Google’s eyes. Also, use Google’s link disavow
tool to tell Google not to consider certain links when ranking your site.
Too long: Search engines only display the first 60 or so characters of a web page title
tag, so a title tag that’s too long will be cut off.
Too short: Though you don’t want the tag to be cut off, you also want to make sure
to maximize the available text space so you don’t give up prime SEO real estate.
Irrelevant/wasted space: Including words like “home” or your domain name can be
a waste of space. With a finite number of characters, your title tag needs to include the
most important information – the relevant keyword/term for that specific page.
5. Meta descriptions
Similar to a title tag, the page’s meta description is displayed on the query’s results page.
However, all too often pages have poorly written meta descriptions that are full of keywords,
or worse, no meta description at all.
A good meta description is useful to the reader, and should explain what the page is about in
a short sentence. It should include the primary keyword or phrase, but still make sense to the
person reading it.
6. Image optimization
Image optimization is also a significant part of an SEO strategy. Search engines can’t read
images (unlike text) so they aren’t easily indexable. Best practices include optimizing image
meta data with relevant keywords and phrases:
Alt tags serve as the text shown when an image cannot be displayed because of a slow
internet connection or text-reading software. The alt tag explains what the image is.
Image tags are the words that appear when the user scrolls over an image, providing
additional contextual clues.
File names go one step further in providing context – more specifically, how the
image relates to the other content on the page.
7. Page-load time
Page-load time is one of the 200 ranking factors that Google uses. However, page-load time
also is a huge factor in usability; if a page takes too long to load, users won’t stick around.
There are many ways to optimize page-load time, including using appropriate image sizes
and formats, avoiding unnecessary plug-ins, CSS, and HTML, and reducing redirects.
8. Poor content
Thin content and/or disregard for the user are the more common mistakes we see. Write
more. Answer your audiences’ questions through useful data, tips, and visuals. Since the first
Panda update, Google has been doing its best to disregard results that aren’t useful to users.
This can be easily combatted by always keeping the audience in mind when creating and
publishing content.
9. Keyword misfocus
Keyword misfocus is when a primary keyword in the title tag doesn’t match the H1 heading,
page URL, body content, or images. Page improvement and keyword misfocus can be
effectively corrected through strategic internal anchor text links, content consolidation, and
proper rel=”canonical” tag implementation to effectively strengthen the primary page with its
intended keyword.
Each of these 10 SEO pitfalls can result in lower website rankings, as well as a poor user
experience. From unintentional duplicate content and bad backlinks to slow page-load time
and low-quality content, all are fixable. Without these mistakes holding you back, your
website will be on its way to the top of the SERPs.