Using variable as the label for a hyperlink

Hi, the application iโ€™m running returns a series of news article titles along with the links to the articles. Iโ€™m wondering how I can make it so that each news article title can act as the label for its respective hyperlink so that users can click on the title and be brought to the original article. Hereโ€™s my code
for index, row in recommendations2.iterrows(): title=row['title'] link = row['link'] st.write(title) st.write(link)

Is page_link what you are loking for?

Or using just markdown,

title = row["title"]
link = row["link"]
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.