GoDaddy Expects Full Year Revenue of $3.75 Billion, Representing 13% YoY Growth

posted on August 12, 2021

tags:

Global web hosting provider GoDaddy, in the second quarter, reported a total revenue of $931.3 million, representing an up of 15.5% Year over Year, or 14.3% on a constant currency basis. For the full year, GoDaddy expects to report revenue of approximately $3.75 billion, representing 13% year over year (YoY) growth.

Bluehost Unveils Website Builder for WordPress Websites

posted on August 10, 2021

tags:

Global web hosting provider Bluehost has launched its Bluehost Website Builder solution - a smart-design editor for WordPress. As a tool, Bluehost’s Website Builder would simplify the website creation process while maintaining the full power of WordPress.

Web Hosting Company Name.com Starts Reselling DigitalOcean Droplets

posted on August 10, 2021

tags:

Name.com, web hosting provider and ICANN accredited domain name registrar from Denver, Colorado, has started reselling DigitalOcean Droplets directly to its clients, expanding its product line to include “best-in-class” cloud computing.

HostPapa Buys Uptime Monitoring Software Provider UptimeMate

posted on July 26, 2021

tags:

Canadian web hosting and cloud service provider, HostPapa, has acquired website monitoring service provider, UptimeMate. Based in the Groningen, the Netherlands and launched in 2019, UptimeMate would provide website owners with easy-to-use website monitoring software-as-a-service without the requirement for technical skills.

Configuring your website in WinSCP

posted on July 22, 2021

tags:

Configuring your website in WinSCP *********************************** 👉 Facebook: https://www.facebook.com/canadianwebh… 👉 Twitter: https://twitter.com/cawebhosting 👉 LinkedIn: https://www.linkedin.com/company/cana… 👉 Instagram: https://www.instagram.com/cawebhosting/ Please consider subscribing to our YouTube channel to see more content like this! 😄 *********************************** Canadian Web Hosting is a Vancouver-based web and cloud hosting company. We specialize in hosting business and enterprise-class clients from around the […]

HostBill Clients Can Now Resell marketgoo SEO Tools

posted on July 15, 2021

tags:

HostBill a flexible, all-in-one automation, billing, client management and support platform for online businesses, has integrated marketgoo’s SEO tools in its offering. The integration comprises of a specialized module that allows HostBill clients to resell marketgoo’s SEO tools to their own clients, allowing them to further grow their online business.

5 Important Things to Know about Offshore Web Hosting

posted on July 15, 2021

tags:

Web hosting is an important part of running a successful website. If you’re looking for web hosting, it’s important to understand what is available and the benefits that come with each type. 

This article will discuss offshore hosting, which means hosting a website on a server that is located outside of your country. So if you’re considering opting for an offshore web host for your business site, here are five important things to know.

Offshore Web Hosts Value Data Privacy and Anonymity

If you want to run a website in the United States and you’re worried about your personal data being made public, offshore web hosting is the right option for you. The servers are located in other countries that have laws protecting information and restricting it from being shared with the government or any third party without consent. For instance, offshore web hosts from the Netherlands are praised for their strict data protection, as well as known to protect against identity theft. 

Certain offshore providers also accept more anonymous payment methods (such as Bitcoin), which help maintain the confidentiality of your personal information. 

They Have a Flexible Content Policy

Freedom of expression is still an issue in certain parts of the world. In some countries, content that is considered distasteful or offensive can be censored and taken down in an instant without warning. Offshore web hosts offer a more lax approach to this by only removing illegal material like child pornography and terrorist websites. This means you can host gambling and sites with adult content without fear of being shut down in an instant.

They also protect you from DMCA claims so you won’t have to worry about your site being taken down due to copyrighted content. This is crucial if you plan to start a video streaming website. In this case, you might want to check out some unlimited bandwidth VPS solutions as they will ensure great performance and security for your streaming site.

Offshore Web Hosts Provide Fast Load Times

It’s important to think about how your site will perform when it comes to loading times. Keep in mind that your site will load faster if it’s on a server that’s closer to your visitors. 

This is why offshore web hosts are such a good option. They have servers all over the world so your visitors will be closer to them, and this means faster load times for you. And let’s not forget that a fast site is crucial for good user experience and better conversion rates.

Offshore Providers Can Help Expand Your Business

One of the best benefits of using offshore web hosting is that it gives you access to potential customers in any country, so if your company already has an online presence but wants to reach new markets, this type of website hosting would enable your company to do so. They also offer great customer service which allows them to quickly deal with any problems so they don’t hinder your growth.

In case you need to scale your website, offshore hosts can make it happen in no time! You’ll be able to effortlessly upgrade your hosting from shared hosting to a VPS plan in case your web traffic starts growing. Just make sure to choose a web host that also lets you customize your virtual private server. 

Offshore Hosting Can Help You Save Money

Many offshore hosts provide low-cost solutions that can help you save on hosting fees, without sacrificing any of the features or functionality that is offered. Additionally, choosing a web host in a country with less strict tax policies can provide a significant advantage for your company, in terms of savings.

With offshore hosting, you can get secure and scalable solutions for your business website for an affordable price.

Conclusion

Choosing a web host is a very important decision for any company, and there are many factors that must be considered before making the final choice. Offshore web hosting can be a great choice for anyone looking for anonymity, security and freedom of expression for their site. 

There’s a lot more information in this area than most people realize, and these tips should serve as an eye-opener for anyone looking into getting their company online with a website that reaches all corners of the world!


avatar

Damien Reed is the lead writer for Prospected and UncensoredHosting. He covers various topics including business, technology, and digital marketing. He has over five years of experience in writing for different online mediums, and his work has appeared on sites such as Freelancer, HackerNoon and CodeMentor.

The post 5 Important Things to Know about Offshore Web Hosting appeared first on SiteProNews.

rankingCoach Integrated as Marketing Suite Into 123 Reg’s UK Web Hosting Offerings

posted on June 30, 2021

tags:

rankingCoach’s digital marketing package for small companies has been fully integrated with the services of 123 Reg, a web hosting company from the UK. RankingCoach has gained a significant reseller-partner as a result of this transaction, allowing them to expand their footprint in one of their largest and most important regions.

What is the best SEO technique so far to get the quality backlink?

posted on June 13, 2021

tags:



Our team has been working hard on outreach emails, backlink exchanges, and writing articles. In less than a year, our search traffic tripled, Nightwatch has been listed as one of the best SEO tools available on the market, and our users’ base has been steadily growing ever since.

Let’s explore some of our favorite and most successful link building strategies:

1. Link reclamation — unlinked mentions

Link reclamation does not have to be limited to fixing the broken links (which you can identify using Nightwatch for example). It relates to any opportunity where your brand or resource is mentioned and could be linked to, but is not.

Missing out on the opportunity to get a backlink for your brand where your business is already mentioned is like passing on the 5000 sales just because you forgot to include the “buy” button.

To understand and master how you can use link reclamation to your technique, you need the right tools. Our recent discovery — Brand24 has been a massive help in discovering new potential backlinks opportunities.

It’s a social listening tool which allows you to “access the mentions about your brand across the web, from social media to influential publishers.” You can monitor relevant keywords and spot the opportunities for a backlink.

With Brand24, we’ve identified the unlinked mentions to Nightwatch landing page, as well as discovered SEO-related forums and Twitter users who are talking about our tool. We’ve also taken advantage of monitoring certain keywords, such as “SEO tool” or “backlink tracker” to get an insight into the industry and our potential target audience.

Here’s how the dashboard looks like:

So if monitoring and “fixing” broken links seems daunting, start with monitoring your brand’s mentions and relevant keywords where you could ask the authors to link back to you. Easy enough, right?

Action steps:

1) Start using a tool to monitor the SEO performance of your website, for example, Nightwatch, and a social listening tool, such as Brand24.

2) Identify broken links on the external websites and reach out to owners to replace the link with the working one. And yes, you can do that in Nightwatch backlinks tracker.


3) Start monitoring the keywords related to your brand. In our example, it could be “SEO tool” as well as your brand name. Then, ask the website’s owner to link to your page.

Bonus tip: After identifying broken links or unlinked mention try to connect with website owners before you reach out to them for a favor, for example, using social media.

2. Comments

Disqus

The era of posting the comments with the link to your website anywhere possible and Google giving it the importance in your search rankings is, thank God, over. It seems like nobody misses spammy, irrelevant comments popping up under each of the published articles, and the marketers community got over it fast as the party was over.

Does it mean that comments have absolutely no value now?

This still seems to be rather a mystery, though nobody has doubts that blog commenting got labeled as a much less relevant SEO strategy than it used to be. Data shows that Google might be giving little importance to this user-generated content, but you could take advantage of it using the same way you would use social media: connecting with relevant people and identifying backlinks opportunities.

We particularly like to use Disqus, because it is stated to be crawlable (though the indexing is out of their hands), meaning potentially SEO-friendly. In addition, their system is easy to manage with a built-in spam filter, and it seems like it is widely used by many high-quality marketing-related blogs, so the commenting is fast and easy.

Bonus tip: Start tracking the blogs and the number of comments you write and use it later to connect with the bloggers using the outreach.

3. Guest posting

Writing articles for other blogs, especially those with high domain authority (DA) is a neat strategy which search engines are willing to reward. Guest posting is a fairly common practice which brings you not only a valuable backlink but also an increased brand awareness, connections, and recognition as an expert in the industry.

It does take effort, resilience, and a creative mind. If we can sell you our tip here, that would be: experiment with your guest posts pitch and outreach method!

It took us a while to master our pitch, and we did not limit ourselves to emails. We’ve also used Twitter DMs and LinkedIn to build connections and reach out to potentially interested bloggers. And it worked like a miracle, so you might want to consider adding it to your outreach strategy, too.

To learn more about creating an effective guest posting strategy make sure to read our article about acquiring 150+ high-authority backlinks in 8 months with blogger outreach.

Bonus: You can also download or copy our guest post content calendar template as well as our list of high DA marketing blogs accepting guest posts and add your own.

What’s the most important part of link building? Experiment, experiment, experiment! Link building is a long-term game, and you will eventually rip the benefits.

The Best Practices for Using Citations in Your Content

posted on June 12, 2021

tags:

In a recent article, we identified citations as one of the next big things in SEO content. Citations are nothing new in the world of copy. Any copywriter worth his or her salt will know exactly how to go about building a basic citation into online content. As for the rest of us…well, if it’s been a while since we were in school, tackling citations may pose a bit of a challenge. Since these handy little credibility builders are the next big thing in SEO content, we think it’s high time for a crash course in citations that includes some best practices to put to use.

What Is A Citation?

According to Forbes, a citation boils down your company (and hopefully your website) being mentioned on someone else’s website. The sentence you just read is a citation. It’s one of the simplest things to build into content. It doesn’t take a lot of technical understanding or fancy formatting. Overall, citations are easy to create. The true footwork is in ensuring your citations are the best.

10 Best Practices You Need To Implement Today

I don’t know how well you remember good old essay writing from your college days, but let’s talk about that for a moment. Back when I was in college, I had to ensure all of my essays and papers adhered to APA formatting. APA guidelines had very stringent requirements for in-text citations and a reference page. At one point, this aspect of writing was the bane of my existence. I hated it with a passion because it took so much time.

In stark contrast, citations in the online world are a breeze compared to my academic days, but the old college writing taught me something important. Authoritative sources are highly desirable to everyone, no matter if the purpose of the content is directed toward academics or business. I also learned that consistency was key. In much the same way, today’s citations for content depend on authority and consistency, which means that although you don’t need to purchase a textbook for the guidelines, there are still basic rules to uphold.

Practice 1: Picking the Right Source(s)

You must ensure that any source you choose to cite meets some basic criteria. Here’s the scoop:

  • Relevancy: First and foremost, any source you choose to cite must be relevant. We cannot stress this point enough. If you cite and link to a source simply to build a link or attempt to appear credible, you’ll effectively stab yourself in the back if the source is irrelevant. The right sources will contain information that is relevant to your topic and ultimately be relevant to your business, including your products and/or services.
  • Authority: The sources you choose to cite must be authoritative. In all reality, they should be presenting facts and/or statistics that back up the claims you are making.
  • Non-Compete: The last thing you want to do is inadvertently point your audience to the competition. Refrain from citing any content that is found on a website offering products or services similar to yours.

Practice 2: Be Picky About Domain Authority

We’re going to let you in on a little secret. Are you ready for this? Domain authority (DA) isn’t easy to build. It takes time, great attention to detail and a hefty collection of highly authoritative content. Not to mention, all of that content needs to be credible. So, how can you tell that you’ve picked the best possible source to cite? One indicator is a website’s DA.

Websites with high DA scores are considered to be more authoritative and credible versus websites with low DA scores. Luckily, there’s a handy, free tool that you can use to see a website’s DA.

It’s called the MozBar. All you have to do is download the browser extension and turn it on. You’ll immediately see the DA of any website you visit or any site that displays on a search engine results page.

Your goal should be to link to websites with a high DA. Websites with 80 and higher DA scores are extremely favorable, but you can realistically shoot for linking to any website that scores higher than 50.

Practice 3: Properly Linking To the Source

There’s a concept you need to understand about citations up front. Casey Meraz makes it bluntly clear in his blog on Moz entitled, Finding and Building Citations Like an Agency. To paraphrase his point, he says that citations aren’t about chasing links. In fact, they are about properly linking to a source that backs up the claims you are making or supports your topic through facts, statistics, a case study, and so forth.

Properly linking to a source is as simple as linking to the page you’re pulling the information from. It’s exactly what you’ve seen us do in our above links to ‘Moz,’ ‘MozBar’ and ‘Forbes.’ You will have some play in how you build your citations when introducing the source, but incorporating the link in text that either identifies the source or indicates what is being talked about is a must.

Practice 4: Properly Linking To the Author

It’s easy to build citations that link to the source, like in the previous best practice point where we link to content to Moz by building the link into the anchor text, “Moz.” However, it’s important to remember that variety is the spice of life. We don’t need to always link to just the source we’re citing. We can highlight the author behind the material and link to him or her also.

Linking to an author is a great way of networking. It’s also a pretty amazing way to increase your chances of getting noticed and maybe earning a link back to your website. So how do you properly link to an author? We demonstrated it for you in the previous best practice point because showing is better than telling. Here’s the quick review: We referenced the author by stating, “Casey Meraz makes it bluntly clear…” and we linked Meraz’s name to his Twitter account.

Practice 5: Keep Your Anchor Text Relevant

It is imperative that your anchor text be relevant to what you’re linking to! We cannot stress this best practice enough. The reader (and ultimately Google) needs to see the relevancy of your citations; otherwise, they are pointless. We recently published a blog about keyword rich anchor text, in which we discuss just what keyword anchor texts are and how they are used. You should definitely swing over and review the post because it’s a great starting point for keeping your anchor text relevant.

Practice 6: Only Link to a Source Once

You can cite a source numerous times in the same piece of content, but you only want to link to that source once. Duplicate links aren’t a good idea, and they don’t send out a positive SEO signal. Think of duplicate links as duplicate content: Unfavorable and potentially harmful.

The best practice when linking to a source is to create the link in your very first citation. Throughout the rest of the content, simply reference back to it by saying things like:

  • According to [insert source]…
  • [Insert source] also states that…
  • [Insert source] goes on to show that…

Practice 7: Change How You Link Throughout the Content

You can link the name of every source throughout your content, but it gets kind of boring. Not to mention, simply linking to that name may not effectively display the relevancy of the content to yours. It’s recommended to change how you link throughout your content.

For example, if your first citations read, “According to Forbes…” and you build the link into the anchor text “Forbes,” try rotating to more of a descriptive text anchor in your next citation. Your next linked citation could be anchor text along the lines of “in a 2014 study.” You can also see an example of our changing over to more descriptive anchor text in best practice point number five.

Practice 8: Always Cite and Link When Using a Direct Quote

A fine line exists between a properly cited quote and plagiarism. It’s perfectly OK to include direct quotes in your content. In fact, it can be a great way to drive home a point. But you have to approach direct quotes with care. If they are not properly credited (i.e. cited), they can quickly land you on the plagiarism offender’s list.

The best practice for direct quotes is to link directly to the source of the quote either immediately before or after the quote itself. The anchor text that houses the link should be either the name of the individual or the business you are quoting. Be sure you know the exact source when using a direct quote. If there’s any question, it’s probably best to alter or paraphrase the quote versus creating a credit that could be incorrect.

Practice 9: Don’t Forget To Link Internally

It’s easy to get so caught up in linking to external sources that you don’t bother to create any internal links. Don’t make this mistake. You should always try to link internally, whether it’s to a previous blog or piece of content that is relevant to the topic being discussed, or to your own product or service. The key to creating a strong internal link is relevancy.

Practice 10: Don’t Overdo It

The final best practice is a word of caution. Citations are truly powerful tools for building credibility, increasing your domain authority and boosting your SEO. But it is vital that you don’t overdo it. Too many links and too many citations can be a bad thing.

As a general rule of thumb, you should try to limit citations per piece of content to five to seven, including your own internal links. Your internal links per piece should really only amount to one or two as this is all that is needed. Citations are about balance. You need to back up your claims, but you shouldn’t create content that is stuffed with citations and links. Think of it like keyword stuff, it’s a dead and ultimately artificial SEO tactic that won’t result in any positive attention from Google.

Why You Simply Cannot Ignore Citations

If you haven’t yet delved into citation creation, you might be sitting in front of your computer or reading this blog on your mobile device and thinking, But why should I try to understand these best practices for using citations in my content? Why are citations so good?

For starters, citations are a means of building strong search engine optimization. They accomplish two important things at once:

  • They build your credibility and authority by showing your audience you back your claims with sources outside of your company.
  • They beef up your link profile, which is taken into consideration by Google when ranking your website. In other words, the more outbound links you create to high authority sources holding relevant information that back up your claims, the stronger your SEO.

If these two reasons aren’t enough, there are more. According for Forbes, anytime another website or company references or mentions your business on their website, they’re putting the spotlight on you. It’s exposure, and it’s FREE. What’s not to love?

Recruiting Some Help

It’s OK if incorporating citations into your content throws you for a loop. To be honest, the citation formatting I had to do back in college threw me for one! It was a steep learning curve, but gaining a basic understanding of proper academic citations proved to be helpful in my copywriting career. Likewise, learning the best practices of incorporating citations into your online content will be beneficial as you work to improve your content and SEO.

Don’t be afraid of enlisting the assistance of a qualified copywriting team. They can take the headache out of finding and creating those vital citations. And they can even teach you a thing or two in an effort to keep you on the ball when it comes to your content.

SVG Tutorial

posted on June 12, 2021

tags:

What is SVG?

  • SVG, Scalable Vector Graphics is an XML based language to define vector based graphics.

  • SVG is intended to display images over the web.

  • Being vector images, SVG image never loses quality no matter how they are zoomed out or resized.

  • SVG images supports interactivity and animation.

  • SVG is a W3C standard.

  • Others image formats like raster images can also be clubbed with SVG images.

  • SVG integrates well with XSLT and DOM of HTML.

Advantages

  • Use any text editor to create and edit SVG images.

  • Being XML based, SVG images are searchable, indexable and can be scripted and compressed.

  • SVG images are highly scalable as they never loses quality no matter how they are zoomed out or resized

  • Good printing quality at any resolution

  • SVG is an Open Standard

Disadvantages

  • Being text format size is larger then compared to binary formatted raster images.

  • Size can be big even for small image.

Example

Following XML snippet can be used to draw a circle in web browser.

<svg width="100" height="100">
   <circle cx="50" cy="50" r="40" stroke="red" stroke-width="2" fill="green" />
</svg>

Embed the SVG XML directly in an HTML page.

testSVG.htm

<html>
   <title>SVG Image</title>
   <body>
   
      <h1>Sample SVG Image</h1>
      
      <svg width="100" height="100">
         <circle cx="50" cy="50" r="40" stroke="red" stroke-width="2" fill="green" />
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. In Internet Explorer, activeX controls are required to view SVG images.

How SVG integrates with HTML

  • <svg> element indicates the start of SVG image.

  • <svg> element's width and height attributes defines the height and width of the SVG image.

  • In above example, we've used a <circle> element to draw a circle.

  • cx and cy attribute represents center of the circle. Default value is (0,0). r attribute represents radius of circle.

  • Other attributes stroke and stroke-width controls the outlining of the circle.

  • fill attribute defines the fill color of the circle.

  • Closing</svg> tag indicates the end of SVG image.

SVG - Shapes

SVG provides number of shapes which can be used to draw images. Following are the common shapes.

Sr.No. Shape Type & Description
1 rect

Used to draw a rectangle.

2 circle

Used to draw a circle.

3 ellipse

Used to draw a ellipse.

4 line

Used to draw a line.

5 polygon

Used to draw a closed shape consisting of connected straight lines.

6 polyline

Used to draw a open shape consisting of connected straight lines.

7 path

Used to draw any path.

SVG - Text

<text> element is used to draw text.

Declaration

Following is the syntax declaration of <text> element. We've shown main attributes only.

<text
  x="x-cordinates"
  y="y-cordinates"
  
  dx="list of lengths"
  dy="list of lengths"
  
  rotate="list of numbers"
  textlength="length"
  lengthAdjust="spacing" >
</text>

Attributes

Sr.No. Attribute & Description
1 x − x axis coordinates of glyphs.
2 y − y axis coordinates of glyphs.
3 dx − shift along with x-axis.
4 dy − shift along with y-axis.
5 rotate − rotation applied to all glyphs.
6 textlength − rendering length of the text.
7 lengthAdjust − type of adjustment with the rendered length of the text.

Example

testSVG.htm

<html>
   <title>SVG Text</title>
   <body>
      
      <h1>Sample SVG Text</h1>
      
      <svg width="800" height="800">
         <g>
            <text x="30" y="12" >Text: </text>
            <text x="30" y="30" fill="rgb(121,0,121)">WWW.YourSite.COM</text>
         </g> 
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

Text with rotate

<html>
   <title>SVG Text</title>
   <body>
      <h1>Sample SVG Text</h1>
      
      <svg width="800" height="800">
         <g>
            <text x="30" y="12" >Multiline Text: </text>
            <text x="30" y="30" fill="rgb(121,0,121)">WWW.yoursite.COM
            <tspan x="30" y="50" font-weight="bold">Simply Easy learning.</tspan>
            <tspan x="30" y="70">We teach just for free.</tspan>
            </text>
         </g>
      </svg>
      
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

Multiline Text

<html>
   <title>SVG Text</title>
   <body>
      <h1>Sample SVG Text</h1>
      
      <svg width="570" height="100">
         <g>
            <text x="30" y="12" >Multiline Text: </text>
            <text x="30" y="30" fill="rgb(121,0,121)">WWW.yoursite.COM
               <tspan x="30" y="50" font-weight="bold">Simply Easy learning.</tspan>
               <tspan x="30" y="70">We teach just for free.</tspan>
            </text>
         </g>
      </svg>
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

Hyper link Text

<html>
   <title>SVG Text</title>
   <body>
      <h1>Sample SVG Text</h1>
      
      <svg width="800" height="800">
         <g>
            <text x="30" y="10" >Text as Link: </text>
         
            <a xlink:href="http://www.yoursite.com/svg/" target="_blank">
               <text font-family="Verdana" font-size="20"  x="30" y="30" 
               fill="rgb(121,0,121)">WWW.yoursite.COM</text>
            </a>
         </g>
      </svg>
      
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

SVG - Stroke

SVG supports multiple stroke properties.

Following are the main stroke properties used.

Sr.No. Stroke Type & Description
1 stroke − defines color of text, line or outline of any element.
2 stroke-width − defines thickness of text, line or outline of any element.
3 stroke-linecap − defines different types of ending of a line or outline of any path.
4 stroke-dasharray − used to create dashed lines.

Example

testSVG.htm

<html>
   <title>SVG Stroke</title>
   <body>
   
      <h1>Sample SVG Stroke</h1>
      
      <svg width="800" height="800">
         <g>
            <text x="30" y="30" >Using stroke: </text>
            <path stroke="red" d="M 50 50 L 300 50" />
            <path stroke="green" d="M 50 70 L 300 70" />
            <path stroke="blue" d="M 50 90 L 300 90" />
         </g> 
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

Stroke width

<html>
   <title>SVG Stroke</title>
   <body>
      
      <h1>Sample SVG Stroke</h1>
      
      <svg width="800" height="800">
         <text x="30" y="10" >Using stroke-width: </text>
         <path stroke-width="2" stroke="black" d="M 50 50 L 300 50" />
         <path stroke-width="4" stroke="black" d="M 50 70 L 300 70" />
         <path stroke-width="6" stroke="black" d="M 50 90 L 300 90" />
      </svg>
      
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

stroke-linecap

<html>
   <title>SVG Stroke</title>
   <body>
      
      <h1>Sample SVG Stroke</h1>
      
      <svg width="800" height="800">
         <g>
            <text x="30" y="30" >Using stroke-linecap: </text>
         
            <path stroke-linecap="butt" stroke-width="6" 
            stroke="black" d="M 50 50 L 300 50" />
         
            <path stroke-linecap="round" stroke-width="6" 
            stroke="black" d="M 50 70 L 300 70" />
         
            <path stroke-linecap="square" stroke-width="6"
            stroke="black" d="M 50 90 L 300 90" />
         </g>
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

stroke-dasharray

<html>
   <title>SVG Stroke</title>
   <body>
   
      <h1>Sample SVG Stroke</h1>
      
      <svg width="800" height="800">
         <g>
            <text x="30" y="30" >Using stroke-dasharray: </text>
            
            <path stroke-dasharray="5,5" stroke-width="6" 
            stroke="black" d="M 50 50 L 300 50" />
            
            <path stroke-dasharray="10,10" stroke-width="6" 
            stroke="black" d="M 50 70 L 300 70" />
            
            <path stroke-dasharray="20,10,5,5,5,10" stroke-width="6" 
            stroke="black" d="M 50 90 L 300 90" />
         </g>
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

SVG - Filters

SVG uses <filter> element to define filters. <filter> element uses an id attribute to uniquely identify it.Filters are defined within <def> elements and then are referenced by graphics elements by their ids.

SVG provides a rich set of filters. Following is the list of the commonly used filters.

  • feBlend
  • feColorMatrix
  • feComponentTransfer
  • feComposite
  • feConvolveMatrix
  • feDiffuseLighting
  • feDisplacementMap
  • feFlood
  • feGaussianBlur
  • feImage
  • feMerge
  • feMorphology
  • feOffset - filter for drop shadows
  • feSpecularLighting
  • feTile
  • feTurbulence
  • feDistantLight
  • fePointLight
  • feSpotLight

Declaration

Following is the syntax declaration of <filter> element. We've shown main attributes only.

<filter
   filterUnits="units to define filter effect region"
   primitiveUnits="units to define primitive filter subregion"
   
   x="x-axis co-ordinate" 
   y="y-axis co-ordinate"     
   
   width="length"
   height="length"
   
   filterRes="numbers for filter region"
   xlink:href="reference to another filter" >
</filter>

Attributes

Sr.No. Name & Description
1 filterUnits − units to define filter effect region. It specifies the coordinate system for the various length values within the filter and for the attributes defining the filter subregion. If filterUnits="userSpaceOnUse", values represent values in the current user coordinate system in place at the time when the 'filter' element is used. If filterUnits="objectBoundingBox", values represent values in fractions or percentages of the bounding box on the referencing element in place at the time when the 'filter' element is used. Default is userSpaceOnUse.
2 primitiveUnits − units to define filter effect region. It specifies the coordinate system for the various length values within the filter and for the attributes defining the filter subregion. If filterUnits="userSpaceOnUse", values represent values in the current user coordinate system in place at the time when the 'filter' element is used. If filterUnits="objectBoundingBox", values represent values in fractions or percentages of the bounding box on the referencing element in place at the time when the 'filter' element is used. Default is userSpaceOnUse.
3 x − x-axis co-ordinate of the filter bounding box. Defeault is 0.
4 y − y-axis co-ordinate of the filter bounding box. Default is 0.
5 width − width of the filter bounding box. Default is 0.
6 height − height of the filter bounding box. Default is 0.
7 filterRes − numbers representing filter regions.
8 xlink:href − used to refer to another filter.

Example

testSVG.htm

<html>
   <title>SVG Filter</title>
   <body>
   
      <h1>Sample SVG Filter</h1>
   
      <svg width="800" height="800">
      
         <defs>
            <filter id="filter1" x="0" y="0">
               <feGaussianBlur in="SourceGraphic" stdDeviation="8" />
            </filter>
            
            <filter id="filter2" x="0" y="0" width="200%" height="200%">
               <feOffset result="offOut" in="SourceAlpha" dx="20" dy="20" />
               <feGaussianBlur result="blurOut" in="offOut" stdDeviation="10" />
               <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
            </filter>
         </defs>
         
         <g>
            <text x="30" y="50" >Using Filters (Blur Effect): </text>
            <rect x="100" y="100" width="90" height="90" stroke="green" stroke-width="3"
            fill="green" filter="url(#filter1)" />      
         </g> 
         
      </svg>
   
   </body>
</html>
  • Two <filter> elements defined as filter1 and filter2.

  • feGaussianBlur filter effect defines the blur effect with the amount of blur using stdDeviation.

  • in="SourceGraphic" defines that the effect is applicable for the entire element.

  • feOffset filter effect is used to create shadow effect. in="SourceAlpha" defines that the effect is applicable for the alpha part of RGBA graphics.

  • <rect> elements linked the filters using filter attribute.

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

Filter with Shadow effect

<html>
   <title>SVG Filter</title>
   <body>
      
      <h1>Sample SVG Filter</h1>
      
      <svg width="800" height="800">
      
         <defs>
            <filter id="filter1" x="0" y="0">
               <feGaussianBlur in="SourceGraphic" stdDeviation="8" />
            </filter>
            
            <filter id="filter2" x="0" y="0" width="200%" height="200%">
               <feOffset result="offOut" in="SourceAlpha" dx="20" dy="20" />
               <feGaussianBlur result="blurOut" in="offOut" stdDeviation="10" />
               <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
            </filter>
         </defs>
         
         <g>
            <text x="30" y="50" >Using Filters (Shadow Effect): </text>
            <rect x="100" y="100" width="90" height="90" stroke="green" stroke-width="3"
            fill="green" filter="url(#filter2)" />
         </g>
         
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

SVG - Patterns

SVG uses <pattern> element to define patterns. Patterns are defined using <pattern> element and are used to fill graphics elements in tiled fashion.

Declaration

Following is the syntax declaration of <pattern> element. We've shown main attributes only.

<pattern
   patternUnits="units to define x,y, width and height attributes."
   patternContentUnits ="units to define co-ordinate system of contents of pattern"
   patternTransform = "definition of an additional transformation from the pattern coordinate system onto the target coordinate system"
   
   x="x-axis co-ordinate" 
   y="y-axis co-ordinate"     
   
   width="length"
   height="length"
   
   preserveAspectRatio="to preserve width/height ratio of original content"
   xlink:href="reference to another pattern" >
</pattern>

Attributes

Sr.No. Name & Description
1 patternUnits − units to define patterns effect region. It specifies the coordinate system for the various length values within the pattern and for the attributes defining the pattern subregion. If patternUnits="userSpaceOnUse", values represent values in the current user coordinate system in place at the time when the 'pattern' element is used. If patternUnits="objectBoundingBox", values represent values in fractions or percentages of the bounding box on the referencing element in place at the time when the 'pattern' element is used. Default is userSpaceOnUse.
2 patternContentUnits − units to define pattern content region. It specifies the coordinate system for the various length values within the pattern and for the attributes defining the pattern subregion. If patternContentUnits="userSpaceOnUse", values represent values in the current user coordinate system in place at the time when the 'pattern' element is used. If patternContentUnits="objectBoundingBox", values represent values in fractions or percentages of the bounding box on the referencing element in place at the time when the 'pattern' element is used. Default is userSpaceOnUse.
3 x − x-axis co-ordinate of the pattern bounding box. Defeault is 0.
4 y − y-axis co-ordinate of the pattern bounding box. Default is 0.
5 width − width of the pattern bounding box. Default is 0.
6 height − height of the pattern bounding box. Default is 0.
7 preserveAspectRatio - to preserve width/height ratio of original content.
8 xlink:href − used to refer to another pattern.

Example

testSVG.htm

<html>
   <title>SVG Pattern</title>
   <body>
      <h1>Sample SVG Pattern</h1>
      
      <svg width="800" height="800">
         
         <defs>
            <pattern id="pattern1" patternUnits="userSpaceOnUse"
               x="0" y="0" width="100" height="100"
               viewBox="0 0 4 4" >
               <path d="M 0 0 L 3 0 L 1.5 3 z" fill="blue" stroke="green" />
            </pattern> 
         </defs>
         
         <g>
            <text x="30" y="50" >Using Pattern (Triangles): </text>
            <rect x="100" y="100" width="300" height="300" stroke="green" 
            stroke-width="3" fill="url(#pattern1)" />
         </g> 
         
      </svg>
   
   </body>
</html>
  • One <pattern> element defined as pattern1.

  • In pattern, a viewbox is defined and a path which is to be used as pattern is defined.

  • in rect element, in fill attribute, url of the pattern is specified to fill the rectangle with pattern created earlier.

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

SVG - Gradients

Gradient refers to smooth transition of one color to another color within a shape. SVG provides two types of gradients.

  • Linear Gradients − Represents linear transition of one color to another from one direction to another.

  • Radial Gradients − Represents circular transition of one color to another from one direction to another.

Linear Gradients

Declaration

Following is the syntax declaration of <linearGradient> element. We've shown main attributes only.

<linearGradient
   gradientUnits ="units to define co-ordinate system of contents of gradient"
   gradientTransform = "definition of an additional transformation from the gradient coordinate system onto the target coordinate system"
   
   x1="x-axis co-ordinate" 
   y1="y-axis co-ordinate"     
   x2="x-axis co-ordinate" 
   y2="y-axis co-ordinate"     
   
   spreadMethod="indicates method of spreading the gradient within graphics element"
   xlink:href="reference to another gradient" >
</linearGradient>

Attributes

Sr.No. Name & Description
1 gradientUnits − units to define the coordinate system for the various length values within the gradient. If gradientUnits="userSpaceOnUse", values represent values in the current user coordinate system in place at the time when the gradient element is used. If patternContentUnits="objectBoundingBox", values represent values in fractions or percentages of the bounding box on the referencing element in place at the time when the gradient element is used. Default is userSpaceOnUse.
2 x1 − x-axis co-ordinate of the gradient vector. Defeault is 0.
3 y1 − y-axis co-ordinate of the gradient vector. Default is 0.
4 x2 − x-axis co-ordinate of the gradient vector. Defeault is 0.
5 y2 − y-axis co-ordinate of the gradient vector. Default is 0.
6 spreadMethod − indicates method of spreading the gradient within graphics element. Default is 'pad'.
7 xlink:href − used to refer to another gradient.

Example

testSVG.htm

<html>
   <title>SVG Linear Gradient</title>
   <body>
   
      <h1>Sample SVG Linear Gradient</h1>
   
      <svg width="600" height="600">
      
         <defs>
            <linearGradient id="sampleGradient">
               <stop offset="0%" stop-color="#FF0000" />
               <stop offset="100%" stop-color="#00FFF00" />
            </linearGradient>
         </defs>
         
         <g>
            <text x="30" y="50" >Using Linear Gradient: </text>
            <rect x="100" y="100" width="200" height="200" stroke="green" stroke-width="3" 
            fill="url(#sampleGradient)" />
         </g>
         
      </svg>
   
   </body>
</html>
  • One <linearGradient> element defined as sampleGradient.

  • In linearGradient, two offsets are defined with two colors.

  • in rect element, in fill attribute, url of the gradient is specified to fill the rectangle with gradient created earlier.

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

Radial Gradients

Declaration

Following is the syntax declaration of <radialGradient> element. We've shown main attributes only.

<radialGradient
   gradientUnits ="units to define co-ordinate system of contents of gradient"
   gradientTransform = "definition of an additional transformation from the gradient coordinate system onto the target coordinate system"
   
   cx="x-axis co-ordinate of center of circle." 
   cy="y-axis co-ordinate of center of circle."     
   
   r="radius of circle" 
   
   fx="focal point for the radial gradient"     
   fy="focal point for the radial gradient"     
   
   spreadMethod="indicates method of spreading the gradient within graphics element"
   xlink:href="reference to another gradient" >
</radialGradient>

Attributes

Sr.No. Name & Description
1 gradientUnits − units to define the coordinate system for the various length values within the gradient. If gradientUnits="userSpaceOnUse", values represent values in the current user coordinate system in place at the time when the gradient element is used. If patternContentUnits="objectBoundingBox", values represent values in fractions or percentages of the bounding box on the referencing element in place at the time when the gradient element is used. Default is userSpaceOnUse.
2 cx − x-axis co-ordinate of the center of largest circle of gradient vector. Defeault is 0.
3 cy − y-axis co-ordinate of the center of largest circle of gradient vector. Default is 0.
4 r − radius of the center of largest circle of gradient vector. Defeault is 0.
5 fx − focal point of radial gradient. Default is 0.
6 fy − focal point of radial gradient. Default is 0.
7 spreadMethod − indicates method of spreading the gradient within graphics element. Default is 'pad'.
8 xlink:href − used to refer to another gradient.

Example

testSVG.htm

<html>
   <title>SVG Radial Gradient</title>
   <body>
      
      <h1>Sample SVG Radial Gradient</h1>
      
      <svg width="600" height="600">
         <defs>
            <radialGradient id="sampleGradient">
               <stop offset="0%" stop-color="#FF0000" />
               <stop offset="100%" stop-color="#00FFF00" />
            </radialGradient>
         </defs>
         
         <g>
            <text x="30" y="50" >Using Radial Gradient: </text>
            <rect x="100" y="100" width="200" height="200" stroke="green" stroke-width="3"
            fill="url(#sampleGradient)" />
         </g>
      </svg>
      
   </body>
</html>
  • One <radialGradient> element defined as sampleGradient.

  • In radialGradient, two offsets are defined with two colors.

  • in rect element, in fill attribute, url of the gradient is specified to fill the rectangle with gradient created earlier.

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering.

SVG - Interactivity

SVG images can be made responsive to user actions. SVG supports pointer events, keyboard events and document events. Consider the following example.

Example

testSVG.htm

<html>
   <title>SVG Interactivity</title>
   <body>
      
      <h1>Sample Interactivity</h1>
      
      <svg width="600" height="600">
         <script type="text/JavaScript">
            <![CDATA[
               function showColor() {
                  alert("Color of the Rectangle is: "+
                  document.getElementById("rect1").getAttributeNS(null,"fill"));
               }
               
               function showArea(event){
                  var width = parseFloat(event.target.getAttributeNS(null,"width"));
                  var height = parseFloat(event.target.getAttributeNS(null,"height"));
                  alert("Area of the rectangle is: " +width +"x"+ height);
               }
               
               function showRootChildrenCount() {
                  alert("Total Children: "+document.documentElement.childNodes.length);
               }
            ]]>
         </script>
         
         <g>
            <text x="30" y="50" onClick="showColor()">Click me to show rectangle color.</text>
            
            <rect id="rect1" x="100" y="100" width="200" height="200" 
            stroke="green" stroke-width="3" fill="red" 
            onClick="showArea(event)"/>
            
            <text x="30" y="400" onClick="showRootChildrenCount()">
            Click me to print child node count.</text>
         </g>
      </svg>
   
   </body>
</html>

Explaination

  • SVG supports JavaScript/ECMAScript functions. Script block is to be in CDATA block consider character data support in XML.

  • SVG elements support mouse events, keyboard events. We've used onClick event to call a javascript functions.

  • In javascript functions, document represents SVG document and can be used to get the SVG elements.

  • In javascript functions, event represents current event and can be used to get the target element on which event got raised.

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering. Click on each text and rectangle to see the result.

SVG - Linking

<a> element is used to create hyperlink. "xlink:href" attribute is used to pass the IRI (Internationalized Resource Identifiers) which is complementary to URI (Uniform Resource Identifiers).

Declaration

Following is the syntax declaration of <a> element. We've shown main attributes only.

<a
   xlink:show = "new" | "replace"
   xlink:actuate = "onRequest"
   xlink:href = "<IRI>"
   target = "_replace" | "_self" | "_parent" | "_top" | "_blank" | "<XML-Name>" >
</a>

Attributes

Sr.No. Name & Description
1 xlink:show − for documentation purpose for XLink aware processors. Default is new.
2 xlink:actuate − for documentation purpose for XLink aware processors.
3 xlink:href − location of the referenced object.
4 target − used when targets for the ending resource are possible.

Example

testSVG.htm

<html>
   <title>SVG Linking</title>
   <body>
   
      <h1>Sample Link</h1>
      
      <svg width="800" height="800">
         <g>
            <a xlink:href="http://www.yoursite.com"> 
               <text x="0" y="15" fill="black" >
               Click me to load yoursite DOT COM.</text>
            </a>
         </g> 
         
         <g>
            <text x="0" y="65" fill="black" >
            Click in the rectangle to load yoursite DOT COM</text>
            
            <a xlink:href="http://www.yoursite.com"> 
               <rect x="100" y="80" width="300" height="100"
               style="fill:rgb(121,0,121);stroke-width:3;stroke:rgb(0,0,0)" /> 
            </a>
         </g>
      </svg>
   
   </body>
</html>

Output

Open textSVG.htm in Chrome web browser. You can use Chrome/Firefox/Opera to view SVG image directly without any plugin. Internet Explorer 9 and higher also supports SVG image rendering. Click on link and rectangle to see the result.