Тёмный

32: How to Create a 404 Page in HTML | Create a Custom 404 Page | Learn HTML & CSS | HTML Tutorial 

Dani Krossing
Подписаться 478 тыс.
Просмотров 94 тыс.
50% 1

How to Create a 404 Page in HTML | Create a Custom 404 Page | Learn HTML & CSS | HTML Tutorial. In this HTML tutorial you will learn how to create a custom 404 page on your website, which is used to show a alternative page to people who access a non-existing page on your website.
➤ GET ACCESS TO MY LESSON MATERIAL HERE!
First of all, thank you for all the support you have given me!
I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!
I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.
I hope you will find it helpful :)
Material for this lesson: / lesson-material-42361704

Опубликовано:

 

25 мар 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 122   
@Dani_Krossing
@Dani_Krossing Год назад
NEW UPDATED 2023 COURSE AVAILABLE! 🙂 You can find it here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-v8jDnBYc0bs.html&ab_channel=DaniKrossing
@frontendtesting
@frontendtesting 6 лет назад
thanks for doing this video! a lot of devs forget about the 404 page b/c it's not a "usual" path, but it can make a big difference in user experience when done well.
@jeffslegacy
@jeffslegacy 4 года назад
Too simple, thank you. I have been trying to bring my site up to current SEO Standards and the 404 page is one of the factors and I had code that worked as far as functionality but the SEO audits didn't recognize it, therefore telling me I needed a 404 page. Thanks alot!
@lukaphirtskhalava2449
@lukaphirtskhalava2449 5 лет назад
the best!! I watched this video only once and I remembered everything. Thank you for this video!
@WOXZE
@WOXZE 4 года назад
I would never imagine that it was this easy. Thanks a lot, brother.
@campodasexatas5370
@campodasexatas5370 4 года назад
Your tutorials are amazing!!! You're helping me a lot!
@burimislami1349
@burimislami1349 5 лет назад
Big respect. And please don't worry about the speaking/spelling mistakes! We are people, we all do mistakes. In this case, real people will value what you are teaching for free something that other people pay thousands of euros/dollars. Take this for all the videos. Tak! :D
@nikolasblues270
@nikolasblues270 6 лет назад
Love these html / css new series Daniel! Greetings from Greece!
@gelis07
@gelis07 2 года назад
geia
@05renemar1
@05renemar1 6 лет назад
Thank you for all of your tutorials man! It's sad that you don't get much views :(
@erikbmx478
@erikbmx478 6 лет назад
Amazing! I am gonna test it out tomorrow.
@regalrayquaza7609
@regalrayquaza7609 4 года назад
Thank you for this tutorial! Your videos are very good and easy to follow
@viewvast
@viewvast 4 года назад
Your my programming hero!
@SerenityWaves2.0
@SerenityWaves2.0 6 лет назад
Amazing, I'm waiting for your htaccess tutorials
@nziggypatlechat3892
@nziggypatlechat3892 3 месяца назад
Straight and simple ❤
@keuba1
@keuba1 4 года назад
Very usefull lesson. Thanks!!
@olgabiletski701
@olgabiletski701 3 года назад
very very thanks! its working and i searching 2 full years how to make a custom 404!!!
@kubickipl__
@kubickipl__ Год назад
thank you for this, i really needed a guide like this :D
@nickwest778
@nickwest778 6 лет назад
thanks for the tutorial ^_^
@48_subhambanerjee22
@48_subhambanerjee22 9 месяцев назад
Thanks buddy I needed it
@aliophelia949
@aliophelia949 6 лет назад
Dani i wish you make a tutorial on Laravel. i will be very grateful.
@notch29
@notch29 6 лет назад
it is essential to have a varchar '404' to show in a div (or span) in my html structure (question about good way to coding, SEO thinking etc...) ? or a img/icon with 404 is good also ?
@virsuryaircas
@virsuryaircas 5 лет назад
bro not working in my local host is it there any setting needs to be configured
@OPGAMER.
@OPGAMER. 3 года назад
it works only on apache server not any other else do it when your website is hosted online.
@mojtabaarmstrong2372
@mojtabaarmstrong2372 5 лет назад
Bro it really works 😍 Thank you man. Subscribe is the least thing i can do 👍 P.S : Your accent is great that i could not realize you are not an English speaker
@ramywahib7698
@ramywahib7698 4 года назад
then how did you realize?
@nissev2665
@nissev2665 4 года назад
@@ramywahib7698 2:36
@DPro7
@DPro7 8 месяцев назад
You are a hero!
@muhammadnawazseo3407
@muhammadnawazseo3407 3 года назад
very helpful thanku best wishes ahead
@BoxOfBananas
@BoxOfBananas 6 лет назад
Amazingly helpful!! Also, what's that outro song?? sounds goooood.
@fabichoon
@fabichoon 2 года назад
me ayudo mucho. gracias :D
@solomontsaagane9659
@solomontsaagane9659 2 года назад
Your English is perfect 👌🏾
@Queerventurers
@Queerventurers 4 года назад
OMG THANK YOU SO MUCH!!
@alertnikole
@alertnikole 3 года назад
You rock - thank you.
@OstonCodeCypher
@OstonCodeCypher 6 лет назад
Hello Mr.tuts....Am a bit off topic but I want some help on how to display content on a page using Ajax with out a click on a button. I see Browsers like Opera min use this by displaying news from other site .
@sreenathreddy6634
@sreenathreddy6634 3 года назад
Where do i need to place the .htaccess file? for now i have placed in where the 404 page not found html file path. But its not working
@mytech2704
@mytech2704 3 года назад
Thanks, A Lot!!
@dteam3163
@dteam3163 5 лет назад
THANK YOU!
@gabrielfono844
@gabrielfono844 4 года назад
thanks very much I still remember last year when I first writing my first line of code I was watching your project regarding html and css. today I am bout to be interviewed. I really appreciate your lesson. thanks so much. do I need to take your php course. is it still relevant in 2020 ???
@mathumathi9888
@mathumathi9888 3 года назад
Ya really very easy way thanks bro
@InvierteenlaBolsadeValores
@InvierteenlaBolsadeValores 3 года назад
Your English is excelent
@ralligarants5684
@ralligarants5684 2 года назад
Nice video bro! 7:47 I was wondering if there is a tutorial about what you can do with a htaccess file yet?
@leoheoro
@leoheoro 6 лет назад
Hi ! Your videos're very good. Can you make video tutorial use LESS without use CSS in create web ?! :))
@jos3008
@jos3008 5 лет назад
can i use htaccess if i m using node js?
@ahmedjoo1858
@ahmedjoo1858 3 года назад
Great and to the point tutorial as usual. I have a question, ErrorDocument 404 works fine as long as the "not found" page name is written directly after the www.mydomain.com/ however when i do the same after any existing page then nothing actually happens, simply the correct page still showing !!! for ex. if I try www.mydomain.com/existpage.php/jshdjfhlfas then still existpage.php is still showing .. any idea why ??
@videkrajnc
@videkrajnc 4 года назад
Super awesome
@maivishnaaz3117
@maivishnaaz3117 2 года назад
Thankyou 🌈❤️
@nielsencs
@nielsencs 6 лет назад
Your English is waaay better than my Danish! :)
@john8998
@john8998 6 лет назад
Yeah that's basically true. It took me a long time to notice that u were not an American...
@nielsencs
@nielsencs 6 лет назад
My only Danish is 'Din fa elsker dig' (roughly dean far elska die) which means 'Your Father loves you'; also my father loves me; finally 'hello' and 'goodbye' ('hi' and 'hi hi'!) :)
@parthpanchal3904
@parthpanchal3904 6 лет назад
I'm the first one Daniel ✌️
@rodolfocoprodutor
@rodolfocoprodutor 2 года назад
TKS man
@joepvandijk5850
@joepvandijk5850 6 лет назад
Hey, thanks for your tutorial, but I've a question... is it also possible to use a PHP file as error page? When I try to do that he can't be found... thanks
@Dani_Krossing
@Dani_Krossing 6 лет назад
Yes I have a video on it in my PHP playlist :)
@joepvandijk5850
@joepvandijk5850 6 лет назад
Thank you!
@joepvandijk5850
@joepvandijk5850 6 лет назад
Sorry... I'm stupid or something like that... I can't find the video...
@commissar9405
@commissar9405 5 лет назад
hEY i know im still 11 month late but do you know how to create a 404 error page on a profile link for an open forum?
@leoheoro
@leoheoro 6 лет назад
Good good good !!!
@DrLifeGamer
@DrLifeGamer 5 лет назад
help it says Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
@TheFlexXMLG
@TheFlexXMLG 5 лет назад
same
@ziphhy
@ziphhy 5 лет назад
Just figured out it. It's case sensitive I had error.html in the access file but the fike was Error.html
@aizazkhan2583
@aizazkhan2583 4 года назад
Hello sir its really awesome videos of HTML and CSS i am near to complete it ..and sir i am watching your videos since 5 months ....so now i want to learn php procedural so plz tell me from where i get start...
@tonymac129
@tonymac129 Год назад
Do you need a web server to do it? I searched for how to get a web server and downloaded Apache but I can't open it because Windows blocked it. Is there any other way to create a 404 page without a web server?
@luixz5388
@luixz5388 3 года назад
Thanks
@ramidika3864
@ramidika3864 Год назад
guys i have a problem , when i did the 404 error page for my website a 500 error appeared . How can i fix it
@niku683
@niku683 6 лет назад
That scary icon on the left side of the address bar, maybe later an idea to do a tutorial about SSL certificates.
@Dani_Krossing
@Dani_Krossing 6 лет назад
Νιψκ That scary icon is there because I don't use my website for handling sensitive data and because I am not trying to boost my website SEO ranking :) but yes a SSL certificate tutorial would be an idea later in this course. At the moment a SSL lesson would only confuse newer web devs that are watching this course, and since they haven't learned how to create dynamic websites yet it wouldn't benefit them much. SSL is primarily used when handling sensitive user data.
@aizazkhan2583
@aizazkhan2583 4 года назад
Hello sir its really awesome videos of HTML and CSS i am near to complete it ..and sir i am watching your videos since 5 months ....so now i want to learn php procedural so plz tell me from where i get start. (21-07-2020)
@KiliGraphics
@KiliGraphics 3 года назад
You should send a http Header with it. Google something thinks its a soft 404 or only a redirect.
@TheLeontheking
@TheLeontheking 6 лет назад
Doesn't work for me.. however, i am currently "hosting" my site using WAMP and localhost. Isn't it possible to do it that way? I mean it doesn't really matter, as the first moment when i will definetely need such page is when i upload my page.. but i am just wondering.
@Dani_Krossing
@Dani_Krossing 6 лет назад
It has to be an online server ;)
@DebiMLT
@DebiMLT 6 лет назад
hello mmtuts I'm trying to remove .html from the url can you do a video on how to remove pls
@Dani_Krossing
@Dani_Krossing 6 лет назад
My next video will show how to do this :) I will try to have it out tomorrow.
@DebiMLT
@DebiMLT 6 лет назад
thanks a lot you are awesome bro
@simsolchannel
@simsolchannel 2 года назад
Hello teacher. How are you? I want to ask about my Website Suspended . Since I did not enter the data for about 5 months, how to solve it? Thank you teacher
@jos3008
@jos3008 5 лет назад
btw your web page looks nice
@Vapor6701
@Vapor6701 6 лет назад
Hello! I was wondering if you could make a video teaching us how to hide the . extention!!! That would be really helpful for us working on having clean urls!
@Dani_Krossing
@Dani_Krossing 6 лет назад
Good idea for a lesson #33 since I already went into the .htaccess file in this video :) I don't want to get too much into the .htaccess file too early in this course, but this is a pretty good and simple thing to create. So why not :)
@mayorca_institute
@mayorca_institute 9 месяцев назад
The online server you are using is called what.... I want to use it to for testing of my app
@matresistance8608
@matresistance8608 6 лет назад
Can anyone tell me how I make a border fit the length of a word? So it doesn't go all over the screen? Thanks!
@Dani_Krossing
@Dani_Krossing 6 лет назад
Use: width: fit-content; On the container that has the word in it.
@dolittlediehard1670
@dolittlediehard1670 4 месяца назад
The person who ran the website before me has created a 404.hml page and it works but I can't find the .htaccess file you are referring to. Oh well 🤨. Thanks for the heads up though because i had no idea how it was working.
@tutorialswithshushanarora4569
@tutorialswithshushanarora4569 3 года назад
Does this work on notepad++ ?
@reivan_
@reivan_ 3 года назад
This is helpful! But will it work when I posted my site in netlify?? bc netlify has its own 404 page
@maivishnaaz3117
@maivishnaaz3117 2 года назад
Your blah blah blah 😂😂😂 is amazing
@LosChudos
@LosChudos 6 лет назад
Love your videos, would you consider creating series on Firebase?
@Dani_Krossing
@Dani_Krossing 6 лет назад
I have a lot of courses I want to start teaching on my channel including Firebase :) however at the moment I'm focusing on trying to complete other existing courses. Hopefully I'll get too it before too much time passes.
@LosChudos
@LosChudos 6 лет назад
Yeah I can imagine there are too many topics to cover and not enough time, anyways good episode, would love to learn more about htaccess in the future as well :)
@AbhishekKumar-we9qx
@AbhishekKumar-we9qx 4 года назад
Why his website got down?
@laskipikera3205
@laskipikera3205 Год назад
Bro, its not working on my end please help
@tanzeelrahman6857
@tanzeelrahman6857 3 года назад
This doesn't work on my server. My error is always :- Server Error 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. Do you have a solution for this? I have taken my domain from Rediff.
@wildporg
@wildporg Год назад
I get a similar issue, it just shows the same whether I have the html and htaccess or not
@Streetlight006
@Streetlight006 4 года назад
is the .htaccess file is an text document?
@thespicehoarder
@thespicehoarder 3 года назад
it's a linux thing. Linux doesn't do file extensions like windows. it is a plain text file, but it is not a .txt file
@prakashjangir412
@prakashjangir412 4 года назад
Sir i created a 404 page in which i have relative path of all the css and js file. Now it is working fine when some page that not exist with www.example.com/something but its css and js is not working with "www.example.com/admin/something" due to relative path. Can you tell me how can i solve this problem without changing relative path
@coolgamer6458
@coolgamer6458 6 лет назад
can anybody please tell me which software is he using to write html????
@jimdart8219
@jimdart8219 6 лет назад
Atom.io Sometimes he will use Sublime Text and he also uses Visual Studio Code.
@LanezYT
@LanezYT 4 года назад
mine didnt work.
@toddgilbey3979
@toddgilbey3979 Год назад
Soo why does it not work for me then................?
@elgatodiego
@elgatodiego 4 года назад
Hi, great tutorial ... I have a question ... I already have a .htaccess file on my server ... do I have to put the line of code on this file?. THANKS
@ABOS-dt4xl
@ABOS-dt4xl 2 года назад
He said in another video of his to move the 404 page code on the bottom of all the code.
@elgatodiego
@elgatodiego 2 года назад
@@ABOS-dt4xl Thanks
@besnik7271
@besnik7271 3 года назад
Daddy Musk been creepin
@Dani_Krossing
@Dani_Krossing 3 года назад
,,, creepin up on you!
@tutorialswithshushanarora4569
@tutorialswithshushanarora4569 3 года назад
if so it is not working.
@liamveary
@liamveary 4 года назад
777 likes!
@BasStuurwold
@BasStuurwold 6 лет назад
Danish Diplo
@ty-cj8nu
@ty-cj8nu 4 года назад
Hi mmtuts, i hate your outro music 😅😅, because it makes myself to sleep. But i like you 😅😁
@satr14-tech
@satr14-tech 2 года назад
i try this in replit but it dint work guess its because it only work on a server lol :P
@Mika43344
@Mika43344 5 лет назад
what about just index.php
@FriynMusic
@FriynMusic 3 года назад
ErrorDocument 404 /404.html
@dealcraftyt
@dealcraftyt 4 года назад
What is your main Language?
@Dani_Krossing
@Dani_Krossing 4 года назад
Danish
@calibr0636
@calibr0636 5 лет назад
I made one but it doesn't work because I didn't buy a server and domain cause I'm only 14.
@rivarelven4129
@rivarelven4129 5 лет назад
try using www.netlify.com you can host your website using github and it is free
@Technoph1le
@Technoph1le Год назад
Starts here: 5:15 thanks me later
@Dani_Krossing
@Dani_Krossing Год назад
MY GOD "past me" sure knew how to drag things out... 😅 Yeah that one is on me, I took way too long to get to the point in this one.
@Technoph1le
@Technoph1le Год назад
@@Dani_Krossing actually, it was helpful. I mentioned where the main code starts
@yungifez
@yungifez 4 года назад
Wait what English is not your main language
@CodeNest256
@CodeNest256 4 года назад
english is not my first language (am i the only one to not beleive it) loll :)
@danickdjb7555
@danickdjb7555 3 года назад
bla bla bla
Далее
Документы для озокомления😂
00:24
Create a 404 Error Page Using HTML & CSS
5:05
Просмотров 50 тыс.
HTML Tutorial - How to Make a Super Simple Website
33:24