<!DOCTYPE html>
<html>
<head>
<style>
*::after { content:"after text"; border:3px solid black;}
*::before { content:"before text"; border:3px solid black; }
</style>
</head>
<body>
<fieldset><legend>Legend</legend></fielset>
</body>
</html>
