Website Basics Flashcards
Create a minimal website
What code must every website carry?
What is a web page?
A plain text file that contains HTML tags and has a filename extension .htm or .html
What is the HTML code for boldface?
<strong></strong>
What is the HTML code for italic?
<em></em>
How do I add a headline to a webpage?
<h1>text</h1>
(or h2 etc. for smaller headlines) inside the pair of body codes
How do I add a block of text to a webpage?
<p>text</p>
after the h1 pair, if they are there at all, and regardless of that, inside the pair of body codes.
How do I add a bulleted list of items to a webpage?
<ul></ul>
as the pair of codes to create the list, placed within the pair of body codes. Then each list item or line of list items is placed, surrounded by <li>list item</li> within the Unordered List pair.
How do I add a numbered list of items to a webpage?
<ol></ol>
as the pair of codes to create the list, placed within the pair of body codes. Then each list item or line of list items is placed, surrounded by <li>list item</li> within the Ordered List pair.
How do I place a special symbol on a page?
Each character is typed with an asterisk, plus a name or # and a hexadecimal code, followed by a semicolon. A copyright sign can be typed as © or ©
What two pieces of information are needed to place a link on a website page?
The target, or the page that should open when the user clicks the link, and the text of the link the user will click.
How do I type the link text on a website page?
<a>Text for the link</a> within the pair of body codes
How do I type the URL for the link text on a website page?
Within the <a> pair, and before the text of the link that will be highlighted, type href=</a>
What four things does the target of a website page link need?
The code href, an equal sign, quotation marks around the URL, and a less-than angle bracket after the closing quotation marks.
Does href need angle brackets?
No.
Where do I place an href to code the target of a link?
Inside the pair of <a> codes that signal you are creating a link, and ahead of the text the user will click on to reach that URL.</a>
What tag starts letting you put a picture or graphic on your web page?
<img></img> (or <img></img>
What terminology tells the browser where to find the img to put on the page?
src=”image name with path”
How do you specify a descriptive name for an image you are putting on a page to help search spiders and people who can’t see the image?.
alt=”descriptive words”
Where will the browser put your img?
Wherever it appears in the HTML coding that puts the content on the page: after an h1 if that’s were the img tag appears; between <p> tags if the img tag appears there.</p>
How do you specify the size of an image?
After the alt tag, specify width=”100” and height=”200”
measured in pixels
What will the height of a picture be if you specify the width but not the height?
Whatever the computer decides will maintain the aspect ratio for the picture in the width size you did specify.
What will the width of a picture be if you specify the height but not the width?
Whatever the computer decides will maintain the aspect ratio or shape for the picture in the height size you did specify.
What’s a good file size for a picture on a web page?
1 megabyte or less
Code to begin and end a table
Code to begin and end a row in a table
Code to begin and end a header cell in a table
Code to begin and end a data cell in a table
Code for a table with a 1 pixel border
Code for space between data items in a table
cellspacing=”1”
What is the default for cellspacing if you don’t specify a number of pixels?
2 pixels
Code for a table with a 1 pixel border and 0 pixel spacing, with table items something and something else
something something else
Code for a table with a 1 pixel border and 2 pixel spacing, with table items something and something else
somethingsomething else
Where does the space from the cellspacing tag go?
Between the cells of a table
Tag to put spacing inside the cells of a table
cellpadding=”1”
Code for a table with a 1 pixel border, 2 pixel spacing, cellpadding 1 inside each cell and table items something and something else
something something else
Code for a table with a 1 pixel border, 2 pixel spacing, cellpadding 1 inside each cell, table items something and something else, and data centred inside the cells
something something else
FIX THIS