Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Semantic HTML tag for displaying a path/directory?

Is there any tag that's suited to markup a path or directory?

For example: <path>user/project/</path>

I've checked all new HTML5 tags but there doesn't seem to be one that fits this purpose. So which one would come close?

like image 642
DADU Avatar asked Dec 28 '22 02:12

DADU


1 Answers

The code element represents a fragment of computer code. This could be an XML element name, a filename, a computer program, or any other string that a computer would recognize.

https://www.w3.org/TR/html51/textlevel-semantics.html#the-code-element

like image 135
user123444555621 Avatar answered Dec 31 '22 17:12

user123444555621