Codely

HTML Information

Details about HyperText Markup Language

What is HTML?

HTML is cool

You found me!

Structure

HTML provides the structure of web pages

Uses 'Tags'

HTML uses tags that describe an elements function like <p> or <h1>. Most tags need a closing tag, using a forward slash like </span>. However, some tags are self closing like <br>

Attributes

Attributes provide extra information about an element and are included within the opening tag. They are in the order of name='value' . Commonly used attributes are src, used for images, and href which is used for creating hyperlinks.

Crucial Details:

Proper Structure

Always remember to use lowercase for tags and includes lang in the HTML tag for more accesibility

Declare the Doctype

Always start your document with <!DOCTYPE html> to ensure proper rendering across different browsers.

Close Your Tags

Ensure that all elements that need closing tags have them.

Close Your Tags

Ensure that all elements that need closing tags have them.