Section 2 - Introduction to HTML Flashcards
Websites are made with what 3 rendered files?
- HTML
- CSS
- JavaScript
What’s the one type of file that you can use alone to create a website?
an HTML file (earliest webpages were made with this)
What does HTML define for a website?
the content and structure
What are 4 examples of things that HTML is responsible for on a site?
- text
- images
- buttons
- links
What is CSS responsible for on a website?
the styling
(background color, rounded button corners, etc)
What is JavaScript responsible for?
it’s the code that adds functionality to the website to do things
(send an email, post on Instagram, type in a search box)
What is HyperText?
text you can click that links to other pages
(also called HyperLinks)
What is Markup Language?
markings like bold, italics, underline, etc
What are tags?
Anything inside the angle brackets < >
Example <h1> </h1>
Do you use a forward slash or backslash to close tags?
Forward
What are the 2 types of tags?
Opening and closing tags
What is an element?
The entire thing (content, opening and closing tags)
Makes up the HTML element
“This heading element”
How many levels of headings are there?
1-6
What happens if you don’t add paragraph tags to your text?
There’s no formatting, they’re on the same line, hard to see where one sentence ends and another begins
What do the paragraph tags look like?
<p> </p>
Can you have more than 1 h1 heading?
No, it’s bad practice to have more than one
What are void elements?(????)
You are forbidden from putting any content inside the tag
What does a break element and horizontal rule element look like?(brainscape is messing up the code)
<hr></hr>
<br></br>
What does a horizontal break look like in the preview?
a horizontal line
How do you type out a horizontal break? (Horizontal Rule Element)
<hr></hr>
How do you type out a void break? Brainscape messing up my code
<br></br>
<br forward slash greater than
What are 2 void elements?
- Horizontal rule break
- Break
When would you use a horizontal rule element?
When separating paragraphs
When would you use the break element?
When you need to have lines of text on separate lines
(addresses, poems, etc)
What do you normally use to separate paragraphs?
<p> </p>
at the beginning and end of each paragraph
What are alternate ways you can write the horizontal break and break element? Brainscape is messing up the code
<hr></hr>
<br></br>
(No forward slash)
(yes, no space needed to take the place of the missing forward slash)