Terminology & Definitions
-
What do HTML and CSS stand for?
HTML stands for Hypertext Markup Language.
CSS stands for Cascading Style Sheet.
-
Would you rather use HTML or CSS, for putting paragraphs of text on a webpage?
HTML
-
Would you rather use HTML or CSS, to change the font and background color of a button?
CSS
-
What is an HTML tag?
An HTML tag is a piece of markup language used to indicate the beginning and end of an HTML element in an HTML document.
-
What are the three parts of an HTML element?
An HTML element is defined by a start tag, some content, and an end tag.
-
What is the purpose of the doctype declaration?
The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in. This ensures that the web page is parsed the same way by different web browsers.
-
What is the HTML element?
The HTML tag represents the root of an HTML document. It is the container for all other HTML elements.
-
What is the purpose of the head element?
The head element is a container for metadata and is placed between the HTML tag and the body tag. Metadata is data about the HTML document. Metadata is not displayed.
-
What is the purpose of the body element?
Body tag defines the document's body. It contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. Body tag must be only one in an HTML document.
-
How do you create a paragraph in HTML?
With <p></p> paragraph tag.
-
How do you create a heading in HTML?
With the <h1> to <h6> tags.
-
How many different levels of headings are there and what is the difference between them?
From h1 to h6. <h1> defines the most important heading. <h6> defines the least important heading.
-
What element should you use to make text bold and important?
<strong></strong>
-
What element should you use to make text italicized to add emphasis to it?
<em></em>
-
What relationship does an element have with any nested elements within it?
It is the father element of the inside (children) elements.
-
What relationship do two elements have if they are at the same level of nesting?
They are siblings.
-
How do you create HTML comments?
<!-- comment -->
-
What HTML tag is used to create an unordered list?
<ul></ul>
-
19. What HTML tag is used to create an ordered list?
<ol></ol>
-
What HTML tag is used to create list items within both unordered and ordered lists?
<li></li>
-
What element is used to create a link?
<a></a>
-
What is an attribute?
HTML attributes are special words used inside the opening tag to control the element's behaviour. HTML attributes are a modifier of an HTML element type.
-
What attribute tells links where to go?
href
-
What is the difference between an absolute and relative link?
An absolute link provides the complete location information of your site, while a relative link only contains the location following your domain.
-
Which element is used to display an image?
<img/>
-
What two attributes do images always need to have?
src and alt.
-
How do you access a parent directory in a file path?
../
-
What are the four main image formats that you can use for images on the web?
GIF, JPG or JPEG, PNG and BMP.