I am using Sketch App and I want to create the exact illustration:
Creating rectangles is really easy, but how can I make a text in the border like
<html> as you can see above?
If you want that it is a rectangle and not a open path you need to mask the area where you want the text to appear.
Here a video about masks in sketch: https://www.youtube.com/watch?v=Db2SjUZhcHI