Web pages are written in HTML (HyperText Markup Language), which is a coding system that uses tags to identify the parts of a document's logical structure. Browsers have their own rules about how to display the various document parts on the screen. An HTML author cannot totally control the final appearance of an HTML document. Several factors affect what the viewer sees, including the operating system, browser, color depth, resolution, and window size.
You can use a plain text editor, like Notepad, to create and edit HTML documents. A WYSIWYG [What You See Is What You Get] editor, like Dreamweaver, has many helpful features, but cannot really show you what the page looks like on all other computers.
HTML code marks the various parts of the document, like paragraphs, lists, and headings, images, and tables. Most HTML elements are made up of an opening tag, a closing tag and whatever text is between them. An opening tag is formed by surrounding a keyword with the angled brackets < and > , like <h1> and <title>. An opening tag tells where a document part begins. A closing tag looks just like the opening tag except that it puts the slash symbol / before the tag name. This tag tells where the part ends. Some elements, like IMG for an image, do not have a closing tag. The XHTML standard requires these elements to have a closing slash before the right angle bracket, but HTML itself does not require this. All HTML documents must include the HTML and BODY tags.
The key features in HTML are the hyperlink and the wrapping of text to the window. Hyperlinks are created by surrounding text or an image with an anchor tag, <a> , which includes a HREF attribute that has an absolute or relative path as its value. Clicking the hyperlink opens a new document or image.
A tag may have one or more attributes, which can have different values. The HTML and CSS standards include elements, attributes, and values that your browser may not support yet.
Cascading Style Sheets can control the display of the page, like font-family, font-size, alignment, border, color, and the position of the element on the page or in the window. An inline style (STYLE attribute of an element) overrides an internal style sheet (in the HEAD of the page) which overrides an external style sheet (linked to the page). A style in an internal or external style sheet for an HTML element, like H1 or P, will be used every time that element is used on the page. But a style class must applied with the CLASS attribute in the element you want to use that style.
You can create a separate set of styles in an @media print section of an internal or external style sheet to control formatting for printing. An @page section can set the printed page margin, size, and orientation.
Converting an existing document to HTML can be useful. But you must carefully check the new document for missing parts and formatting changes.
HTML tags: | HTML Attributes: | CSS properties: | ||
---|---|---|---|---|
!DOCTYPE HEAD TITLE LINK STYLE BODY P A a:link a:visited a:hover a:active EM |
I STRONG B Heading: List: Table: IMG HR BR DIV SPAN Comment: <!-- --> |
class id style [A] href [IMG] alt, height, src, title, width [TABLE] border, colspan HTML Special Characters
|
background-color background-image border border-collapse border-color border-width caption-side clear color float font-family font-size font-style font-weight height left margin |
margin-bottom margin-left margin-right margin-top padding page-break-before position overflow padding position text-align top transform: rotate transform: scale vertical-align width z-index |
Lesson page: | What printed: | With program: | # of pages: |
---|---|---|---|
List of tags |
By hand |
1 |
|
simple-Lastname-Firstname.htm |
browser |
1 |
|
simple2-Lastname-Firstname.htm |
browser |
1 |
|
List |
hector1-Lastname-Firstname.htm |
Notepad |
1 |
hector1-Lastname-Firstname.htm |
browser- bulleted list |
1 |
|
hector2-Lastname-Firstname.htm |
browser- numbered list |
1 |
|
hector3-Lastname-Firstname.htm |
browser- hobbies added |
1 |
|
hector4-Lastname-Firstname.htm |
text editor - headings formatted |
1 or 2 |
|
hector5-Lastname-Firstname.htm |
text editor -after styles |
2 |
|
hector25-Lastname-Firstname.htm |
browser - finished web page |
2 |
|
NZinfo.htm |
Word - after save as web page |
3 |
|
WYSIWYG view |
simple HTML editor on page. Your name in first line of text. |
1 |
|
source code view |
simple HTML editor on
page |
1 |
|
Edit Image Background (with Paint)
|
Exercise Web 2-1: Format (Ricardo's page)
Exercise Web 2-2 Data Table (Los Lobos page)
|
Exercise Web 2-3 Convert and Position (Ergonomics article)
Exercise Web 2-4 (Tahiti Packages)
Exercise Web 2-5 Positioning (Hector's hobbies)
|