How can I minify HTML and CSS File?

4 replies
  • WEB DESIGN
  • |
I am looking to improve the page speed of my website. I would like to know how can I minify HTML and CSS file to improve the loading speed?
#css #file #html #minify
Avatar of Unregistered
  • Profile picture of the author LanaJoy
    I don't think you can minify HTML. Its only CSS and JS that are minified. You can get a lot of online tools that can generate minified versions of your site.
    {{ DiscussionBoard.errors[11313358].message }}
  • Profile picture of the author Sven300
    Yes you can minify the HTML.

    It's a great idea to minify the code to make the site faster. Everyone should do it.

    Here are some tools that will allow you to minimize your code:


    Minify Code | The tools to minify and beautify JavaScript, CSS and HTML codes

    https://www.willpeavy.com/minifier/

    Good luck!
    Signature
    I'm a great believer in luck, and I find the harder I work the more I have of it. Thomas Jefferson
    {{ DiscussionBoard.errors[11316310].message }}
  • Profile picture of the author rajveerkaur
    Firstly, you can analysis the website speed using Gtmetrix tools. Then it will provide you all the possible optimization links including HTML, CSS, JS. After that, you can minify the CSS, JS, HTML files.
    {{ DiscussionBoard.errors[11316405].message }}
  • Profile picture of the author TopNetworks
    I would suggest using the google pagespeed, they not only offer good info but they also offer things like smaller image sizes, minified HTML, CSS and Javascript

    https://developers.google.com/speed/pagespeed/insights/

    Regards,
    TopNetworks
    Signature
    TopNetworks.com ranks the top advertising networks based on reviews from affiliate marketers.
    {{ DiscussionBoard.errors[11316503].message }}
Avatar of Unregistered

Trending Topics