<span> tags are used to section out bits of text within other tags. In the example below we have 2 <span> tags, with the content they cover highlighted in blue
<!DOCTYPE html> <html> <head> <title>Spans</title> </head> <body> <h1> Website Name </h1> <div> <h2>First Heading</h2> <p> Lorem ipsum dolor sit amet,<span> consectetur adipiscing </span> elit. Maecenas ac tempor magna. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; </p> </div> </body> </html> |