HTML Only Web Site From Scratch
What is HTML and why do we use it?
- markup language that defines the structure of you content
- Cascading Style Sheets for styling
- JavaScript for action
What are the 3 main parts of an HTML element?
- Element…the entire string of code
- Opening and closing tag;
<open></close>
- Content…the stuff enclosed by the tags
<img src="../pics/HTMLParts.png" alt="the good parts">
- additional information is called attributes
- attributes are generally
attribute-name="value"
- live specifically in the opening tag
<img src="../pics/attributeimg.png" alt="not my copyright">
- Attributes always have
- a space between it and the element name (or previous attribute)
- attribute name followed by an equal
=
sign
- attribute value wrapped in quote marks
What is a semantic element?