Тёмный

HTML5 Basics - Display Types (Part5) 

DevTips
Подписаться 351 тыс.
Просмотров 53 тыс.
50% 1

In this video we are going to talk about something inherent to html tags: display types. Display types define how the tags behave when rendered by the browser. We can use Style Sheets to change these at any time, but each tag has a default behavior and its important to understand how they will work when you are describing your page when writing the initial markup.
Got that?
Three Types
There are a lot, but we are going to concern ourselves with three main display styles.
Block
Block level elements are big blocks, just like they sound. They are generally used to divide content, because by default block level elements begin on new lines.
Block-level elements may contain inline elements and other block-level elements. Inherent in this structural distinction is the idea that block elements create "larger" structures than inline elements.
An example is a "p" tag, that sections off the whole paragraph, and forces the next paragraph tag to a new line.
Check out the notes below for a link to a list of all the block level tags in HTML. [developer.mozi...]
Inline
Inline elements may contain only data and other inline elements. Where block level elements are larger structures that contain all kinds a crap.
By default, inline elements do not begin with new line when rendered by the browser.
An example of this would be to wrap some words in your paragraph in an "a" tag. the words become a link, but the link does not start a new line in the paragraph, or disrupt the flow of content. It just sits inline in the paragraph.
When we get to styling our document, we will note that inline elements cannot take width, height, margin and padding styles.
For more on that check out this link [www.maxdesign.c...]
Inline-block
This is the strange, but handy one. An inline block is placed inline (ie. on the same line as adjacent content), but it behaves as a block. So it can take those margins and paddings and dimensions.
The only tags that default to inline-block are images and buttons. But with css, later on we will see that we can change any element to inline-block if we want to.
Check out the link below for more information on inline-block [www.impressivew...]
Display None & Table and others...
There are other default display types that all have their little display behavior quirks; like display:table, or display:none. And there are a lot of interesting display methods on the horizon in css3, but today we wanted to just talk about how the html tags cary certain display types by default.

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

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 164   
@meuss2976
@meuss2976 9 лет назад
After using html and css for a while, I decide to come back to the roots to make sure I didn't miss anything important. Im loving these videos and all this free content on youtube, thumbs up, subscribed!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks Thomas! I'm glad you are going back over the fundamentals. I wish more ppl did.
@Greg4510able
@Greg4510able 8 лет назад
It took somebody drawing this on their face for me to remember this, well done.
@danaros702
@danaros702 3 месяца назад
lol same here
@RyanGarantInvestments
@RyanGarantInvestments 8 лет назад
Your comedy definitely aids in memory. Thanks!
@alexandershekhtman770
@alexandershekhtman770 8 лет назад
you are really funny! keep up being the way you are and your audience will increase. laughter makes it funner to learn as the concepts get harder.
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks for the encouragement :)
@Eikon_FF
@Eikon_FF 6 лет назад
2018 now and still loving this series :D
@MegaLoler9000
@MegaLoler9000 10 лет назад
my favorite part is the sillyness XD in fact, I searched "history of html" and checked out a few. but i only stuck with yours because it has a layed-back feel with a personal touch, unlike the others. like they were super boring and one was a formal lecture, bleh!
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks! You can say a lot of things about my channel, but I never want you to say its boring :)
@loliklolik8057
@loliklolik8057 7 лет назад
You are the best teacher! The videos are funny and interesting!
@Mewildhair
@Mewildhair 8 лет назад
Loving the series and the channel so far. The explanations are understandable and you are adding to the enjoyment with your comedic displays. Subscribed after the first vid I saw, keep it up!!
@Archies3D
@Archies3D 8 лет назад
your explanation style is so good..
@santiagocarnago
@santiagocarnago 9 лет назад
excellent, funny and original, and I plan to see them all videos, I love this channel, you make me laugh a lot and learn at the same time, sorry for my english ... thanks google translator too ... lol
@OfficialDevTips
@OfficialDevTips 9 лет назад
I'm glad you like it man!!
@JamesScottGuitar
@JamesScottGuitar 8 лет назад
Awkward and hilarious. Keep up the great work!
@michellemccoy9189
@michellemccoy9189 9 лет назад
This really helped me! Thanks for breaking it down.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Absolutely!! I'm glad you liked it :)
@barrard
@barrard 8 лет назад
I think the Block-head example really helped to drive home the point....
@OfficialDevTips
@OfficialDevTips 8 лет назад
Hahaha. Nice!!
@leonkwasichronicles
@leonkwasichronicles 8 лет назад
you do a great job of explaining, thanks!
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome!
@tylerwarren3122
@tylerwarren3122 8 лет назад
I feel like the people behind me think I'm watching a cult recruitment video :b really cool channel, man!
@OfficialDevTips
@OfficialDevTips 8 лет назад
hahah! Maybe you are!!! lol
@ScrubsIsee
@ScrubsIsee 9 лет назад
This is soo ridiculous! True - but I like it! ... simply brilliant, thank you.
@OfficialDevTips
@OfficialDevTips 9 лет назад
haha, thanks!
@ScrubsIsee
@ScrubsIsee 9 лет назад
DevTips You're welcome. Just followed along your tips in some of your older vidz and still can learn something from it. Thumbs up!
@OfficialDevTips
@OfficialDevTips 9 лет назад
awesome :)
@orsonc.badger7421
@orsonc.badger7421 6 лет назад
Nice!!
@ivapopova8506
@ivapopova8506 7 лет назад
I think you write the tags in the wrong place... It should be on the body, not on the head ; ) following the standard. Your videos are the perfect learning material for beginners.
@RobeyLawrence
@RobeyLawrence 10 лет назад
you are so weir...err....wise! Love the videos, and the host, he's good too. If you were an HTML tag, what would you be?
@OfficialDevTips
@OfficialDevTips 10 лет назад
@safiaameen4248
@safiaameen4248 9 лет назад
your recent videos are much better , I like the "sandwich" idea ! :D thnxs alot
@OfficialDevTips
@OfficialDevTips 9 лет назад
The embarrassing past. Soon the new stuff will be embarrassing. I can't wait:)
@safiaameen4248
@safiaameen4248 9 лет назад
DevTips hhhhh can't wait too
@FelypeSotonyi
@FelypeSotonyi 9 лет назад
cool!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks
7 лет назад
Face board is actually work, if only my school teachers explain to all of subjects :)
@vaibhavchawla7353
@vaibhavchawla7353 9 лет назад
Hahaha you are a crazy designer lol
@animren6038
@animren6038 9 лет назад
great u learn & smile...go weird :D
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks Ani :)
@raymondpcowie101
@raymondpcowie101 7 лет назад
You're there, but not all there!
@mtho
@mtho 10 лет назад
I like the way you differentiate in doing your tutorials. However, I think you need to draw the line somewhere because it gets too silly.
@OfficialDevTips
@OfficialDevTips 10 лет назад
Eff that. Turn up the silly! YOLO!
@davidpittman106
@davidpittman106 10 лет назад
DevTips I agree... Spinal Tap it to 11. It makes a great break in the info. We retain the most info at beginnings and endings of instructions, and the short video times feel concise. But that's probably cause i'm still a bit of noob. But either way, great instructions.
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks David!!
@renierantonio5973
@renierantonio5973 8 лет назад
some people are only scanning through youtube to give dislikes
@AnatolyKhalizev
@AnatolyKhalizev 9 лет назад
Third felt pen needs to be blue color )
@OfficialDevTips
@OfficialDevTips 9 лет назад
AAhh!!!
@ScrubsIsee
@ScrubsIsee 9 лет назад
DevTips /* supi-dupi special class-é */ .face-pen {color:ultraviolett !important; border:none; text-align:round-your-face;}
@OfficialDevTips
@OfficialDevTips 9 лет назад
lol
@nihilisticsin5398
@nihilisticsin5398 9 лет назад
DevTips Hey Shave It , It'll Give More Space For Writing, :P , :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
lol
@AlwinGeorge2008
@AlwinGeorge2008 7 лет назад
Man you are stoned. :) Right.
@rembrandt702
@rembrandt702 8 лет назад
u r 2 close yo the camera....back off 2 feet
@monk333
@monk333 9 лет назад
So much distraction in this playlist.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Monk MonkMonk distraction?
@monk333
@monk333 9 лет назад
DevTips Yes, I went through it to revisit some basics. The audio track is unbearable, and there is so much silliness/interruption and wasted time going on here that I had to just stop and move along.
@OfficialDevTips
@OfficialDevTips 9 лет назад
sorry you feel that way. I'll take it on board, check out some of the newer videos and see how you feel!
@monk333
@monk333 9 лет назад
DevTips Your more recent videos are much better.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks. That's important to me.
@simpsot_
@simpsot_ 7 лет назад
2017 still watching this Gold
@evvie01
@evvie01 3 года назад
Me too in 2020.
@kevindumitrascu2409
@kevindumitrascu2409 8 лет назад
Hi, Even if this video is pretty hilarious, is the first time I understood better how it works with this Display Types. So, thank you. You're doing a great job. By the way, it is a big difference between your current and old videos. The new ones are much better / professional.
@terrellharper9690
@terrellharper9690 8 лет назад
Man, you make this easy. Thanks a lot!
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome! Glad you like the videos!!
@verawat
@verawat 8 лет назад
I love you awesome man. very very fun and easy to learn I came form Thailand, If you visit my country pls. call me, I will take care you. 555
@OfficialDevTips
@OfficialDevTips 11 лет назад
Didn't sink in..
@TackleTheWorld
@TackleTheWorld 8 лет назад
When I see someone explain a three-part thing by writing the three things on their face I know I've found a serious instructor. Thanks for being excited about the subject. I'm watching all your videos and getting my nerd on!
@micahaldrich1914
@micahaldrich1914 4 года назад
I don’t even know what to say. Just outstanding! Comment back if u want even though this is years late. THANK YOU SO MUCH
@TeeNoMore
@TeeNoMore 8 лет назад
Hello Travis. I am a student at a community college in Maryland, working on my Associates in Web Design and Development. I have had some issues understanding HTML concepts. I watched all your HTML5 Basics videos and they were very helpful. I appreciate your style of explaining things, don't every change, and the fact that you don't skip things for the sake of getting the video done in a hurry. So I am here to say THANK YOU. and let you know that I will watch ALL of what you offer, and have mentioned your methods and content to my professor. He is going to mention you to other students who could use your help.
@3mroos4
@3mroos4 9 лет назад
Too close man... Oo can't focus on anything u say.. But you know, what I heard is really well explained :D Thanks man. You're weird... :P
@OfficialDevTips
@OfficialDevTips 9 лет назад
yea. i know. This was the like one of the first few videos i ever made. still learning.
@soulextracter
@soulextracter 9 лет назад
@MrTexMart
@MrTexMart 9 лет назад
Aw man, I've watched all the CSS videos and now 5 HTML5 videos. All I can say is that I wish we could be real life friends! I'm gonna watch all the videos and code all the things. You rule.
@odesksolutionsaffordablewe2693
It's like I can't keep looking, but I can't look away..... LOL Cause it makes sense! Dork, but thanks for making sense in a dorky way...
@toperkemur
@toperkemur 8 лет назад
currently i'm trying to polish my fundamental web dev skills, and gotta say your video is very-very entertaining because it's not boring, you're funny and informative as well!!
@dallasoptic1213
@dallasoptic1213 7 лет назад
Im really new to learning HTMl and I have enjoyed learning from you, a lot more inactive that reading, of course reading is important but you are getting the message across. Helping me build my future thanks b
@Fullrusher
@Fullrusher 6 лет назад
I was just learning html to edit my website so I would t have to pay some one to and I have to admit I’ve learned a lot and have even started learning from codecadamey thanks to you lol I don’t wanna give up my main interest but I’m thinking some html ,css , and JavaScript May be good side skills to know , what do you think ?
@Galanoodle
@Galanoodle 7 лет назад
Just cause I saw you drawing this on your face I will just instantly be able to always remember these elements hahaha! Kinda like the pyramid for the Ohm's Law :)
@SazikimiJaeger
@SazikimiJaeger 6 лет назад
I learned the display types months ago from your video and damn it is very useful. But now I am here for the background music. I miss this music these days in your recent tutorials.
@johnny5039
@johnny5039 7 лет назад
You lose all credibility when you draw terms on your face. It's very annoying and not funny not all. Unsubscribed.
@videocasetteTV
@videocasetteTV 7 лет назад
May you kindly explain different types of display tables because in some tutorials they use it to center the text without centering the image which is not clear for me
@georgebockari289
@georgebockari289 6 лет назад
I mean you wrote on your face (no rational reason tbh)...such commitment is worthy of sub
@ivychen5320
@ivychen5320 6 лет назад
I LOVE THIS BINGEWATCHING ALL OF THE VIDEOS FORM DAY 1 THANKYOUUU
@snehapriya3333
@snehapriya3333 7 лет назад
such an intrsting way to teach:) u are funny:). try using better techniques:):) .
@DiegoPereyra
@DiegoPereyra 6 лет назад
Sorry, scuse me, whats the word you are talking about...?
@sszz25
@sszz25 8 лет назад
Hey amigo ! you said that inline can contain only data & inline elements ! why it can't contain block elements ?
@dk0r51
@dk0r51 8 лет назад
Great channel so far! Face paint explanation may be skipped @ 05:21 +DevTips Hasn't html4's block-vs-inline concept been replaced by html5's flow-vs-phrasing concept? (as per the bottom of the mozilla page you linked in the description). Also, that same mozilla page seems to imply that html4's Display Types have been replaced with html5's Content Categories. Should these differences be made explicit in an html5 tutorial or are they merely semantics and outside of the scope here? Ctrl+f "The distinction of" here: developer.mozilla.org/en-US/docs/HTML/Block-level_elements and also see here: stackoverflow.com/questions/30233447/what-is-the-difference-between-phrasing-content-and-flow-content Also, the maxdesign.com.au/articles/inline/ page is from 2006 and it's image links are broken --it's still a viable read
@OfficialDevTips
@OfficialDevTips 8 лет назад
Hmmm. Never heard of this. Thanks for pointing this out! I'll read more into it, but for practical purposes; I think this info is still good for beginners.
@andjammor
@andjammor 7 лет назад
This video is not efficient or suitable for my ADHD lol
@logalexdavid
@logalexdavid 2 года назад
This makes me feel like I am watching a makeup tutorial.
@rogerh2694
@rogerh2694 6 лет назад
I guess putting some entertainment content does make you more focused :P
@TheThoughtherder
@TheThoughtherder 8 лет назад
It's all eighties music all the time. Great info. Thanks
@Rebellionofself
@Rebellionofself 5 лет назад
Love the video, the style keeps the video from being boring lol
@DonAndrews
@DonAndrews 8 лет назад
I rarely comment on videos but I just have to say your series is great, although I have to keep rewinding because I start laughing and lose track of the topic (I started with your css series). I am re-learning the web having started with Netscape Composer in the late 90s then upgrading to Microsoft Frontpage 2003 for a few hundred bucks and heavily relied on the magic of Flash for a lot of cool stuff from the Macromedia Shockwave days. I have been ignoring css for years because I have so many hundred pages made in Frontpage 2003 without css or inline styles and now I work in a computer free environment and I use most of my "off time" being off. Time caught with me though. Google wants mobile friendly pages and what Google wants Google gets. After cautions from G that ranking for mobile will be demoted for non mobile friendly sites then over the past few months seeing evidence in Google Analytics that they are serious, it's time for action. I have watched a lot of other people's tutorials lately (some long, drawn out, boring or more confusing than teaching) and now after rewinding various parts of your videos a few times, some concepts that were grey turned to black and white. Thanks for the black and white clarity even though you cheat using your unique "color" to get re-winds and longer visits to achieve that clarity. Keep up the cool vids, Don
@OfficialDevTips
@OfficialDevTips 8 лет назад
Haha, you are welcome Don. Best of luck man!
@almightyv4321
@almightyv4321 5 лет назад
2019 and still watching this diamondtec video
@adrbroadcast
@adrbroadcast 8 лет назад
Hello Trevis! I was looking for SASS tips and you convinced me to step back and take a look in these older playlists. Your approach is gret! Thanks a lot for sharing your knowledge.
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome! Awesome!
@aurieneilson1196
@aurieneilson1196 11 лет назад
Very entertaining. Didn't I teach you not to write on yourself.
@angeloalcanar840
@angeloalcanar840 9 лет назад
Thanks for this tutorial Travis! I am a beginner in web development, and you are so good at explaining things and your funny. hehehe. Learning is fun here at DevTips! Keep it up! :) :) Greeting from Philippines! :) :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
Awesome! Thanks so much for watching and commenting!!
@DarcyCardinal
@DarcyCardinal 7 лет назад
Your old videos still are relevant, thanks!
@desiraedebellis8982
@desiraedebellis8982 10 лет назад
I love your personality! This is what makes the video's fun to watch and that helps get your message across to us! Great Job!
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks Desirae Debellis That means, a lot. Especially on this weird one... :P
@VLARTfamily
@VLARTfamily 9 лет назад
that's ridiculous but awesome!!! ))) GREAT videos!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Artiom Cavtea :) it was a weird night.
@afterparty1911
@afterparty1911 7 лет назад
your are crazy as fuck, in a good way xD
@jeramiahmiles9595
@jeramiahmiles9595 8 лет назад
I GOT IT BLOCK HEAD ,.LOL I LIKE ...S.MILES
@KristinBarr
@KristinBarr 5 лет назад
2019 still watching, still gold
@MonsterKing-yw9ur
@MonsterKing-yw9ur 6 лет назад
thats a very good video :for 10 stars
@carolgaylor765
@carolgaylor765 9 лет назад
Have viewed Parts 1-5 so far - great stuff!! Thanks so much!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Awesome! Thanks for watching :))
@AnthonyPinzone
@AnthonyPinzone 9 лет назад
What did your wife say when you walked in the living room with marker all over your face? lol
@OfficialDevTips
@OfficialDevTips 9 лет назад
the1andonlyPZ lol. She was asleep it was really late. Like 2 am or something.
@ChandraTech52
@ChandraTech52 8 лет назад
Thanks :) very useful !!!!!!!
@tkousek1
@tkousek1 10 лет назад
super duper explanation of inline-block!!!!
@OfficialDevTips
@OfficialDevTips 10 лет назад
Hahahah, worst video ever. hahaha.
@DiegoPereyra
@DiegoPereyra 6 лет назад
Great tutorials... thanks...
@agoniavr
@agoniavr 9 лет назад
What's that awesome font at 3:18? It display really well!
@OfficialDevTips
@OfficialDevTips 9 лет назад
AndreCorner Looks like Helvetica
@zahirabs1
@zahirabs1 10 лет назад
It would be great if you make some videos on SEO topic.
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks for the suggestion :)
@craigvrodgers
@craigvrodgers 8 лет назад
Dud, you are funny! Thanks for all your great videos.
@OfficialDevTips
@OfficialDevTips 8 лет назад
haha, no prob
@StephenRayner
@StephenRayner 9 лет назад
haha this is getting interesting
@shushushu30
@shushushu30 6 лет назад
i love your madness
@brianmann6124
@brianmann6124 5 лет назад
uh... block head :)
@DocNastyful
@DocNastyful 8 лет назад
you have earned my subscription by drawing on your face
@dk0r51
@dk0r51 8 лет назад
+DocNastyful The taco bit @ the beginning of part-3 is way better! This one here was pretty shoddy though, even {DEVTIPS} seems to imply so himself (5:21). Note: this single video had nearly the same amount of dislikes as the sum of dislikes from all the other videos in the playlist.
@alexcreamer6699
@alexcreamer6699 7 лет назад
Lol he is funny!
@investwithumang
@investwithumang 7 лет назад
mstttt
@yassermaghfar5068
@yassermaghfar5068 7 лет назад
I love this man
@iraqdream2007
@iraqdream2007 8 лет назад
you are the Boosss
@andreeam5805
@andreeam5805 7 лет назад
STILL WATCHING
@tylerfields774
@tylerfields774 7 лет назад
Are you high?
@sdnunda
@sdnunda 10 лет назад
Nice way to explain html5 mate.. kudos
@OfficialDevTips
@OfficialDevTips 10 лет назад
Haha, It was a weird night, but thanks!
@TheHiphopmasters
@TheHiphopmasters 10 лет назад
I like your laid back approach to the tutorials... Thank you... Just wish you'd show us a few more real world examples...
@OfficialDevTips
@OfficialDevTips 10 лет назад
This series is really theory based. But I do a lot of real-time coding in my videos. Take a look around if you like :)
@TheHiphopmasters
@TheHiphopmasters 10 лет назад
Sure... I just started watching your videos.... I know nothing about html5.. So it really is helping me a lot
@OfficialDevTips
@OfficialDevTips 10 лет назад
Great! Welcome to DevTips!!
@kiki3903
@kiki3903 9 лет назад
hahahaha youre the best! :D thank you a lot! :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
You are welcome!
@alexsage7585
@alexsage7585 8 лет назад
why does this have like 16k views when videos like codeBabes have like 100k+
@OfficialDevTips
@OfficialDevTips 8 лет назад
I need bigger breasts.
@AniSepherd972
@AniSepherd972 7 лет назад
DevTips perfect reply 😂😂😂😂😂😂 m dying..
@BigMoneySniper
@BigMoneySniper 7 лет назад
I love this one! appreciate it brotha. This def stuck in my head for life
@PK120607
@PK120607 9 лет назад
ok... soooooo... that was weird...
@OfficialDevTips
@OfficialDevTips 9 лет назад
You are not wrong. ¯\_(ツ)_/¯
@wetali91
@wetali91 8 лет назад
crazy video
@OfficialDevTips
@OfficialDevTips 8 лет назад
Yea, one of the more.... eccentric vids
@ДимитринаПетрова-ю8ц
That was so funny, haha. Travis, Thank You So Much!
@alirahhal9570
@alirahhal9570 9 лет назад
AWESOME :D
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks ali rahhal
Далее
HTML5 Basics - HTML5 Tags (Part6)
5:10
Просмотров 37 тыс.
Watermelon magic box! #shorts by Leisi Crazy
00:20
Просмотров 16 млн
We finally APPROVED @ZachChoi
00:31
Просмотров 9 млн
HTML5 Basics - History of HTML (Part1)
7:45
Просмотров 116 тыс.
CSS Basics (Part8) - CSS Preprocessors
11:19
Просмотров 65 тыс.
HTML5 Basics - Tags (Part4)
5:19
Просмотров 47 тыс.
CSS Basics (Part5) - Advanced Selectors
13:11
Просмотров 100 тыс.
HTML5 Basics - Philosophy of HTML5 (Part2)
5:02
Просмотров 53 тыс.