mark

mark
HTML mark Element
NOTE: This new element is HTML5 and will be a standardized element in 2014.
The HTML <mark> element is used to mark or highlight content for relevance almost like you would with a real highlight marker in a real book. If you want to change the color of the mark use the style attribute and assign the "background-color:" CSS style to it. That will allow you to select a custom color for the mark.
HTML CODE EXAMPLE
Down in the outback we ate a <mark>Kangaroo</mark> tail.
 
Down in the outback we ate a Kangaroo tail.
Example of changing the default yellow mark using CSS. It would be best to use a CSS style sheet and target all <mark> elements universally. This example is inline CSS and would only affect this one mark.
HTML CODE EXAMPLE
I once saw a <mark style="background-color:#FF9DFF;">drunk</mark> man fall.
 
I once saw a drunk man fall.

0 Response to "mark"

Post a Comment