![]() |
Common HTML Tags: Common HTML Tags |
Bold, Italicize, and Underline TagsTag: Description: The strong tag is used to bold text. The em tag (which stands for emphasis) is used to italicize text. The u tag was previously used to underline text. However, this feature is being removed from HTML. See below accessibility note. Accessibility Note: Many times people underline for emphasis of text; however, when users see underlined text, they think it is a link and are confused when they realize it is not. If you must underline something, we use the special case shown above.
CommentsTag: <!-- ... --> Description: The comment tag is code that the end user does not see. It is used just for the programmer to make comments or notes about the code.
Div TagTag: <div> ...</div> Description: The div tag defines the start of a division/section in a document. It is used to structure your HTML. Accessibility Note: Because this element can section or block your text, some people use the div tag for paragraph use. However, if your content is a paragraph, then the paragraph tag should be used. Common Attributes:
Heading TagsTag: Description: There are six levels of heading tags. The first and largest heading tag is <h1>. This tag will provide the largest text and is usually the first heading used. As the numbers get smaller, the size of the font gets smaller. Accessibility Note: Blind users will be audibly notified of a page header. This is important because they can get an idea of what the page is about just by listening to the page's headings. Also, note that an h1 tag has the highest priority status. The next highest is the h2 tag and so on. This is important for tools such as search engines. For example, text that is put between an h1 tag is considered a more important heading than, say, an h2 tag. Common Attributes:
Image TagTag: <img /> (no closing tag) Description: The img tag allows you to add images to your Web page. Accessibility Note: It is important to always include the alt attribute in your image tag. "Alt" stands for alternative text description. Try hovering your mouse cursor over the soccer ball shown below. You should see a pop-up box that says "Image of a soccer ball." This is a result of adding the alt tag. This seems to be the number one problem for accessibility and yet it is so easy to fix. If you do not use an alt attribute, your pages will not validate. Failing to use the alt attribute also means that a blind person will not "see" the image. Because a blind user will use a talking browser to hear this alternative text description, it is important to put some thought into your description. Imagine you were blind and the contents of a page were being read to you and out of nowhere you heard "ball." Wouldn't it make more sense to you if the alt read "Picture of a soccer ball." Common Attributes:
Link TagsTag: <a href="...">...</a> Description: The a tag defines an anchor element. An anchor can be used in two ways:
Accessibility Note: Blind users will often browse a Web page by only listening to the links on the page. This is because they only need to navigate to find something. Therefore, link names should be meaningful out of context of the page. For example read more news is a better link than just click here. Common Attributes:
List Tags: Numbered and BulletedTag: Description: The ol tag defines the beginning of an ordered list, which will appear numbered. The ul tag defines the beginning of an unordered list, which appears bulleted. Inside of each list, there are li tags used to define each individual list item. Common Attributes: For ol:
For ul:
Paragraph TagTag: <p>...</p> Description: The paragraph tag is used to place paragraphs in your pages. Common Attributes:
Table TagsTag: Description: The HTML table model allows authors to arrange data such as text, preformatted text, images, links, forms, form fields, etc. into rows and columns of cells. The table tag surrounds the complete structure of the table. The tr (table row) tag defines where each row begins. Within each table row, there will be an number of either th tags (table headers) or td (table data). Accessibility Note: Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media such as talking browsers. (Example: Do not use tables with border set to 0 just to layout content whenever possible.) Additionally, make sure to use the scope attribute as shown in the example below. This attribute will specify the group of cells to which the object's information applies for talking browsers. Blind users have the option of hearing the table heading before each piece of data. Example of how tables would be read without the scope attribute: "Name, Age, Kelly, 24, Jeremy, 26" Example of how tables would be read with the scope attribute: "Name: Kelly, Age: 24, Name: Jeremy, Age: 26" You can imagine how reading the table heading before the data would help with very large tables with a lot of numerical information. Common Attributes: For table:
For td or th:
FormsTag: Description: A form is a way for authors to get feedback from visitors on a webpage. When a visitor fills out the form, the form gets processed and sent to a specified email address. ACTION is where information is going to be sent. This is where the specified CGI link or your e-mail information goes. Direct to e-mail usually results in a VERY long line of information instead of a compiled set of answers. Mailto tends to be an unstable working value. The CGI option is very recommended. CGI (Common Gateway Interface) program. This is a separate program that lives on a server. It takes the visitor's FORM input, processes it, and sends it to a specified email. Without a CGI, the outcome may be a very long line of continuous text. If you use the action="/cgi-bin/FormMail.cgi." the forms input is processesed and sent to a specified email. METHOD is how the Form information is going to be sent. The two options for this property are GET or POST. Post is the most commonly used and sends the information as text. Accesibilty Note: It is usually easiest if you put a table within the form to recieve a clean and easy accessible way of laying out the form. Note that anything placed within the form tags will be considered as part of the form and that all HTML tags are usable in the form. When you put in an attribute such as Textarea into the form you have to fill out the textarea name so that when the form is submitted to the email address the name of the attribute will show up. This allows the reciever of the submitted form to be able to view what the question and answer is. Common Attributes:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contact Information
CWU Web Development 400 E. University Way Ellensburg, WA 98926-7505 Phone: (509) 963-2810 Email: daysj@cwu.edu |
| Central Washington University | 400 E. University Way, Ellensburg WA 98926 | This Site Optimized For Newer Browsers. |