You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2216,7 +2216,44 @@ The `<div>` element only represents its child elements and doesn\'t have a speci
2216
2216
<b><a href="#">↥ back to top</a></b>
2217
2217
</div>
2218
2218
2219
-
#### Q. ***Where and why is the rel="noopener" attribute used?***
2219
+
## Q. ***Explain the use of rel="nofollow", rel="noreferrer", rel="noopener" attribute?***
2220
+
2221
+
**1. rel="nofollow"**
2222
+
2223
+
When `rel="nofollow"` tag is used, it instruct the search engines not to pass any PageRank from one page to the other. It does not allow it to pass the authority to the specific website. The main advantage of using this attribute is to control the spam attack.
2224
+
2225
+
There may be times, when you do not have control over what people publish on your websites, for example some blog comments and some kind of forum posting.
2226
+
2227
+
**Example**
2228
+
2229
+
```html
2230
+
<ahref="https://www.website.com"rel="nofollow">Link to yoursite.com</a>
2231
+
```
2232
+
2233
+
**2. rel="noreferrer"**
2234
+
2235
+
Noreferrer is related to analytics and tracking. The referrer value shows the previous page where a user came from. By using the noreferrer attribute on a link, you are preventing other pages from seeing that traffic came from a click on your link.
2236
+
2237
+
**Example**
2238
+
2239
+
```html
2240
+
<ahref="https://www.website.com"rel="noreferrer">Link to yoursite.com</a>
2241
+
```
2242
+
2243
+
**3. rel="noopener"**
2244
+
2245
+
It prevents the new page from being able to access the `window.opener` property and will make it run in a separate process. noopener tag works as a security fix which prevents malicious links to take control over an opened tab.
2246
+
2247
+
**Example**
2248
+
2249
+
```html
2250
+
<ahref="https://www.website.com"target="_blank"rel="noopener">Link to yoursite.com</a>
2251
+
```
2252
+
2253
+
<divalign="right">
2254
+
<b><a href="#">↥ back to top</a></b>
2255
+
</div>
2256
+
2220
2257
#### Q. ***Can a web page contain multiple `<header>` elements? What about `<footer>` elements?***
2221
2258
#### Q. ***What are Web Workers?***
2222
2259
#### Q. ***Discuss the differences between an HTML specification and a browser\'s implementation thereof.***
0 commit comments