EBWu's CSS Cheatsheet: HTML Elements

Welcome

My name is Lex, otherwise EBWu on Codecademy and Github. You're embarking on a stunning journey of wisdom and creativity. Whether you're doing it for fun, education, money, fame, glory...


I'm happy that we're on this path together.


This is a sample page that goes over a handful of HTML elements, using notes based off of Codecademy's HTML elements segment. Remember this isn't an extensive list so feel free to use a resource like w3schools to suppliment your education. I hope you enjoy.


HTML Elements

HTML, the foundational language of web development, employs various elements to structure content across web pages.
Each element fulfills a specific role and can be targeted for styling or functionality using CSS and JavaScript.

Element Name Description
< title > Title Specifies the title of the web page
< link > Link Links an external CSS file for styling.
< div > Division/Section Used as a container for HTML elements. Can be stylized.
< h1 > Header 1 Represents the primary heading. Very important for SEO!
< h2 > Header 2 Indicates the section heading.
< h3 > Header 3 Represents the subsection.
< p > Paragraph Represents a group of related sentences that forms a unit.
< span > Span Represents an inline element used to group a set of inline elements.
< id > ID A unique identifier that targets an element with CSS or JavaScript. Each element can only have one ID attribute.
< class > Class A non-unique identifier that targets an element with CSS or JavaScript. Many elements can have the same Class attribute.