Google Ads

Month: March 2018


Write a PHP script to get the first word of a sentence.

Original String : ‘The quick brown fox” Even though it is little late, but PHP has one better solution for this:

Sample Solution:

Using split function also you can get the first word from string.

 

PHP Code:

 
 
  1. <?php $s = 'The quick brown fox'; $arr1 = explode(' ',trim($s)); echo $arr1[0]."\n"; ?>

or

 
 
  1. <?php echo strstr( $myvalue . ' ', ' ', true ); ?>

 


You can show in page the last word of a sentence.

It depends on what you try to do (it is hard to understand from your description) but to get the last word from a string you can do

 

How it will work?

The code will support according to your php.

 

$split = explode(" ", $string);


echo $split[count($split)-1];

 


 

Submit your website link to google for indexing. When you create a website you need site is found to Google.

Then you can submit it Google.

 

Just go to following address and submit there your website link.

 

If you have any question, you can ask by comment.

 

Go to for submitting url:

https://www.google.com/webmasters/tools/submit-url


What is HTML?

HTML is the standard markup language for creating Web pages.

  • HTML stands for Hyper Text Markup Language
  • HTML describes the structure of Web pages using markup
  • HTML elements are the building blocks of HTML pages
  • HTML elements are represented by tags
  • HTML tags label pieces of content such as “heading”, “paragraph”, “table”, and so on
  • Browsers do not display the HTML tags, but use them to render the content of the page

 


Example

 

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>


Example Explained

  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the document
  • The <title> element specifies a title for the document
  • The <body> element contains the visible page content
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph

 

HTML Tags

<tagname>content goes here…</tagname>


Web Browsers

The purpose of a web browser (Chrome, IE, Firefox, Safari) is to read HTML documents and display them.

The browser does not display the HTML tags, but uses them to determine how to display the document:

 

 



Examples in Every Chapter

This HTML tutorial contains hundreds of HTML examples.

With our online HTML editor, you can edit the HTML, and click on a button to view the result.

You can learn html from this page.

 

 

 

 

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body><h1>This is a Heading</h1>
<p>This is a paragraph.</p>

</body>
</html>


HTML iframe no border

This post is about an iframe without border. It is meant. People are boring see with not match with display. So due to ignorance it Here gives you  HTML iframe no border Code.

So let you use an iframe  without Border.

Then if you have any further word you may ask in comment.

 

 

<iframe src="UR SITE URL" height="200" style="border:0">

Know from this blog SEO All Important Meta Tag For a website.

All major search engines such as Google, Bing and Yahoo have primary search results, where web pages and other content such as videos or local listings are shown and ranked based on what the search engine considers most relevant to users. Payment isn’t involved, as it is with paid search ads.

 

Title, Description, Social Network Meta, Tag, Canonical

 

<head>
<meta charset="UTF-8">
1. <title>Title of Page</title>
Keep a title about 70 characters.
2. <meta name="description" content=""/>
Keep a description about 200 characters.
3. <link rel="canonical" href="URL" />
This meta tag will help avoiding Duplicate Contents, Duplicate Titiles, Short Title, Long Title Etc.

This meta will help for founding duplicate contents, That means you are free from Duplicate Content, Long Title Tag, Short Title Tag Etc.
4. <meta property="og:locale" content="en_US" />
Language of site
5. <meta property="og:type" content="article" />
What is the content? Download Item, Blog, Article ?
6. <meta property="og:title" content="Titile" />
Social Network Titile shares
7. <meta property="og:description" content="Descriptions" />
Social Network Descriptions shares


8. Other important Meta
<meta property="og:url" content="http://horje.com/view/50457" />
<meta property="og:site_name" content="Title" />
<meta property="article:tag" content="Tag Titilr" />
<meta property="article:section" content="Category" />
<meta property="article:published_time" content="2018-03-19T11:50:50+00:00" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:description" content="Descriptions" />
<meta name="twitter:title" content="Title" />
<meta name="twitter:image" content="URL" />
</head>

Your SEO should like them.

Have you any question? You comment below.

Adds .html to pages.
1) Login your wordpress account

2) Now go to settings->permalinks

3) Default permalink structure in wordpress see below
/%postname%/

4)Now remove trailing slash at the end of the permalink structure
And add .html extension at the end of the permalink structure. shown below

EX : /%postname%/.html

Just Add .html

5)Now click on save changes button
Now your are done add html extension in wordpress url
Enjoy Plugin

 

Solved  !

"