source(here::here("R/feed_block.R"))
feed_block("HTML for non-web developers")
No feedback found for this session
KIND learning network training materials by KIND learning network is licensed under CC BY-SA 4.0
March 28, 2024
No feedback found for this session
…and not
<menu id="file" value="File">
<popup>
<menuitem value="New" onclick="CreateNewDoc()" />
<menuitem value="Open" onclick="OpenDoc()" />
<menuitem value="Close" onclick="CloseDoc()" />
</popup>
</menu>
# https://json.org/example.html
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
# https://json.org/example.html
(not surprising)
(possibly surprising)
Create a .txt file in notepad
save as .html
add some text
open in your web browser
<h1> Heading </h1>
<
angle brackets>
<img src="URL">
</br> Line break
<hr> Horizontal rule
<h1>Heading</h1>
<a href="URL">Link</a>
<img src="https://i.imgur.com/OpmMr44.jpg" height="500" ALIGN="left" HSPACE="15" VSPACE="25"/>
(this goes a bit wonky in the quarto we use to build the training pages - definitely worth trying out yourself in your HTML file)
<img src="https://i.imgur.com/OpmMr44.jpg" height="300" ALIGN="right" HSPACE="15" VSPACE="55"/>
(this goes a bit wonky in the quarto we use to build the training pages - definitely worth trying out yourself in your HTML file)
Webinar | Date |
---|---|
Nov 2022 (R) | 2022-11-16, 2-3pm |
Dec 2022 (KIND conference) | 2022-12-07, 1-5pm |
<table>
<thead>
<tr class="header">
<th align="left">Webinar</th>
<th align="left">Date</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">Nov 2022 (R)</td>
<td align="left">2022-11-16, 2-3pm</td>
</tr>
<td align="left">Dec 2022 (KIND conference)</td>
<td align="left">2022-12-07, 1-5pm</td>
</tr>
</tbody>
</table>
"
)here::here("skills/data/doc_links.htm") |>
xml2::read_html() |>
xml2::xml_find_all("//@href") |>
xml2::as_list() |>
purrr::flatten() |>
unlist() |>
sample(5) # just a random sample of five to avoid overload
[1] "https://470.example.com" "https://990.example.com"
[3] "https://758.example.com" "https://264.example.com"
[5] "https://205.example.com"