HTML Basics

Helpfulness: 0
Set Details Share
created 6 years ago by Erock4430
17 views
basic HTML terminology
Subjects:
web design, html
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:
1

class: HTML elements can have one or more classes, separated by spaces. You can style elements using CSS by selecting them with their classes.

Example:
<div class="big-box yellow-box">This is a big yellow box.</div>

...

2

id: An HTML element can have an id attribute to identify it. id elements should always be unique to that single element, and each element should never have more than one id.

Example
<div id="my-box">This is my box! Put your text in some other box.</div>

...