Web basics
Website
Some basic knowledge to prepare for webscrapping.
Resources
https://jakobtures.github.io/web-scraping/rvest1.html
Attributes
Basic syntax: <tag attribute="value">...</tag>
. No space between equal sign and value.
Web link
<a href="https://jakobtures.github.io/web-scraping/html.html">This is a link</a>
The code above creates an active link. The code below also points to this link, but opens in a new page using target="_blank"
.
<a href="https://jakobtures.github.io/web-scraping/html.html" target="_blank">This is a link</a>
Images
Two images, one with adjusted size
<img src="https://jakobtures.github.io/web-scraping/Rlogo.png">
<img src="https://jakobtures.github.io/web-scraping/Rlogo.png" width="100" height="100">
Can combine image with link, by puttinng the links within the anchor.
<a href="https://www.r-project.org/" target="_blank"><img src="https://jakobtures.github.io/web-scraping/Rlogo.png"></a>
Entities
Coded representations of certain characters, &..;
. For example,
<
less than, <"
”&
&: ampersand
non-breaking space