Skip to content

Commit 6bb16a4

Browse files
committed
Search Engines
1 parent 150bc59 commit 6bb16a4

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

README.md

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,80 @@ The `<mark>` HTML element represents text which is marked or highlighted for ref
18611861
<b><a href="#">↥ back to top</a></b>
18621862
</div>
18631863

1864-
#### Q. ***How Can I Get Indexed Better by Search Engines?***
1864+
## Q. ***How can I get indexed better by search engines?***
1865+
1866+
HTML tags are used to influence the way our pages appear in search results. With the help of certain tags, we can turn regular search snippets into rich snippets, and maybe even into featured snippets. And, as our search snippets get more advanced, they are able to secure better **Search Engine Results Pages (SERP)** positions and attract more traffic.
1867+
1868+
Here are all the HTML tags that still matter:
1869+
1870+
**1. Title tag**
1871+
1872+
Title tags are used by search engines to determine the subject of a page and display it in SERP. As a rule of thumb, titles that are under 60 characters long will fit on most screens. In HTML, a title tag looks like this:
1873+
1874+
```html
1875+
<title>Your Title Goes Here</title>
1876+
```
1877+
1878+
**2. Meta description tag**
1879+
1880+
Meta description is a short paragraph of text used to describe your page in search results. The function of meta description is similar to the title. It provides a little more detail about your page and it helps users decide whether to visit your page or not. In HTML, a meta description tag looks like this:
1881+
1882+
```html
1883+
<meta name="description" content="Your description goes here">
1884+
```
1885+
1886+
**3. Heading tags**
1887+
1888+
Headings (H1-H6) are used to split your page into sections or chapters. Each heading is like a small title within the page. In HTML, a heading looks like this:
1889+
1890+
```html
1891+
<h1>Your heading goes here</h1>
1892+
```
1893+
1894+
**4. Image alt attribute**
1895+
1896+
The `alt` text attribute is a part of an image tag, and it provides a description for an image. Alt text plays a major role in image optimization. It makes your images accessible both to search engines (by telling them what a particular image means) and to people (by displaying an alternative text in case a particular image cannot be loaded or by helping screen readers convey images). In HTML it may look like this:
1897+
1898+
```html
1899+
<img src="url" alt="Your image description goes here">
1900+
```
1901+
1902+
**5. Open Graph tags**
1903+
1904+
Open Graph (OG) tags are placed in the `<head>` section of a page and allow any webpage to become a rich object in social networks. OG tags let you control how the information about your page is represented when shared via social channels. This possibility may help you enhance the performance of your links on social media, thus driving more click-throughs and increasing conversions. In HTML, it can look like this:
1905+
1906+
```html
1907+
<meta name="og:title" property="og:title" content="Your Open Graph Title Goes Here">
1908+
```
1909+
1910+
**6. Robots tag**
1911+
1912+
A robots tag is an element in the HTML of a page that informs search engines which pages on your site should be indexed and which should not. Its functions are similar to robots.txt, but robots.txt gives suggestions. Whereas robots tags give instructions. In HTML, it can look like this:
1913+
1914+
```html
1915+
<meta name="robots" content="index, follow">
1916+
```
1917+
1918+
**7. Canonical tag**
1919+
1920+
A canonical tag is a way of telling search engines that a specific URL represents the master copy of a page. Using the canonical tag prevents problems caused by identical or "duplicate" content appearing on multiple URLs. Practically speaking, the canonical tag tells search engines which version of a URL you want to appear in search results. In HTML, it may look like this:
1921+
1922+
```html
1923+
<link href="URL" rel="canonical">
1924+
```
1925+
1926+
**8. HTML5 semantic tags**
1927+
1928+
One of the most important features of HTML5 is its semantics tags. Semantic tags refers to syntax that makes the HTML more comprehensible by better defining the different sections and layout of web pages. It makes web pages more informative and adaptable, allowing browsers and search engines to better interpret content. For example, instead of using `<div id="header"></div>` you can use a `<header></hrader>` tag.
1929+
1930+
<p align="center">
1931+
<img src="assets/images/semantic-tags.png" alt="HTML5 semantic tags" width="400px" />
1932+
</p>
1933+
1934+
<div align="right">
1935+
<b><a href="#">↥ back to top</a></b>
1936+
</div>
1937+
18651938
#### Q. ***What is the difference between an "attribute" and a "property" in HTML?***
18661939
#### Q. ***How do you set IE compatibility mode?***
18671940
#### Q. ***What is an optional tag?***

assets/images/semantic-tags.png

30.1 KB
Loading

0 commit comments

Comments
 (0)