The BEST Way to Build a Header! [HTML,CSS]

Sdílet
Vložit
  • čas přidán 3. 11. 2018
  • Code:
    github.com/marc-hinton/TheBes...
    Instagram:
    / itsmarchinton - @itsmarchinton
    In this video, I mention how you should revisit and rethink how you build different elements of a page and work on them to make them as clean, responsive and as efficient as possible.
    If you have a better way of building a basic HTML header then leave a comment!
  • Zábava

Komentáře • 425

  • @muffinman5958
    @muffinman5958 Před 4 lety +92

    as someone who literally doesnt know how to code css and html this was very helpful especially after my teacher decided to let us figure it out on our own.

  • @tyanthem3966
    @tyanthem3966 Před 3 lety +3

    Love the simplicity of your teaching style! Also short and sweet!

  • @michaelforsdike5163
    @michaelforsdike5163 Před 2 lety +4

    Mate, beltin' video. I'm trying to self teach and this is by far the easiest watch I have had. The online tutorial I am following teaches the basics but nothing in practice. Good to see it in action and so easy to follow. Thank you, very much appreciated!

  • @zobing224
    @zobing224 Před 5 lety +17

    Thank you so much for making this video! I am new to design and my final project requires me to to build a 4 Page website. Throughout the semester it was the most difficult for me to understand, your video just made creating the header so simple! I thank you ❤I feel confident completing my final project❤

    • @JoaX248
      @JoaX248 Před 5 lety

      Are you from la Inter?

    • @stepgames7698
      @stepgames7698 Před 2 lety

      SAME, I have an assignment to make a website in html but I was struggling to keep up with the class.
      This saved my life honestly :D

  • @Iamironman-JK
    @Iamironman-JK Před 14 dny

    This was genuinely very helpful, appreciate it!

  • @StrictFit23
    @StrictFit23 Před 4 lety +8

    Probably the first coding video i've had to slow down lol, great tutorial thank you!

    • @marchinton
      @marchinton  Před 4 lety +5

      Try speeding it up, it's more more exciting!

  • @notnice8703
    @notnice8703 Před 2 lety

    i love how quick it was! No time was wasted! Thanks :))

  • @brunokrneta9339
    @brunokrneta9339 Před 4 lety +1

    Everything I was looking for the whole week. Thanks a lot man!

    • @marchinton
      @marchinton  Před 4 lety +1

      Happy to help Bruno!

    • @BK-it6wg
      @BK-it6wg Před 4 lety +1

      I think we are profile pic neighbours
      gday

  • @adymorris7347
    @adymorris7347 Před měsícem

    Much obliged, my friend! Simple and easy to follow.

  • @leesimison4991
    @leesimison4991 Před rokem

    Cool watching you work man. Showed competence and has given me something to aim towards

  • @vivekshukla9485
    @vivekshukla9485 Před 3 lety +1

    That was awesome! Thank you for the help

  • @adamkelly6037
    @adamkelly6037 Před 3 lety +1

    Thank you so much! You explained better than anyone

  • @garybaitson
    @garybaitson Před 3 lety +3

    loved this video, you make it look so easy

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @DomTricksExtra
    @DomTricksExtra Před 2 lety +13

    Very well made tutorial, easy to understand, and it helped out a ton!
    Thanks Marc! 👏

  • @jamiecase5032
    @jamiecase5032 Před 2 lety

    Helpful for me regarding style sheets. I am really a coder at heart and so help like this with design much appreciated!

  • @joaoferreira8
    @joaoferreira8 Před 4 lety +2

    Hail from Brazil! Marc, I did it and got everything right. Didn't understand the CSS thoroughly, missed like about 15%, but I consider it a great victory for a beginner like me! Thank you!

  • @arvinosaurus7505
    @arvinosaurus7505 Před 4 lety +1

    Thank you very much for showing this code! without this I wouldn't make the best header possible

    • @marchinton
      @marchinton  Před 4 lety +1

      I'm glad you liked it. Thank you for your comment.

  • @leviross6343
    @leviross6343 Před 5 lety

    Great video! Can't wait to see more of your work!

    • @marchinton
      @marchinton  Před 5 lety

      Thank you Levi! Should be uploading more soon.

  • @NickName-ck2hy
    @NickName-ck2hy Před 3 lety +1

    Wow thanks that really helped. Just got my motivation up again :)

  • @leighauza
    @leighauza Před rokem

    amazing! thank you so much, your process made it really easy to grasp!

  • @dhuvarakar3259
    @dhuvarakar3259 Před rokem

    Thanks for this video 😄.It is very much easy to understand

  • @7amarawa
    @7amarawa Před 4 lety +2

    It was really helpful mate, thank you.

  • @nathangurr257
    @nathangurr257 Před 4 lety +3

    You're a gentleman and a scholar. Thank you!

    • @marchinton
      @marchinton  Před 4 lety

      I see you're also a man of culture..I appreciate it!

  • @Taufiq714
    @Taufiq714 Před rokem

    Very good presentation. Just the right pace. And good step-by-step coding.

  • @naitikkathiriya
    @naitikkathiriya Před 3 lety +1

    Ok... It's so smart way to put list style and text decoration none in universal locator✔️✨👍👍👍..
    Impressed!

  • @rain-2263
    @rain-2263 Před 2 lety

    Thank you so much!
    It really helpful

  • @rajeever8584
    @rajeever8584 Před 4 lety +1

    The table thing you did was very clever. Expects more of the same in future. Well done.

    • @marchinton
      @marchinton  Před 3 lety

      Thank you Rajeev! More to come soon mate.

  • @dramaniaskandarondeog113

    Thank you very much
    I really learned something from you

  • @adrianasilveira4561
    @adrianasilveira4561 Před 3 lety

    It helped me so much. Thank you ; )

  • @lunasoleil2827
    @lunasoleil2827 Před 2 lety

    Wonderful video. I'm so glad I stumbled here!

  • @hiwayshoes
    @hiwayshoes Před 5 lety +1

    Very helpful! Thank you for the tips!

  • @supporttech5879
    @supporttech5879 Před 3 lety +1

    🔥 You saved my ton of time❤️

  • @migueltop96
    @migueltop96 Před 3 lety +1

    a good example, thanks for the class, and... yes, it is the better model for any site

  • @anangyoga1381
    @anangyoga1381 Před 4 lety

    I did it and it worked. thank you mate, cheers!

  • @marcincelmer109
    @marcincelmer109 Před 4 lety +10

    Hi Marc,
    Great video for begginers!
    I have added a "hover" selector to your code.
    ______________________________
    .navigation a li:hover{
    color: #101010;
    font-weight: 600;
    }
    .navigation a:hover{
    background-color: white;
    }
    ______________________________
    When you drag the mouse over the menu, the background below will turn white and the inscription will change to black. I also removed padding from .navigation a{} to .navigation a li{} so now the menu item turns dark in the right moment. My question is:
    - The height of the white background-color is 100% of the inline-header, but when i change it in the script for example to 50%,
    the only thing that happens is the subtitles are moved up. I want the navigation to look more like a smaller rectangle buttons. Can u please help me? :)
    M.

  • @tomastrnka4648
    @tomastrnka4648 Před 4 lety +1

    Thanks man, this is a game changer

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @fullStackInKannada
    @fullStackInKannada Před 4 lety +1

    Thank you so much! It helped me a lot :)

  • @jallal2767
    @jallal2767 Před 15 dny

    thanks for making this video

  • @ari.hasanaj
    @ari.hasanaj Před 4 lety +2

    Make moreee!! 👍🏻 great video bro

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @huzaifa5361
    @huzaifa5361 Před 3 lety

    Very Thank of you was making a project for my University . This helped ma alot .Thank You

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @iamsimran2402
    @iamsimran2402 Před 2 lety

    Thanks it helped a lot🙏🏻

  • @Karan-st7wf
    @Karan-st7wf Před 5 lety +3

    Thanks So much for the help!

  • @berkalkan3382
    @berkalkan3382 Před 3 lety

    Amazing. Thank you so much!

  • @mckenzieturner7588
    @mckenzieturner7588 Před 2 lety +3

    Ive watched over 10 videos and followed along to all of them; This one was much simpler to make. I was able to do everything that the other ones could but with much less HTML

  • @nabilotexd5836
    @nabilotexd5836 Před 5 lety +88

    This is a very good tutorial thank you, however MY GOD are you fast

    • @marchinton
      @marchinton  Před 5 lety +19

      Sorry! I'm from the North of England, talking fast is a curse!

  • @murphyscott5264
    @murphyscott5264 Před 10 měsíci

    love you Marc

  • @mechragna
    @mechragna Před 5 lety +2

    Thanks for the tutorial, it was very useful. Could you add a video showing how to add to this header nested items in the nav section? thanks.

  • @abdullahalawad2661
    @abdullahalawad2661 Před 3 lety +1

    all respect. thank you very much

  • @josesuch4962
    @josesuch4962 Před 4 lety +1

    Thanks so much for this video

  • @rabiakhan1995
    @rabiakhan1995 Před 3 lety +3

    I love Your Header very much and I made it 40 times

  • @AZGamerz
    @AZGamerz Před 4 lety +2

    Thank You soooo Much

  • @supersonic837
    @supersonic837 Před 2 lety

    Great video!! just one thing, how do I have the ul in the center of navbar instead of float right?

  • @kreateyoutube6840
    @kreateyoutube6840 Před rokem

    VERY GR8 TUTORIAL

  • @408sophon
    @408sophon Před rokem +1

    this was great ty

  • @mrdoagainstthemachine7386

    You rock, man!

  • @shaikhmoin849
    @shaikhmoin849 Před 2 lety +1

    Thank you brother ♥️

  • @facundoarlingtoncodorniu9961

    Nice vid dude

  • @MeCreateAccountxD
    @MeCreateAccountxD Před 4 lety

    Thank you so much!

  • @Tech-Dev
    @Tech-Dev Před rokem

    Thanks Marc for this tutorial.. what do you think using flex to build header and footer?

  • @mehmettoktas5430
    @mehmettoktas5430 Před 3 lety +2

    thanks for information from Turkey :)

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @ronaldello97
    @ronaldello97 Před 4 lety

    Thank you so much for the video, but how would you put a login form in the same header?

  • @emris0426
    @emris0426 Před rokem

    This is helpful
    Thanks

  • @littlebeauty1195
    @littlebeauty1195 Před 2 lety

    thankyou for this video.

  • @zikpin
    @zikpin Před 5 lety +1

    Thank you so much

  • @yih.7952
    @yih.7952 Před 2 lety

    Hit ther! thank you very much for the video! it helped me a great deal. Do do by any chance have a video in which you explain how to connect the topics (home, about and so on) to other pages? Im a beginner and dont know how to approach this topic! Thanks in advance :)

  • @kabiandavidson9835
    @kabiandavidson9835 Před 3 lety

    Awesome Video!

  • @calebimoyera197
    @calebimoyera197 Před 4 měsíci

    very helpful thank you

  • @chadisfeir3809
    @chadisfeir3809 Před 5 lety +1

    Thank you very helpful !!!

    • @marchinton
      @marchinton  Před 5 lety

      I'm glad you think so Chadi, thanks for your comment!

  • @1zeph
    @1zeph Před 3 lety +3

    Hello, just having a problem on navigation, mine was on under the header and innerheader, and idk why.

  • @anandathawale609
    @anandathawale609 Před 3 lety +1

    Thank man

  • @kayleigh4161
    @kayleigh4161 Před 4 lety +7

    This was great thank you so much! I do have a question: when I replace my h1 with an image and give that image the same style as the h1 it somehow aligns to the top of the container. Eventhough it says to align to the middle. Any tips on where I might be going wrong?

    • @ash-faque
      @ash-faque Před 4 lety +2

      Instead of giving same css as h1 give some other style to that logo🥴

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @pettyjames7
    @pettyjames7 Před 5 lety +7

    Why not just use the element and element?

    • @marchinton
      @marchinton  Před 4 lety +1

      The truth for me is consistency. You get the same result either way and for me it's easier and faster to type out a div with the class of header than it is to type a header. It's completely down to the way you learn, there's no right or wrong answer here, that way is right too!

    • @sidrockx95
      @sidrockx95 Před 4 lety +4

      @@marchinton LOL. You are also compromising on semantics by using div instead of header!

  • @ObsceneHero
    @ObsceneHero Před 8 měsíci

    that was excellent 🙂

  • @ianonline
    @ianonline Před 5 lety +2

    Great advice Marc, but I think instead of creating the classes .header and .inner_header, why didn’t you use the html tags and ?

    • @marchinton
      @marchinton  Před 5 lety +9

      Hey Ian, thank you for your comment. I used classes because I like to keep things uniform within a document. I'd probably move the HTML in to a seperate header.php document and include it on ever page with PHP so having to remember different class names without seeing the code had become a pain for me when creating additional functionality with JavaScript. Remembering if I used the header tag or if I used a class or an ID, etc.
      So I tend to use classes wherever possible, as long as I'm sure the names won't be useful for something later (.header is typically fine as it's not too similar to anything I'd build within a page so there's little reason to keep .header free).
      and tags are just as useful, don't get me wrong, but for me personality it saved me time in the future knowing that I used classes where possible, and I tend to use the same class names for the same elements across websites that I build.
      Also, I read a blog online about the use of bots that crawl your site for malicious purposes and the code that I read searched in particular for tags to find the navigation of your site so if I can get around them AND save me time when I code, that's a big bonus too.

  • @saladcream1884
    @saladcream1884 Před rokem

    Quality Video, TY

  • @abi-sk2cb
    @abi-sk2cb Před 2 lety +1

    tysm for this

  • @krzysztofs6149
    @krzysztofs6149 Před 4 lety

    Well explained! Thanks :D

  • @anil4121
    @anil4121 Před 2 lety

    How did the red box position automaticaly itself to the center? Anyone

  • @larissavilela9866
    @larissavilela9866 Před 3 lety +1

    realmente muito bom, obrigado!

  • @jakesteck6032
    @jakesteck6032 Před 3 lety

    HOLY THANK YOU!!!

  • @rajeevpatel3732
    @rajeevpatel3732 Před 3 lety +1

    Attractive header s🔥🔥👍👍

  • @seyahatdeneyimleri
    @seyahatdeneyimleri Před 4 lety +1

    thanks dude

  • @rajeshkumarbagde6732
    @rajeshkumarbagde6732 Před rokem

    Very helpful

  • @Nicklefritz
    @Nicklefritz Před 3 lety +3

    Question: I've seen people code navigation bars with unordered lists (as you have), but I've also seen people just use the navigation tags: ... . Which way is correct? Or which way is better? Or do they both have their pros and cons?

  • @ferdoushasan3117
    @ferdoushasan3117 Před 4 lety +1

    Thanks for your video... It's very helpful video for beginners like me...❤️❤️❤️

  • @hosseinzandiyeh1943
    @hosseinzandiyeh1943 Před 2 lety

    Perfect

  • @JakeLoeppky
    @JakeLoeppky Před 4 lety

    Would the and tag be more efficient or no? I'm pretty much a n00b at HTML and am trying to learn. Great information here if I can retain it...

    • @marchinton
      @marchinton  Před 4 lety +1

      Using those tags are arguably more readable to humans and maybe even to basic web-crawler bots but it makes no real difference in how the site looks or works. These tags (, ) have pre-defined styles that are in the user-agent stylesheet in every browser so if you intend to make use of the pre-defined styles (which I don't), then you should definitely make use of the proper tags.
      Hope this made sense!

  • @ayannazimmermon5506
    @ayannazimmermon5506 Před rokem

    Thank you 🎉 I’m a beginner

  • @dkr97
    @dkr97 Před 4 lety

    Thanks for the video buddy

  • @aronm782
    @aronm782 Před 5 lety +1

    Thank you!

    • @marchinton
      @marchinton  Před 5 lety

      I appreciate your comment Clayrin, thanks for watching.

  • @zawwarnaseer9520
    @zawwarnaseer9520 Před 5 lety

    best tutorial ive seen

  • @Max-xp3tf
    @Max-xp3tf Před 4 lety +20

    Hi, for the space between the logo and the navigation, what about using "display: flex" with "justify-content: space-between" instead of Float left and right ? Thanks!

    • @marchinton
      @marchinton  Před 4 lety +5

      The float property is completely fine and safe to use, as long as your parent container has overflow: hidden;
      This property means that nothing from outside the parent container can be affected by what's inside the div.
      I hope this helps Max.
      Marc

    • @mrbenny3757
      @mrbenny3757 Před 4 lety +2

      Max ok

  • @abdul391_
    @abdul391_ Před 4 lety +2

    This video convinced me to SUBSCRIBE to your channel. Thank you for this useful tutorial as I am a beginner. Stay happy stay safe. 😊

    • @marchinton
      @marchinton  Před 4 lety

      Thanks for the sub! Stay safe and happy yourself Abdul!

  • @AneesKhan-uz4mz
    @AneesKhan-uz4mz Před 5 lety +1

    great bro really great, well explained

    • @marchinton
      @marchinton  Před 5 lety +1

      Thanks Anees!

    • @AneesKhan-uz4mz
      @AneesKhan-uz4mz Před 5 lety

      @@marchinton bro can i request a tutorial?

    • @marchinton
      @marchinton  Před 5 lety

      @@AneesKhan-uz4mz Absolutely, what are you thinking?

    • @AneesKhan-uz4mz
      @AneesKhan-uz4mz Před 5 lety

      @@marchinton please head over to awardspace sign-up page (google it) they using really cool real-time validation, u just check it out yourself by filling the form, can you please make a tutorial on how to make that type of real-time validation!
      Thanks!

    • @marchinton
      @marchinton  Před 5 lety +1

      @@AneesKhan-uz4mz I've actually used AwardSpace before funnily enough. I revisited just now to see the form that you talked about. I think that a video on how to validate forms in real time would be useful to a lot of others too. I'll see what I can do.

  • @alialtwill6551
    @alialtwill6551 Před rokem

    that's cool 😎

  • @ashokrawat3246
    @ashokrawat3246 Před 3 lety +1

    Wow so easy 😍

  • @GlobalTVArm
    @GlobalTVArm Před 4 lety

    thank you bro

    • @marchinton
      @marchinton  Před 4 lety

      You're welcome! Thanks for watching.

  • @krepa4029
    @krepa4029 Před 2 lety

    I have a problem, my navigation bar is vertical instead of horizontal even though my code is identical to yours. What do you think causes this problem?

  • @pedroheck3667
    @pedroheck3667 Před 3 lety +4

    How would you adjust this by putting an actual image where the written logo is? I've tried it but any changes I do to the image just seems to have no effect...

    • @uiworld3381
      @uiworld3381 Před 3 lety

      See this Header czcams.com/video/5lJsfn-QnzY/video.html

  • @LVuksin
    @LVuksin Před 5 lety

    Hi Marc. Awesome video! I was just wondering, why not use flexbox?

    • @marchinton
      @marchinton  Před 5 lety

      Flexbox doesn't degrade well with older browsers, if you view a display: flex element on a slightly older version of IE or Safari it kinda' bugs out. Display table, coupled with vertical-align: center and display: table-cell is a very old but still understood way of centring things vertically, so it makes sense to keep using it!
      Thank you for your comment Lukas, much appreciated!