简体   繁体   中英

Identifying HTML Elements from Sketch design

Front-End dev here, forgive me if this has already been asked before. When coding HTML/CSS from a sketch design is there a way to identify what kind of html element corresponds to the sketch component?

When I export to HTML using Anima or similar, it makes almost everything a <div> element. Some sketch components are self evident, such as links <a> , <images> , <button> etc. When it comes to text for instance, is there any way to tell if it's a <div> , <span> , <p> element, etc etc? Do I just need to use my judgement in this case?

Any guidance on this would be welcome. Thanks!

A good tool to help you import the sketch design file is Desech Studio. This will create a clean html structure, but most likely if you do it manually, it will be slightly better. Elements are also positioned with css grid, not position absolute.

This is a good place to start, otherwise you have to do it manually by looking at how the content can be split into grids, and create the necessary grids. With experience you get the hang of it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM