Skip to content

Instantly share code, notes, and snippets.

@amarjitdhillon
Created August 5, 2019 06:48
Show Gist options
  • Save amarjitdhillon/538f8c659cb556e4c124f1aae8329669 to your computer and use it in GitHub Desktop.
Save amarjitdhillon/538f8c659cb556e4c124f1aae8329669 to your computer and use it in GitHub Desktop.
Bootstrap class to highlight text
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1>Highlight Text</h1>
<p>Use the mark element to <mark> this text will be highlighted</mark> text.</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment