TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML mark tag

HTML mark tag with examples, html5, forms, input, text, anchor, image, heading, marquee, textarea, paragraph, title, quotes, code etc.

<< Back to HTML

HTML <mark> tag

HTML <mark> tag is used to highlight the some text part inside of another element such as paragraph, for reference or any notation purpose.

This is a newly added tag and introduced in HTML5.

In most of the browser, the text contained with <mark> tag renders with the yellow background, but it can be changed using CSS background-color property.

Syntax:

  <mark>write your content here....</mark>

Following are some specifications about the HTML <mark> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Semantic and textual

Example

<!DOCTYPE html>
<html>
<head>
	<title>Mark Tag</title>
</head>
<body>
 <h2>Exmaple of Mark Tag</h2>
 <p>You can easily learn designing a website with our <mark>Web designing tutorial. </mark></p>
</html>
Test it Now

Output:

HTML mark tag

Attribute:

Global attribute:

The <mark > tag supports the global attributes in HTML

Event attribute:

The <mark> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<mark>YesYesYesYesYes
Next TopicHTML marquee Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf