HTML BASICS

HTML - HyperText Markup Language

Tool we use to create websites

Paragraph of text

HTML Element - Anything you can display on the webpage

Syntax (< >) (< />)

Rules for writing code

Grammar for code

HTML Syntax Rules

(< >) = HTML Tag

(< >) = Tag Name Inside HTML Tag

(< >) = Opening Tag

(< />) = Closing Tag

Extra spaces are ignored (in HTML)

New Lines are considered spaces and are ignored

Indent is good for visual aid

Indent using spaces - General Practice is 2 spaces per indent

Keyboard Shortcut is tab to place and indent

Anchor Element (a)

:Example

Link to Youtube

HTML Attribute (href="") = Modifies how and element behaves

Link to Youtube

Attribute Syntax Rules = Needs a space (a href="") between tag name and attribute

href = Attribute Name

In other words What we are modifying

"" = Attribute Value

And What we are modifying it to

(Target) Attribute

Link to Youtube

Will open up youtube on same page

(Target) value set to "_blank"

Link to Youtube

Will open up youtube on another page