Are you tired of figuring out which parts of your website can be accessed by search engines and other robots? Do you feel lost when configuring the settings in your robots.txt file? Fear not - this blog post is here to walk you through what a robots.txt file is, why it's essential for SEO purposes, and how to ensure yours is correctly set up! Whether you're new to SEO or are just looking for a refresher on robot exclusion standards, this guide will provide everything you need. So buckle up, and let's get started! What is robots.txt? The robots ... Read More
We've all seen them before—those curious, two- or three-word descriptions that appear when an image can't be displayed on a website. They're called alt text (or "alt tags"). They might seem like small details, but they actually serve an important purpose! If you want visitors to your website to have the best experience possible, then it's important to understand what alt text is and how to write it effectively. In this blog post, we'll discuss why utilizing alt text is so important and provide tips for making sure yours is as descriptive and helpful as possible. Whether you're already familiar ... Read More
HTML, the language used to construct web pages, heavily relies on header tags. They are used to arrange and organize web page content, making it simpler to read and comprehend. Header tags range from H1 to H6. H1 is the most significant header tag, whereas H6 is the least important. These header tags help organize a page's contents, making it easier to read and navigate. They are also used to inform users and search engines about the content of the page, which is crucial for SEO. In this article, we will discuss what header tags are and ... Read More
In this article, we will write a Go language programs to check a hash collection is empty or not. A hash collection is a data structure that contains key-value pairs in Go (Golang) and enables quick lookups, additions, and deletions. The value that corresponds to the key can be accessed by hashing the key into an index. Hash collections in the form of maps have built-in support in Go. Here, a map is a reference type that is declared by using the map keyword, followed by the key type and value type in the format. Syntax func make ... Read More
In Golang we can use delete keyword or empy map to remove all the elements from hash collection. Hashmap is a data structure from hash collection. It is an implementation of hash table which takes O(1) constant time to execute. In this program we will remove all items from hash collection using two methods. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments. func range(variable) The range function is used to iterate over ... Read More
In Golang we can use various internal functions or packages like len() function or reflect package, to get the size of the hash collection. A Hash collection contains a hashmap which is generally used to create key:value pairs and on the basis of that it shortens the execution time. In this program, we have used two examples to get the size of hash collection. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments. func ... Read More
In this article, we will write Golang programs to search an item in the hash collection. A hashmap is part of hash collections. Here we are building a hashmap as set of key-alue pairs using Golang’s map which is constructed using map literal. We will execute this program using two examples. Syntax func range(variable) The range function is used to iterate over any data type. To use this we first have to write the range keyword followed by the data type to which we want to iterate and as a result the loop will iterate till the last element ... Read More
In golang we can use hashmap and key functions to iterate hash collection. Hashmap is said to be one of the hash collections. In the hashmap the data is stored in key value pairs as we did below. In this program we will use three methods to iterate the hashmap and print its values. Syntax func make ([] type, size, capacity) The make function in go language is used to create an array/map it accepts the type of variable to be created, its size and capacity as arguments func append(slice, element_1, element_2…, element_N) []T The append function is ... Read More
In this Go language article, we will write proCurrent weekday implies the current day in the week which can be obtained using numerous methods. In this program we will use three examples to get the current weekday for which time package will be imported in the program, it helps in viewing the time. Syntax func Now() Time The Now() function is defined in time package. this function generates the current local time. To use this function, we have to first import the time package in our program. time.Format() This function belongs to the time package. It is used ... Read More
Golang has internal functions like Now() Time, and other Time functions that can be used for getting the current time zone. Current time zone in Go is a time zone where people reside in and see the same standard time. In a country like India IST is observed throughout the nation. In this program we will discuss how to obtain current time zone using two examples. Syntax func Now() Time The Now() function is defined in time package. this function generates the current local time. To use this function, we have to first import the time package in ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP