<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>HTML</title> <style> hr { transform: rotate(90deg); } </style> </head> <body> <h2>The vertical line using hr transform</h2> <hr> </body> </html>