HTML Foundation Flashcards
Does it matter if you have space between tags?
No, but it’s important to keep code neat so it’s easier to read for the coder.
What is the p tag?
The paragraph tag which is used to denote a paragraph of text.
What information within the head IS displayed on a page tab in a web browser?
Any text within the title tag.
What is coding?
Coding is writing code. Code is any computer language.
What is JavaScript?
JavaScript is a computer language which makes your web pages intelligent on the client side.
Why do we have opening and closing tags in HTML?
Tells the web browser the beginning and the end of a tag.
When you select ‘View Page Source’ .. what are you doing?
You are checking to see the code that created the web page.
What does HTML stand for?
HyperText Markup Language
What is the ‘DOCTYPE’ tag used for?
This tells the web browser which version of HTML code we’re using in the web page.
What does a forward slash / in a tag indicate?
The closing tag.
HTML is made up of small sections of code - what are those code sections called?
Elements.
Which tag closes a paragraph tag?
What is the purpose of the head element?
This element contains metadata (data about data).
What is a web browser?
A web browser is an application used to view web pages.
What is a markup language?
- A markup language specifies code for the presentation (formatting) of text i.e. the layout and style.
- The code used to specify the formatting are called tags.
- HTML is one example of a markup language.
What is tag nesting?
Tag nesting is where an element (opening and closing tags) is within another element.
What are the names of the two characters which are at the start and end of a tag?
Angle brackets.
When you use the image tag to add an image to the web page, is it embedding the image into the html file or pointing to where the image is stored?
Pointing to where the image is stored.
What is the purpose of the element?
The element tells the web page when the html code begins and ends.
What is the three purposes of the title element?
The title element:
- Defines a title in the browser tab
- Provides a title for the page when it is added to favorites
- Displays a title for the page in search engine results
What is a code editor?
A code editor is an application used to write code faster, by suggesting tags.
Which three types of application can be used to create web pages?
- Simple Text Editor 2. Code Editor 3. WYSIWYG
What is a WYSIWYG app?
WYSIWYG stands for What You See Is What You Get. It is a ‘point and click’ application which allows you to build websites without having to write code.
What does the opening html tag look like? And what does it do?
The html tag tells the web browser that this is a html/web page.
Why should you name your first page ‘index.html’?
Because the index page is the first page the web server loads.
What is the purpose of the following tag?
The DOCTYPE tag tells the web browser which version of HTML is being used on the web page.
What is CSS?
CSS is a computer language used to improve the look of the website.
What is the easiest way to view a web page’s source code?
Right click on the page and select ‘View Page Source’.
Why does the code editor put numbers beside the lines of code?
To help you find code you might be looking for.
What is a simple text editor?
It is an application used to write text.
What is a computer language?
It is a written language used to give instructions to computers.
What does CSS stand for?
Cascading Style Sheet
What is hypertext?
Hypertext is the text in a web page.
What kind of file is a web page file?
A .html file.
Why should you use the .html extension to name the web page?
The ‘.html’ extension tells computers that the file is a web page.
What are the two major elements on a web page?
The head and body tags.
Can you use a simple text editor to write HTML?
Yes.
What should be the first tag in an html page?
The DOCTYPE tag.
Why should you write tags in lowercase?
Easier to read.
What will happen if you move an image, after using the image tag to add it to a web page?
The broken image icon will appear in your page, since the web browser will not be able to find the image.
What is the proper order of the major tag sections?
Head Title Body
What is an element in HTML?
An HTML element usually consists of a start tag and end tag, with the content inserted in between.
What are the three main computer languages used to create websites?
- HTML 2. CSS 3. JavaScript
Give a full example of an image tag.
What is HTML?
HTML is a computer language. It is used as the foundation or building block for creating websites.
When was the HTML computer language first invented and by whom?
1991 by Tim Berners Lee
When was HTML 5 created?
2014
What is a HTML element?
It is a section which encompasses at least one starting tag, usually a pair for example the head, title or body tags.
What is XHTML?
Created in 2000, it is not HTML, but another computer language called XML.
What does the paragraph
tag do?
Adds a line break before and after the text.
Is whitespace ignored by web browsers?
Yes, spacing is controlled by the tags.
What exactly are websites?
HTML pages that are connected together.
Why did we create an index.html page in our website folder?
Web servers automatically (by default) send out the index.html page when you visit a website, so it’s good to have it.
Why does it make sense to have self describing HTML page names?
Self describing page names (and file names) are great because they tell you something about the page or file.
Which HTML tag is used to connect web pages together?
The a tag with angle brackets.
What is a tag attribute?
A tag attribute tells you additional information about the tag.
What is this code: ‘href’?
It is a tag attribute of the hyperlink tag.
What does ‘href’ stand for?
Hypertext Reference
What does ‘paths’ mean in web design?
Paths in web design refer to how we point to files and folders in hyperlinks.
What does this code do: ../
It tells the web browser to go up one directory.
(Image attached)
Go up two directory levels.
For hyperlinks, if we want the web browser to search for a file/web page down a directory, into a sub-folder, what would we put before the .html document?
sub_folder_name/htmldocument.html
What is another name for a web browser?
A client app.
What is the three differences between a client computer and a server computer?
Client computers request information.
Server computers serve up information.
Server computers have server apps installed on them.
What is the type of server app used to serve websites?
A web server.
When a web browser request a web page from a server, and the server sends a page back, this process is called what?
The request / response cycle.
How do you make an image into a hyperlink?
By wrapping a hyperlink (a) tag around an image (img) tag.
It adds a 5 pixel solid border around the image.
What does ‘http’ mean?
hypertext transfer protocol.
What does the http command tell the web browser?
It tells the web browser to use the hypertext transfer protocol.
It tells the browser HOW to send the information.
What does the ordered list tag look like?
What does a list item TAG PAIR look like?
What is the sub tag of an ordered or unordered list?
How do you set the number BESIDE the item in an ordered list?
The number beside the item is determined by its’ position in the list.
The ol tag tells the web browser to put numbers beside the list items. What happens to list items inside a ul tag?
Bullets are inserted
What does the ‘type’ attribute do in an ordered list?
It changes the characters displayed beside list items.