HTML Flashcards
(57 cards)
Define Syntax
The way in which words are put together to define phrases, clauses, and sentences. In this case, html syntax tells the web browser how to display a web page.
What is the purpose of a Web Browser?
To transform code into a recognizable web page.
What does HTML stand for?
Hyper Text Markup Language. Hyper Text means “text with links”
What language affects the layout of a web page?
CSS = Cascading Style Sheets
What syntax makes up the “skeleton” of an HTML webpage?
<!DOCTYPE html>
Describe a tag.
Words inside of horizontal carrots. Example: <strong></strong> These are html tags.
What is the difference between and opening and a closing tag?
is an opening tag. is a closing tag. / is the difference between the two.
What is “nesting” tags? Give an example.
Nesting tags is a tag inside a tag. Some text!
For example Tags must be closed in the correct order to properly nest.
What are the two primary parts to a html file?
The head and the body.
Define the head.
The head includes important information about the webpage such as the title.
<!DOCTYPE>
Define the title.
The words we see on the browser tab.
<!DOCTYPE>
A TITLE
What is an element?
The element is all content within and including tags.
For example: element = + content +
Define the body?
The content that is visible on the webpage.
Body tags are not nested inside the “head” tags.
Define a paragraph.
Tags placed inside the body in which text can be placed on the body of the webpage.
For example: <p>This is text</p>
What are heading tags?
are examples of opening and closing heading tags.
Explain how to change a headings font size?
Headings are labeled 1-6 to affect the font size of the text between the tags. <h1> being the largest font size and <h6 being the smallest font size.
Describe a tag that would be used to display an image.
How would you link an image so that a user could click on the image to display another website?
Surround the image tag with the <a> tag.</a>
For example:
<a>Learn to code!</a>
The image tag may be placed where “Learn to code” is located to make the image link to another website.
How would link text to another website (hypertext)?
<a>Learn to code!</a>
“Learn to code” is the displayed text on the webpage. The information within the <a> tags tells the text to link to a specified website.</a>
Why is indentation important when writing your code?
Indentation helps to keep code organized and readable especially if you have to come back to it after a period of time.
What is an ordered list?
A numbered list located in the body of a webpage.
For example the below text would be ordered by number: <ol> <li>Raindrops on roses</li> <li>Whiskers on kittens</li> <li>Bright copper kettles</li> </ol>
- Raindrops on roses
- Whiskers on kittens
- Bright copper kettles
What are the tags used for an ordered list?
<ol></ol>
What is an unordered list
A bullet list located in the body of a webpage.
For example the below text would be ordered as bullets: <ul> <li>Raindrops on roses</li> <li>Whiskers on kittens</li> <li>Bright copper kettles</li> </ul>
Raindrops on roses
Whiskers on kittens
Bright copper kettles
What are the tags used for an unordered list?
<ul></ul>
- Dad's interests
- football
- knitting
- Mom's interests
- hating football
- skydiving
This text is black, except for the word red!
My favorite font is Futura!
- Description List