Can you enter a URL in a shiny app?

Beginner in Shiny app.
should I use textInput to enter a website URL? how can I pass it into the server function to be manipulated in the program?

ui <- fluidPage(
 textInput(inputId="txt", label="Enter Website", value ="http://...")


server <- function(input, output, session) {

shinyApp(ui, server)

Welcome. It would be better to use sv_url() from shinyvalidate to ensure it is a url.


Need more explanation: input it as a text or is there some other data structure I need to input it with


print("it is not a URL")