HTML and CSS Basics Flashcards
Every language has a special syntax. What is syntax?
Rules for communicating.
What is HTML to a website?
It is a language that gives a website its structure. The skeleton…
In general, what is the job of the web browser?
To convert the code in the file into a recognizable website, and does so by following the HTML syntax.
<strong></strong> ???
Makes text bold.
What does HTML stand for?
Hyper Text Markup Language
Hypertext means?
“text with links in them”
What does CSS stand for?
Cascading Style Sheets
What is CSS used for?
Making websites pretty. Its the skin and makeup that covers the bones and skeletons (HTML)
What does tell the browser?
What language you are writing in…in this case it is HTML
Things inside “” are called…
and there are #? of them, called _____ and _____..
Tags
They come in pairs, with an opening and closing making up the whole set.
Think of them as parenthesis…
How many parts are there to an HTML file?
They are…?
2
The “head” and “body”
What goes into the files “head”? What about the “body”?
The head contains information about the file, such as the title.
The body contains the contents of the website, such as text, images, and videos.
The body is the part that will be actually visible on the page.
How many types of headings are there in html?
6
What is “href = “?
Attribute
The value tell the link where to go
What is the tag for creating hyperlinked text? What elements, attributes, and values does it contain?
<a> Text </a><a></a>
What is the image tag and why is it different from others?
This tag is a bit different from the others. Instead of putting the content between the tags, you tell the tag where to get the picture using src. It’s also different because there is no ending tag. It has / in the tag to close it: <img></img>.
What is nesting?
When you put one HTML element inside of another.
What are the “instructions” given to elements called?
Attributes
What does <div> stand for? What is it used for?</div>
It stands for division and it is used to divide the sections in a structure into containers.
What is the general format for the CSS syntax?
selector {
property: value;
}
What is a Selector?
Can be any HTML element
What is a Property?
Any aspect of a selector
What is a Value?
Any possible setting for a Property.
How do you comment out an HTML element? CSS?
HTML:
CSS: /Comment/
What are the three attributes required to LINK css to html?
rel = stylesheet
type = text/css
href = stylesheet.css