Articles by "Javascript"

2019 4G LTE 4G VoLTE 5G 7th Pay Commission Aadhaar Actor Wallpapers Actress Wallpaper Adriana Lima AdSense Ahoi Ashtami Airtel Airtel DTH Akshay Kumar Alcatel Alexa Rank Amazon Android Android Pie Android Q Anna university Antivirus Anushka Sharma apna csc online Apple Apps Army Army App Asthma Asus Atal Seva mirchpur Athletics Auto Auto Insurance Avengers Axis Bank Backlinks Badhajmi Bajaj Bang Bang Reloaded Bank Battery Bhai Dooj Katha Bhakti Bharti Bhumi Pednekar Big Bazaar Big TV Bing BlackBerry Blogger BlogSpot Bluetooth BoB Bollywood Boot Boxing Breathlessness Browser BSEH Bsnl Budget Budhvar Business buy Cable TV Camera Car Car Loan Card Less ATM Cash CBSE Celebrity CEO Chandra Grahan Channels Chest Pain Chhath chrome Clean WhatsApp Cache Common Service Centres (CSC) Mirchpur Hisar Haryana - Front of Jyoti Sen Sec School Mirchpur Comparisons Computer Coolpad Corona COVID 19 COVID 19 HARYANA Credit Cricket Crime CSC Cylinder Dama Dard Deepika Padukone Defence Detel Dhanteras Diamond Crypto DigiLocker App DigiPay App Digital India App Digital Indian Gov Dish TV Diwali DNS setting Domain Donate Doogee DTH DTH Activation DTH Installation DTH Plans in India Dusshera E-seva Kender mirchpur Earn Money Education Electronics Email Entertinment Ex-serviceman Extensions Facebook FASTag Fatigue Festivals FlicKr Flipkart Foldable Smartphone Food Foursquare Funny Gadgets Galaxy Galaxy S8 Game Ganesh ganesh chaturthi Gas Problems Gastric Problem Gharelu Gionee Gmail God Google Google + Google Assistant Google Drive Google Duo Google Pixel Google Tez Google Voice Google+ Govardhan Puja GroupMe GST GTA Guide GuruSatsang Guruvar Hamraaz hamraaz app hamraaz app download hamraaz army hamraaz army app hamraaz army app download Hamraaz Army App version 6 Apk Happy New Year Hariyali Teej Hartalika Teej Harvard University Haryana haryana csc online HDFC Bank Headphones Health Heart Attack Heart Fail Heart Problems Heart Stroke Heena Sidhu Hello App Help Hernia Hindi History Hockey Holi Holi Katha Hollywood Home Loan Honor HostGator Hosting Hrithik Roshan HTC Huawei humraaz app iBall IBM ICICI Bank Idea Ilaj India india vs china indian army app Indigestion Infinix InFocus Information Infosys Instagram Insurance Intel Internet Intex Mobile iPad iPhone iPhone 8 IPL IRCTC iVoomi Jan Dhan Account Janmashtami Japanese Encephalitis Javascript JBL Jio Jio GigaFiber Jio Meet JioPOS JioRail JioSaavn Jokes Kamjori Karbonn Kareena Kapoor Kartik Purnima Karva Chauth Karwa Chauth Kasam Tere Pyaar Ki Katrina Kaif Kendall Jenner Keywords Kimbho Kodak Kumkum Bhagya Kushth Rog Landline Laptop Lava Lenovo Leprosy LET Lethargy LG Library of Congress Lifestyle Linkedin Lisa Haydon Livejournal Liver Cancer Loans LPG Gas mAadhaar Macbook Maha Shivratri Makar Sankranti Map Market Mary Kom Massachusetts Institute of Technology Meizu Messages Mi Micromax Microsoft Mobile Modi Mokshada Ekadashi Money Motorcycles Motorola Movie Muscle Pain Music Myspace Narendra Modi Narsingh Jayanti Nature Naukri Navratri Nemonia Netflix Network News Nexus Nia Sharma Nokia Notifications Nuskhe OBC Ocean Office Offrs Ola Cab OMG OnePlus Online Opera Oppo Oreo Android Orkut OS OxygenOS Padmavati PagalWorld Pain Pain Sensation Pakistan PAN PAN Card Panasonic Passwords Patanjali Pay Payment Paypal Paytm PC PDF Peeda Pendrive Pension Personal Loan Pet Me Gas PF Phone Photo PHP Pila Bukhar Pinterest Pixel Plan PNB Bank Pneumonia PNR Poco Poster PPC Pradhan Mantri Kisan Samman Nidhi Pradhanmantri Kisan Samman Nidhi Yojna Pradosh Pragya Jaiswal Prepaid Princeton University Printer Priyanka Chopra promote my youtube channel promote video on youtube cost promote youtube channel promote youtube channel free promote youtube video free PUBG Qualcomm Quora Quotes Race 3 Railway Rambha Tritiya Vrat RBI Realme Recruitment Redmi Relationship Religious Restore Results Review Rule Sai Dharam Tej Saina Nehwal Salman Khan Samsung Sanusha Satsang Video Sawan Somvar Vrat SBI Bank Script Sell SEO Serial Server Shabd Shahid Kapoor Shanivar Sharad Poornima Sharp Shiv Shopping Shreyasi Singh Shruti Haasan Signal Sim Smart Android TV Smartphones SMS Snapchat Social Software Somvar Sonakshi Sinha Sonam Kapoor Soney Songs Sony Xperia Space Speakers Specifications Sports Sql Stanford University State Bank of India Stickers Stomach Upset Story Sun Direct Sunny Leone Surabhi Sushant Singh Rajput Swadeshi Swas Rog Tata Sky Tax Tech Technology Tecno Telegram Telugu Thakan Tiger Shroff Tiger Zinda Hai Tips Tiredness Tollywood Tool Top Trending People Trading Trai TRAI Rules for cable TV Trailer Treatment Trends True Things Truecaller Tubelight Tulsi Vivah Tumblr Tv Twitter Typing Uber Umang App University of Oxford UP Board Upay Upchar Update USA USB Vacancies Valentines Day Verizon Vertu Viber Video Videocon d2h Videos Vijayadashami Viral Bukhar Viral Fever Virat Kohli Virgin Visas Vivo VLE Vodafone Voter Card VPN Vrat Katha Vrat Vidhi Wallpaper War Wayback Machine Weakness WhatsApp WhatsApp Cleaner WhatsApp Status WhatsApp stickers Wi-Fi WiFi Windows Windows 10 Wipro Wireless WordPress workstation WWE Xiaomi Xiaomi Mi 6 Yeh Hai Mohabbatein Yellow Fever Yo Yo Honey Singh Yoga yojna YotaPhone YouTube youtube promotion youtube promotion free ZTE अपच अस्थमा आलस्य इलाज उपचार उपाय उमंग ऐप कहानियाँ कुष्ठरोग कोरोना वायरस गुरुसत्संग घरेलू जन धन योजना जापानी इन्सेफेलाइटिस डिजिटल इंडिया डिजिटल इंडिया अप्प्स डिजिपे ऐप डिजीलॉकर ऐप थकान दमा दर्द निमोनिया नुस्ख़े पीड़ा पीतज्वर पीला बुखार पेट में गैस पैन कार्ड प्रधानमंत्री किसान सम्मान निधि बदहज़मी भक्ति मांसपेशियों में दर्द लीवर कैंसर वायरल बुखार वोटर कार्ड शब्द सच्ची बातें सत्संग वीडियो सरसों सीने में दर्द स्कीम स्वास रोग हर्निया
Showing posts with label Javascript. Show all posts

Use the proper keyword & you will get more search engine traffic.
The Importance of Keywords in SEO: A Beginner’s Guide
Optimize your website/blog keyword & it would help you rank faster.

How many times have you got such advice when you have started to learn about SEO? Keywords are the first thing that you should know & learn about when start to optimize your blog SEO.  This guide is written for a beginner like you to understand the most fundamental concept of SEO & i.e. Keywords & their importance.
Let’s start with the basics & if you have been blogging for a while,  your 95% of traffic is coming from 5% of your posts. What I meant to say, you will be getting maximum search engine traffic on few hand-picked post of yours. Have you ever questioned why these posts are getting so much traffic? You must have done something right.
Isn’t it?

The reason is, unknowingly some of your post are ranked on the first page for keywords that are highly searched by users globally or in a specific region of the world. The thing that you need to think here is, who is the one ranking your content? By the end of the day, it’s a machine language (Algorithm), which looks for certain signals to rank the content.

When I say ranking of the content, what do I meant by ranking? In this context, it meant ranking for a specific keyword. Let me simplify the example for you.

You can go to SEMRUSH site & type your blog address to see which keyword your blog posts/pages are ranking for.

Try to understand the concept from the image. (Even if you don’t understand 100% of it at the first time, don’t worry as this is normal for a beginner).

Keyword: This is the Keyword, which is driving traffic to a specific URL of my blog. (We also call it target keyword, or keyword one is trying to rank for).

Pos.: Position of the keyword in Google search. Your target should be rank on the first page of the Google for your target keyword.

Volume: This is another important aspect as it helps you to understand how many people are searching for a keyword in a month. Try to see this as more human than in technical term. When you go to Google to look for a solution, similarly others look for a similar solution, but they may be using a different term than yours. Google keeps a data of how people are searching & let you see the number of monthly searches for any keyword. This way, you will be able to find the keyword that gets more searches than a keyword that gets fewer searches. In the above example, you can see two similar keywords have a considerable amount of difference in monthly search volume:

I will let you know how to target keyword at the later stage, but at this time try to grasp the most fundamental part of SEO.  While we are on it, you also need to understand two more terms:

Short tail Keywords: Short keywords those are 1-3 words. Ex: Make money blogging, Professional email
Long Tail Keywords: More specific keywords that could be three words or longer.Ex: How to make money blogging, How to get professional email
Any words are qualified as a keyword when it has a considerable amount of searches (Search volume) in a month.
Long tail keywords are more profitable as you will drive more targeted traffic & your chances of ranking on the first page are higher. More on this later, for now understanding the all the terms is more important. If you have missed something, it’s ok to go back & re-read the concept of Keywords in SEO.

It’s true that writing quality posts will help you to drive traffic, but have you ever asked yourself why you are still not ranking in Google searches for any keyword, or why your quality posts stop getting traffic after some time has passed?

What is the importance of keywords from the perspective of SEO?

If you have understood the basic concept of Keywords, now let’s dive into a little deeper into it. When we SEO optimize a blog post or a web page, we have the option to define our target keywords. This is most commonly known as Meta_keywords. Back until 2012, it was important to specify Meta_keywords (Keyword you are targeting), but in 2017, it’s not of any use. The search engine has become smarter to auto-detect keywords & rank your pages automatically.

Google has already made it clear that they do not consider meta keywords when selecting keywords, and this makes sense because many bloggers who are new to blogging or article writing add lots of keywords in their posts.

For example, one would write the following meta keywords for this post that you are reading: “keywords tips, SEO, keyword research”, and so on.

Now ask yourself – would anyone who is searching for “keyword tips and tricks” want to see this article first? Personally, I would not like to rank for these keywords, because people will land here and then leave the blog. This will impact my bounce rate, and also my average time on site.

How to start with keyword research:

Keyword research is the process of finding the right keyword in your niche. This step is important if you wish to grow your blog/website in a shorter span of time & make money. There are various ways by which you can find keywords & here I’m outlining few based on my preference.

SEMRUSH:

This is an online tool that let you find great keywords, or you can also put in URL of a website, & it would show all the keywords that website is ranking for. (See the 2nd screenshot of this article, which is taken using SEMRUSH).

A good idea is to start by picking the top blogs in your niche & add it to see which Keyword those sites are ranking for. From here you just need to start building unique & high-quality content around those keywords. This is a paid tool but you can get 15 days free trial, which is worth $150 using this link.

Keyword tools:


  • Keyword planner tool (This is free but not as simple as SEMRUSH)
  • Ahrefs: This is an alternative to SEMRUSH which is also popular among SEO users.

How to use Google instant search for quick keyword ideas:

You can also use Google Search to find your target keyword, like this. Google auto suggest search query when you type anything, and it’s a good place to start the primary search. You can create a list of keywords using this technique & use SEMRUSh or Google keyword planner to check the search volume for all the keywords.

Keyword density is a complex topic. This Wiki article will give you a fair idea of how keyword density is calculated. Depending on the target keywords, (long tail or short tail), you maintain a particular percentage of keyword density. When bots crawl your page, they can determine from the density that which particular keyword page should rank for.

Keyword targeting is important but stay away from keyword “stuffing”, which is the overuse of keywords on a web page, as this will ultimately be harmful to your ranking.

Different SEO ninjas have different ideas about keyword density, but your main keyword should not be more than 2% of the article length.  I try to keep it between 1-1.5%, along with related search terms or that are known as LSI keywords. You can learn about LSI Keywords here & here is a free LSI keyword finder tool.

Do remember, you can target more than one keyword on a blog post or a page. I would suggest don’t keep it more than three as; if your content is of high quality, you will rank for indirect long-term keywords.

What does keyword stuffing do?

Stuffing your articles with keywords is never a good idea. Overuse of keywords alerts Google bots to the fact that you are “spamming” your post by stuffing it with unnecessary keywords. Google penalizes for this action, as spiders are alerted to the fact that you are trying to trick the system by using lots of keywords many times. This can affect your ranking.

So be wise when you select the number of keywords you are using for SEO. Particularly since Google Panda, I highly recommend that you stop taking SEO actions that do not appear to be natural. If you are not sure about your SEO practices, use our free forum to ask a question.

Meta title, meta description and meta keywords:

Now you have searched for a perfect keyword, and you are delivering it into a post or a page. Try also to use that keyword as part of the title of the post.

One additional tip: Try not to use numbers in your permalink, because in the future if you want to extend the article by adding plugins or sites or additional information, your number will no longer make sense.

Adding a relevant meta description will give more insight about your page to search engine bots. I suggest that you use your keyword in your meta title, meta description and meta keyword field along with an H1 tag. Also, try to write more SEO friendly articles by using H1, H2, and H3 tags. However, don’t overuse heading tags, as improper headings and too many H2 or H3 tags can lead to a negative ranking.

Still not convinced?

Here is a post that I wrote as a guest blogger on another blog, using target keywords “Google Panda Penalty“. Read and analyze the post, and you will realize the extent of the on-page optimization I have done to make this post reach the number 1 position in Google. The article is very detailed, and I’m sure it will help you to learn to write better SEO optimized articles.

What next?

Now that you are aware that keywords play an important role in SEO, your first task is to find 5-6 profitable keywords for your next post. You can use the Google Keyword Tool, SEMRUSH  or any other online tool. Here is the updated list of best Keyword research tools. Write a post on your target keyword, and use any of these Google keywords rank tracker sites and keep track of your keyword positions.

If you find the information useful, please share it with your friends and colleagues on Facebook, Twitter and Google Plus.
































How to design a website for mobile devices (smart phones). Next web world with smart phones so start working on mobile templates. In this post I want to explain very basic HTML design tip with adding a meta tag.

Normal site
Contains HTML code. CSS width style fixed with pixels. width : 900px
<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Normal Website</title>
<style> 
#container
{
width:900px;
}
</style>
</head>
<body>
<div id="container"></div>
</body>
</html>

Mobie site
Contains HTML code. CSS width style with percentage. width : 100% . Take a look at META tag viewport.
<html>
<head>
<title>Mobile Website</title>
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport" />
<style> 
#container
{
width:100%;
}
</style>
</head>
<body>
<div id="container"></div>
</body>
</html>

META tag viewport for Iphone
Width fixed 320
<meta content = "width = 320,initial-scale = 2.3, user-scalable = no" name = "viewport" />

META tag viewport for all smart phone devices (recommended
Auto width adjustment. 
<meta content = "width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name = "viewport" />

Long days back I had posted an article Pagination with jQuery, MySQL and PHP with out refreshing page. Modified old script and added extra features like First, Previous, Next and Last buttons. Use it and enrich your web applications.


ySQL messages table contains two columns msg_id and message
CREATE TABLE messages
(
msg_id INT PRIMARY KEY AUTO_INCREMENT,
message VARCHAR(150)
);

JavaScript Code
This script works like a data controller.
<script type="text/javascript" src="http://ajax.googleapis.com/
ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{

function loading_show()
{
$('#loading').html("<img src='images/loading.gif'/>").fadeIn('fast');
}

function loading_hide()
{
$('#loading').fadeOut();
}

function loadData(page)
{
loading_show();
$.ajax
({
type: "POST",
url: "load_data.php",
data: "page="+page,
success: function(msg)
{
$("#container").ajaxComplete(function(event, request, settings)
{
loading_hide();
$("#container").html(msg);
});
}
});
}
loadData(1); // For first time page load default results
$('#container .pagination li.active').live('click',function(){
var page = $(this).attr('p');
loadData(page);
});
});

</script>

load_data.php
Contains PHP coding. Displaying data from the messages table.
<?php
include('db.php');
if($_POST['page'])
{
$page = $_POST['page'];
$cur_page = $page;
$page -= 1;
$per_page = 15// Per page records
$previous_btn = true;
$next_btn = true;
$first_btn = true;
$last_btn = true;
$start = $page * $per_page;
include"db.php";
$query_pag_data = "SELECT msg_id,message from messages LIMIT $start, $per_page";
$result_pag_data = mysqli_query($query_pag_data);
$msg = "";
while ($row = mysqli_fetch_array($result_pag_data,MYSQLI_ASSOC))
{
$htmlmsg=htmlentities($row['message']); //HTML entries filter
$msg .= "<li><b>" . $row['msg_id'] . "</b> " . $htmlmsg . "</li>";
}
$msg = "<div class='data'><ul>" . $msg . "</ul></div>"// Content for Data
/* -----Total count--- */
$query_pag_num = "SELECT COUNT(*) AS count FROM messages"// Total records
$result_pag_num = mysqli_query($query_pag_num);
$row = mysqli_fetch_array($result_pag_num,MYSQLI_ASSOC);
$count = $row['count'];
$no_of_paginations = ceil($count / $per_page);
/* -----Calculating the starting and endign values for the loop----- */

//Some Code. Available in download script 

}
?>

db.php
Database configuration file, modify username, password and database values. 
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'database');
$db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE);
?>

My last post explained about New Twitter design basic layout with CSS and Jquery. In this post I want to explain how to expand URLs like new Twitter user interface using jquery, ajax and PHP. It is very easy just implementing with oembed jquery media plugin.

Database
MySQL messages table contains two columns msg_id and message
CREATE TABLE messages
(
msg_id INT PRIMARY KEY AUTO_INCREMENT,
message VARCHAR(150)
);

Index.php
Contains simple HTML and PHP code. In left class contains messages table records.
<div id='container'>
// Right part
<div class='right'>
</div>

<div id="panel-frame">
<div class="panel">
<div class="head"> <a href="#" class="close">Close</a></div>
<div class="data">// Message id</div>
<div class="final">// Message </div>
<div class="expand_box">// Expanding URL area</div>
</div>
</div>

//Left Part
<div class="left">
// Message display here
<?php
include('db.php');
include('tolink.php');
$sql=mysql_query("select msg_id,message from messages order by msg_id desc");
while($row=mysql_fetch_array($sql))
{
$id=$row['msg_id'];
$message=$row['message'];
$message=tolink($message); // tutorial link click here
?>
<div class="block" id="<?php echo $id;?>">
<?php echo $message;?&gt;
</div>
<?php 
}
?>
</div>


Javascript
$(".block").click(function(){})block is the class name of DIV tag. Using $(this).attr('id')- calling DIV tag ID value and $(this).html() - calling DIV tag data. Here you have to include jquery.oembed.js plugin download link
<script type="text/javascript" src="http://ajax.googleapis.com/
ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.oembed.js"></script>
<script type="text/javascript">
$(document).ready(function()
{

$('.block').click(function()
{
var id= $(this).attr('id'); // .block ID
var msg= $(this).html(); // .block DIV data
var data_id= $(".data").html(); // .data DIV value
var panel= $('.panel');
var panel_width=$('.panel').css('left'); // rolling panel width
//-Expanding URLs--------------------------------
$('.data').html(id);
$('.final').html(msg);

function expanding_url()
{
var dataString = 'id='+ id;
$.ajax({
type: "POST",
url: "newtwitterajax.php", // Expanding URL 
data: dataString,
cache: false,
success: function(data)
{
$('#expand_box').show();
$('#expand_box').html(data);
}
});
}

//---------------------------------

if(data_id==id)
{
// Rolling Animation
panel.animate({left: parseInt(panel.css('left'),0) == 0 ? +panel.outerWidth() : 0});
//--------------------------------
if(panel_width=='341px')
{
$('#expand_box').hide();
}
else
{
expanding_url();
}
//--------------------------------
}
else
{
expanding_url();
// panel width CSS width:340px + border:1px = 341px
if(panel_width=='341px')
{
// No rolling animation
}
else
{
// Rolling Animation
panel.animate({left: parseInt(panel.css('left'),0) == 0 ? +panel.outerWidth() : 0});
}
}
// passing id value to <div class='data'$gt; </div>
$('.data').html(id);
return false;
});

// panel close link
$('.close').click(function()
{
var panel= $('.panel');
panel.animate({left: parseInt(panel.css('left'),0) == 0 ? +panel.outerWidth() : 0});
$('#expand_box').hide();
return false;
});

});
</script>

newtwitterajax.php
Contains PHP and javascript code. Here calling message record from messages table where msg_id = .block id and calling oembed JavaScript function. If you want to display more details about message(Retweet information) write your code.
<?php
include('db.php');
if($_POST)
{
$id=$_POST['id'];
$sql=mysql_query("select message from messages where msg_id='$id'");
$row=mysql_fetch_array($sql);
$message=$row['message'];
?>
<script type="text/javascript">
$(document).ready(function()
{
$("#expand_url<?PHP echo $id; ?>").oembed("<?php echo $message; ?>", {maxWidth: 300, maxHeight: 200});
});
</script>
<div id='expand_url<?php echo $id; ?>></div>
<?php
}
?>

CSS
.data
{
font-size:16px;
display:none;
}
.final
{
overflow:hidden;
padding:20px;
font-size:24px;
}
#expand_box
{
position:relative;
position:absolute;
padding-left:30px;
}
#expand_box img { width:250px; }

db.php
PHP database configuration file
<?php
$mysql_hostname = "Host name";
$mysql_user = "UserName";
$mysql_password = "Password";
$mysql_database = "Database Name";
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database");
mysql_select_db($mysql_database, $bd) or die("Could not select database");
?>

Digitalindiagov.com

Satish Kumar

Contact Form

Name

Email *

Message *

Powered by Blogger.