How to define marked/highlighted text using HTML? Last Updated : 01 Jul, 2024 Comments Improve Suggest changes Like Article Like Report To define highlighted or marked text in HTML5, the <mark> tag is employed. It effectively highlights specific text within a paragraph, offering a straightforward way to visually emphasize content. Introduced in HTML5, the `<mark>` tag enhances readability and focus within web content.Syntax: <mark> Contents... </mark> Examples: The example below shows how to define marked/highlighted text using HTML5 using <mark> element. html <!DOCTYPE html> <html> <body> <h2>HTML mark Tag</h2> <p> <mark>GeeksforGeeks:</mark> It is a <mark>computer science</mark> portal for geeks </p> </body> </html> Output: Comment More infoAdvertise with us Next Article How to define marked/highlighted text using HTML? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Misc HTML-Questions Similar Reads How to define preformatted text using HTML? To define a preformatted text in HTML use the <pre> tag in the document. It is used to define the block of preformatted text that preserves the text spaces, line breaks, tabs, and other formatting characters that are ignored by web browsers. Text in the pre-tag is displayed in a fixed-width fo 1 min read How to define important text using HTML5 ? In this article, we define an important text by using the <strong> tag in HTML. It is the parsed tag and used to show the importance of the text. It reflects the text as bold. Syntax: <strong> Contents... </strong> Example 1: html <!DOCTYPE html> <html> <head> 1 min read How to render as emphasized text using HTML? The <em> tag in HTML is a phrase tag and is used to emphasize the text content. It is similar to <italic> tag. The main difference between these two tags is the <em> tag semantically emphasizes the important word or section of words while the <i> tag is just offset text conve 1 min read How to highlight syntax in files using Node.js ? Node.js supports modules and packages that can be installed using NPM, which allows us to exploit various functionalities. One such functionality is syntax highlighting using Node.js that helps us to render highlighted code as static HTML, or we can also use it for dynamic syntax highlighting. The f 2 min read How to emphasize text in a document using HTML5 ? In this article, we will emphasize the text in an HTML document by using the <em> element in the document. It is a phrase tag and used to emphasize the text content. Syntax: <em> Contents... </em> Example 1: html <!DOCTYPE html> <html> <head> <title> Emphasi 1 min read Like