ads_header

Create Landing Page Free HTML CSS


Hello friends, in this post I will create a simple Landing Page using HTML and CSS

Landing Page is a website page that is first visited by visitors. If the landing page you make is more attractive, the more users will visit your website, and of course this will make your website traffic higher and your income will increase.





And in this tutorial I will give a simple landing page example, but it still looks elegant like the screenshot below.



Before that I needed to prepare two images as background and as a logo that I saved in the img folder in my project.


Now, open your favorite text editor, then create the index.html and style.css files save in the same folder as the "img" folder

Now, open the index.html file and enter the following code

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Landing Page</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
            <nav>
                <div class="logo">
                    <a href="index.html"><img src="img/NM.png"></a>
                </div>
                <ul>
                    <li><a href="#about-us">contact us</a></li>
                    <li><a href="#review-movie">reviews</a></li>
                    <li><a href="#watch-movie">watch now</a></li>
                    <li><a href="#genre-movie">genre</a></li>
                    <li><a href="#">login</a></li>
                </ul>
            </nav>

            <div class="deskripsi">
                <img src="img/NM.png"><br><br>
                <p>
                    CHANGE YOUR DESK INTO CINEMA
                    <P>MORE THAN ONE MILLION MOVIE WITH HD QUALITY</P>
                </p>
                <a href="#genre-movie"><i class="fa fa-angle-double-down"></i></a>
            </div>    
    </div>
</body>
</html>

the above code consists of:
  1. Nav Bar inside is a navigation menu and logo
  2. Banner background with a brief description and logo
  3. The down arrow button for the page below it
Now, open the style.css file and enter the following code


html,
*{
    box-sizing: border-box;
}

body {
    margin: 0;
    background-image: url(img/bg.jpg);
    background-size: cover;
    font-family: 'Roboto', sans-serif;
}

.container {
    width: auto;
}

.container {
    width: auto;
}

nav {
    position: absolute;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
}

nav .logo {
    float: left;
    font-size: 17px;
    color: white;
    padding: 15px;
    margin-left: 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 5px;

}

.logo img{
    border-radius: 5px;
    width: 120px;
    height: 30px;
}

nav ul {
    float: right;
    list-style: none;
    margin-right: 30px;
}

nav ul li {
    display: inline-flex;
    margin: 0 5px;
    font-size: 15px;
    color: white;
    text-transform: uppercase;
    border-radius: 6px;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
}

nav ul li:hover {
    background-color: crimson;
}

nav ul li:nth-child(5) {
    background-color: crimson;
}

.deskripsi {
    position: absolute;
    width:45%;
    height: 68% ;
    top: 200px;
    left: calc(50% - 22.5%);
    text-align: center;

}

.deskripsi i:hover{
    opacity: 1;
}

.deskripsi i{
    position: absolute;
    bottom: 0;
    color: white;
    opacity: .5;
    text-decoration: none;
    font-size: 40px;
}

.deskripsi h1 {
    font-family: 'Raleway', sans-serif;
    color: white;
    font-weight: 1000;
    letter-spacing: 10px;
    font-size: 90px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    width: 50%;
}

.deskripsi p {
    line-height: 30px;
    width: auto;
    font-size: 15px;
    letter-spacing: 3px;
    font-family: 'Roboto', sans-serif;
    color: #f5f5f5;
    margin: 0;
}

.deskripsi img {
    opacity: .9;
    width: 600px;
    height: 150px;
}

Save all files and run the index.html file.

41 comments:

  1. Thank you for sharing the post its really knowledgeable.
    minnesota web design

    ReplyDelete
  2. F*ckin’ awesome issues here. I’m very satisfied to peer your post. Thanks a lot and i am having a look forward to touch you. Will you kindly drop me a e-mail? web design agency new york

    ReplyDelete
  3. Good post. I be taught one thing more challenging on completely different blogs everyday. It is going to always be stimulating to read content material from other writers and apply a little something from their store. I’d want to use some with the content on my blog whether or not you don’t mind. Natually I’ll offer you a link in your web blog. Thanks for sharing. nyc web designer

    ReplyDelete
  4. I have not checked in here for a while as I thought it was getting boring, but the last few posts are good quality so I guess I¡¦ll add you back to my daily bloglist. You deserve it friend web design agency new york

    ReplyDelete
  5. This web site is usually a walk-through its the data you wished concerning this and didn’t know who ought to. Glimpse here, and you’ll definitely discover it. website designer nyc

    ReplyDelete
  6. If I were the one having to write this content, all these readers would be disappointed. It’s a good thing you are the writer and you bring fresh ideas to us all. This is interesting. web design new york

    ReplyDelete
  7. I {keep|cling on to|carry on} listening to the {news|reports|newscast|news bulletin|news update|rumor|news broadcast} {speak|talk|lecture} about {getting|receiving} {free|boundless} online grant applications so I have been looking around for the {bes… There is apparently a lot to identify about this. I think you made certain good points in features also…. website design company nyc

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Basically to follow up on the up-date of this subject on your site and would really want to let you know how much I liked the time you took to write this handy post. Inside the post, you spoke on how to actually handle this issue with all ease. It would be my personal pleasure to get some more concepts from your blog and come as much as offer other folks what I learned from you. I appreciate your usual great effort. branding agency san francisco

    ReplyDelete
  10. I think other website proprietors should take this site as an model, very clean and superb user genial style . branding agencies in san francisco

    ReplyDelete
  11. Hi there! I could have sworn I’ve been to this website before but after reading through some of the post I realized it’s new to me. Anyhow, I’m definitely glad I found it and I’ll be book-marking and checking back often! branding agency sf

    ReplyDelete
  12. I definitely did not realize that. Learnt something new nowadays! Thanks for that. branding san francisco

    ReplyDelete
  13. Average In turn sends provides is the frequent systems that provide the opportunity for one’s how does a person pick-up biological, overdue drivers, what one mechanically increases the business. Search Engine Marketing san fran design firms

    ReplyDelete
  14. I have read your article; it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it.
    web design agency

    ReplyDelete
  15. Excellent blog here! Also your site loads up very fast! What host are you using? Can I get your affiliate backlink to your host? I wish my web site loaded up as fast as yours lol web designer los angeles

    ReplyDelete
  16. used trucks are sometimes expensive and it is quite hard to find a good bargain if you don’t search heavily” web design la

    ReplyDelete
  17. When visiting blogs” i always look for a very nice content like yours .     la web design

    ReplyDelete
  18. His or her shape of unrealistic tats were initially threatening. Lindsay utilized gun first basic, whereas this girl snuck outside by printer ink dog pen. I used absolutely sure the all truly on the shade, with the tattoo can be taken from the body shape. make an own temporary tattoo web design

    ReplyDelete
  19. This sort of wanting to come to a difference in her or his lifestyle, initial generally Los angeles Excess weight weightloss scheme is a large running in as it reached that strive. weight loss top web design agencies

    ReplyDelete
  20. Glad to be one of many visitants on this awful web site : D. website tips

    ReplyDelete
  21. That being said by use it all, planet is really restored a little more. This situation in addition will this particular Skin tightening and starting to be moved and into the mood of these producing activities. daily deal livingsocial discount baltimore washington website design

    ReplyDelete
  22. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! mailto link

    ReplyDelete
  23. It's protected to say that everything starts and finishes with streamlining. While the measurement above is intriguing, this one is convincing.https://www.sandeepmehta.co.in/affordable-seo-services-delhi/

    ReplyDelete
  24. However, to make it easier, all you got to do is to follow a set of guidelines in going about it. https://onohosting.com/

    ReplyDelete
  25. find more info
    As I joyfully approached adding individuals that I thought would increase the value of my social systems administration experience, I saw that I was simply going to be permitted a status of social media groupie to these set up big talkers. find more info

    ReplyDelete
  26. A good understanding of current SEO practices and techniques is essential to functioning well in today's online business climate. Of course, it goes without saying that some ways of learning about SEO are better than others. All things considered, SEO training courses are the best source of up-to-date information on SEO. https://sites.google.com/view/seoservicesindelhiindia

    ReplyDelete
  27. The promoting organization gives the customer's rundown which is useful to the entrepreneur to contact and make an arrangement. The business situated individuals believe that they can do the promoting effectively yet commonly it comes up short. Advertising for Medspas

    ReplyDelete
  28. I’m impressed, I must say. Actually rarely must i encounter a blog that’s both educative and entertaining, and without a doubt, you may have hit the nail within the head. Your thought is outstanding; the catch is something that insufficient folks are speaking intelligently about. I’m very happy i always came across this around my hunt for something about it. recover unsaved word document

    ReplyDelete
  29. The web engineer will guarantee that a website admin's webpage arrives at the top web crawler positioning like Google or Yahoo. The web designer likewise helps with working on a current website. Website design

    ReplyDelete
  30. This blog is very useful and easy to understand thank you for sharing it and check this Best Digital Marketing Services in Siliguri India, & keep post new blogs.

    ReplyDelete
  31. i like the role of Anthony Hopkins in the movie Silence of The Lambs. this guy is simply amazing., roku can't connect to wifi

    ReplyDelete
  32. Easily, the post is really the greatest on this laudable topic. I concur with your conclusions and will thirstily watch forward to your future updates. Saying thank will not just be sufficient, for the great c lucidity in your writing. I will instantly grab your rss feed to stay privy of any updates. Solid work and much success in your business enterprise! lightning connector

    ReplyDelete
  33. Generally I don’t read article on blogs, but I wish to say that this write-up very forced me to try and do so! Your writing style has been amazed me. Thanks, very nice post. 145 Angel Number

    ReplyDelete
  34. wonderful post, very informative. I wonder why the other experts of this sector do not notice this. You should continue your writing. I’m confident, you have a great readers’ base already! Google Web Designer

    ReplyDelete
  35. Howdy, I simply hopped over in your website via StumbleUpon. Not something I would in most cases learn, but I appreciated your feelings none the less. Thank you for making something value reading. 23:23 MEANING

    ReplyDelete
  36. Really it was an awesome article... Very interesting to read... You have provided a nice article.... Thanks for sharing.

    Website Landing Page

    ReplyDelete

Powered by Blogger.