HTML Tutorial for Beginners 13 – The div Tag | div class

HTML Tutorial for Beginners 13 – The div Tag


นอกจากการดูบทความนี้แล้ว คุณยังสามารถดูข้อมูลที่เป็นประโยชน์อื่นๆ อีกมากมายที่เราให้ไว้ที่นี่: ดูความรู้เพิ่มเติมที่นี่

Yo Ninjas! In this HTML lesson we’re going to take our coding skills up a notch and introduce the mighty DIV tag!! This is a versatile HTML tag that can help to organise your code and provide useful when we style our pages in CSS!
Beware ninjas do not be too gungho with the div tag and use it everywhere! There are newer, HTML5 semantic tags which we can use in conjunction with our div tags to make our pages even better! Look out for my HTML5 course in the future :).

HTML Tutorial for Beginners 13 - The div Tag

HTML – Sử dụng thẻ Div bố cục đơn giản


Sử dụng thẻ div bố cục lưới đơn giản

HTML - Sử dụng thẻ Div bố cục đơn giản

01-Viết từ đầu 1 trang Web responsive sử dụng Bootstrap 4, HTML5 và CSS3


Viết 1 Web Page từ đầu với Bootstrap 4, HTML 5, CSS 3
Download code:
https://github.com/sunlight3d/LearnBootstrap4ByExamples
Support https://www.paypal.me/sunlight4d
SUBSCRIBE TO MY CHANNEL FOR MORE INTERESTING VIDEOS:
https://www.youtube.com/c/NguyenDucHoang
You can see code in github:
https://github.com/sunlight3d?tab=repositories
Twitter: https://twitter.com/NguyenD97601913
Facebook: https://www.facebook.com/nguyen.duc.hoang.bk

01-Viết từ đầu 1 trang Web responsive sử dụng Bootstrap 4, HTML5 và CSS3

What’s the difference between IDs \u0026 Classes? | HTML, CSS \u0026 JavaScript


When developing a website or web application, it’s important to keep in mind the difference between an ID and a Class, and to know when to use each one and why.
The primary thing to remember about this is that you should be using an ID for a unique element that only exists once on the document whereas classes are more appropriate for multiple elements that serve the same purpose.
In this video I take you through this topic and how it affects not only your HTML markup but also your CSS code and JavaScript.
For your reference, check this out:
https://csstricks.com/thedifferencebetweenidandclass/
Support me on Patreon:
https://www.patreon.com/dcode
Follow me on Twitter @dcode!
If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!

What's the difference between IDs \u0026 Classes? | HTML, CSS \u0026 JavaScript

css id vs class attributes, when to use id and when to use class, difference between id and class


css3 id vs class attributes,
when to use id and when to use class,
difference between id and class in css
css benefits of using class over id, css3 benefits of using id over class, html id vs class, css id vs class, html class vs id, css class vs id, The Difference Between ID and Class, id vs class tutorial, difference between id and class tutorial,The Difference Between class and id
HTML5, CSS3 and JavaScript Tutorials , lessons with examples.
Techsith.com
id vs class more of a design related question and its a very important one. Overall you will be using more classes then ids.
id: think of element that is unique. there is only one id per element. your html validateor would throw and en error if you do use it which means you will not be reusing the same style anywhere else. all the main containers in your HTMLs you should use id because you are not going to repete them . That doesnt mean that you cant use class there. advantage of using is for is as your main namespace. for css this way you can segregate work so your css doesn’t messup. for example leftContainer .button { color:red} which mean all the botton in the left containers are red.
class: you can used them freely. any common styles you can define as class. as you can have multiple classes for the same element. and mix and match of the classes will make your css small . for example you can create two divs with same color but diffrent font sizes.
Dont forget the attributes. actually id and class are attributes wich special meaning. and you can create your own custome attributes. like myattr. Platforms like angularjs uses them freely.
overall i thin its better to use classes then ids especially when you working in a team envirement where you are responsible for a partial html . using id can be riskier if someone else is using the same id in the other part of the html .
in css id has higher priority than class for example …..
My Udemy Courses
https://www.udemy.com/jsmasterclass/
couponCode=TECHSITH9.99
https://www.udemy.com/course/reacthookscourse/?couponCode=TECHSITH9.99
Follow me for technology updates
https://facebook.com/techsith
https://www.facebook.com/groups/techsith
https://twitter.com/techsith1
https://www.linkedin.com/groups/13677140/
https://medium.com/@patelhemil
Help me translate this video.
https://www.youtube.com/timedtext_cs_panel?c=UCbGZKLIHpox2l0whz6_RYyg\u0026tab=2
Note: use https://translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

css id vs class attributes,  when to use id and when to use class, difference between id and class

นอกจากการดูหัวข้อนี้แล้ว คุณยังสามารถเข้าถึงบทวิจารณ์ดีๆ อื่นๆ อีกมากมายได้ที่นี่: ดูวิธีอื่นๆINVESTMENT

1 thought on “HTML Tutorial for Beginners 13 – The div Tag | div class”

Leave a Comment