Categories
JavaScript Answers

How to add Links inside a paragraph with Jade and JavaScript?

Spread the love

To add Links inside a paragraph with Jade and JavaScript, we can add the a element with the Jade syntax.

For instance, we write

p: #[span this is the start] #[a(href="http://example.com") a link] #[span and this is the rest of the paragraph]

to add the link with

#[a(href="http://example.com") a link] #[span and this is the rest of the paragraph]

The attributes are in the parentheses.

The span is nested in the link.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *