HTML CSS examples for HTML Tag:mark
mark element is used to highlight Text.
The mark element is new to HTML5 and represents highlighted text.
The mark Element summary
Item | Value |
---|---|
Element | mark |
Local Attributes | None |
Tag Style | Start and end tag |
New in HTML5 | Yes |
Changes in HTML5 | N/A |
Style Convention
mark { background-color: yellow; color: black; }
The following code demonstrates the mark element.
Using the mark Element
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> <p> I would like a <mark>tutorial</mark> of <!-- ww w . j av a2 s.c o m--> <mark>CSS</mark> </p> </body> </html>