Professional Documents
Culture Documents
Webdesign Reviewer
Webdesign Reviewer
HTML (Hyper Text Markup Language) HTML DOCUMENTS – must start with a document declaration <!DOCTYPE html>
- standard language in creating Web pages. HTML HEADINGS – defined with the <h1> to <h6>
- Consists of a series of elements - <h1> most important heading
- Represented by tags - <h2> least important heading
Tim Berners – Lee invented HTML HTML BASIC TAGS
HTML TAGS <p>…</p> - HTML paragraphs
<br> - beginning of the next line, empty element (without closing tag)
- element names surrounded by angle brackets. <hr> - horizontal line, empty element
- Not case sensitive (i,e. <H1>….<h1>) - non-breaking space or space character
<b>…</b> - bold
<tagname>…</tagname>
<i>…</i> - italic
<u>…</u> - underlined text
<sup>…</sup> - lift text and makes it smaller
Opening tag Closing tag (with forward slash -/-)
<sub>…</sub> - lowers text and makes it smaller
EDITORS – Web pages can be created and modified by HTML Editors <strike>…</strike> - strikes a line through text
Such as Notepad, Notepad++, Sublime, etc) <em>…</em> - makes text italic
WEB BROWSERS – read and display HTML documents <strong>…</strong> - makes text bold
STEPS IN CREATING WEB PAGE HTML elements can be “nested” (Elements can contain elements)
1. Create a folder “FIRST IN, LAST OUT” - mnemonic in writing nested html elements
2. Open Text Editor
( )– parenthesis or round brackets
3. Write the HTML codes
4. Save the html code and use the extension name .html and .htm { } – braces
5. View the HTML page in the web browser < > - angle brackets
HTML PAGE STRUCTURE
<html>
<head>
<title>Page title</title>
</head>
<body>
(Web Content)
</body>
</html>
TEXT FORMATTING LESSON 2:
<font>…</font> - specifies the font face, font size, and font color <img> - images , empty element as it contains attributes only
ATRRIBUTES of font tag: src – attribute specifies the URL (Uniform Resource Locator) of the image
• <DL>…</DL> - definition lists (no numbers or bullets) tag, then add the background-image property.
- Basically, this is where the user will be taken if they wish to click a link.
Elements of <table>…</table> tag:
Hypertext references can be:
▪ <tr>…</tr> - table row
▪ <th>…</th> - table header a. Global – links to other domains outside of your site h
o <a href=http://yahoo.com>Connect to Yahoo</a>
▪ <td>…</td> - table data/cell
b. Internal link – sends the browser to another section on the current page (Page
Jump)
Colspan – use to make a cell span more than one column , <th colspan=”2”>Column 2 & 3
o <a name=”linkname”>Text</a> *assign a name of a portion on your page
o <a name=”#linkname”>Text</a> *allows the browser to jump to the
Rowspan – use to make a cell span more than one row , <th rowspan=”2”>Col 1, row 1 & 2
section
c. Local link – Links to other pages within your domain
TABLE ATTRIBUTES o <a href=”filename.html”>Text</a> *jumps to other webpage of your
BORDER – size of the table border website
Cellpadding – use to create more white space between cell contents and its border FORMS
Cellspacing – use to increase distance between cells - vital tool for the webmaster to receive information from the web surfer.
- Take input from the viewer and depending on your needs
Colspan – combine two or more cells from different columns - <form>…</form> tag to create a form in the web page.
Rowspan - combine two or more cells from different rows INPUT FIELDS:
Width, Height – determine the width and height
Type – determine what kind of input field it will be. (text, submit, password, etc)
Style – access advanced custom properties <Style=”Background-Color:”Red”;>
Name – assigns a name to the given field
LESSON 3 Size – sets the horizontal width of the field. The unit of measurement is in blank spaces.
LINKS – most fundamental part of World Wide Web. It is the links that tie it all together Maxlength – maximum number of characters that can be entered
- Link to another web page or website anywhere in the world Placeholder – specifies a short hint
- Link to a different page within your own website (linking a page to a home page)
PAGE JUMP – jump from section to section within the same web page h
- An anchor can point to any resource on the web: HTML page, image, sound file,
movie
INPUT FIELDS EXAMPLE:
SAMPLE:
LESSON 4:
CSS
CSS SYNTAX
SAMPLE:
<select name=”gender”>
<option value=”Male”>Male</option>
<option value=”Female”>Female</option>
</select>
METHODS OF APPLYING CSS TO HTML DOCUMENT BACKGROUND ATTACHEDMENT – specifies whether background images should scroll or be
fixed.
1. In-line (attribute style)
*<body style=”background-color:#FF0000;”> BACKGROUND SHORTHAND
2. Internal (tag style)
*<style type:”text/css”> 1. Background-color
Body { 2. Background-image
Background-color:#FF0000, 3. Background-repeat
} 4. Background-attachment
</style> 5. Background-position
3. External link (link to a style sheet)
- A text file with the extension .css
- Link from the HTML document(default.html) to the style sheet (style.css) can be
created with one line of HTML code:
o <link rel=”stylesheet” type=”text/css”
Href=”style/style.css”>
- The line of code must be inserted in the header section of the HTML code.
o i.e. between the <head> and </head> tags
✓ One CSS file can be used to control the layout of many HTML documents
Colors are specified using predefined color names, RBG vales, or HEX values
o Color Values:
▪ Rgb (255, 0, 0) (RGB values)
▪ #FF0000 (hex values)
▪ Red (predefined color name)