| Syllabus
--------------------- --------------------- --------------------- --------------------- ---------------------
|
Art 444 Lecture Notes Basic HTML Tags A HMTL page consists of a set of tags or commands that direct the browser in placing text, images and other site assets. A Tag uses of a pair of brackets: < > with a specific directive contained within. For instance, all HTML pages begin with the tag <HTML> and end with the tag </HTML>. Notice the ending tag uses a forward slash (/) to tell the browser to end the directive. Tags normally come in an opening and closed pair <HTML> </HTML> but not always. You can use a basic word processor like SimpleText (Mac) or another basic word processor to write HTML code. You should use line breaks while typing your code to make it easier to read and to find mistakes. Save your files with names 8 characters or less in lower case with no spaces (important for those working on PCs) with the .html extension. Be sure to stay organized keeping your site assets in the same folder. Otherwise, you may end up breaking your site links. To see code in action use the View Source command found in Netscape or I.E. (View> Page Source). You can then copy and paste the entire HTML code into your text editor or into Dreamweaver (make sure you paste in the Code Inspector) to study how the page was put together! You can view code while working in Dreamweaver as well - click on the Show Code Inspector (Dreamweaver 3 & 4) or Show Code & Design Views (Dreamweaver 4 only). <HTML>
</HTML> -All HTML pages begin & end with this tag. BODY
TAG ATTRIBUTES: Example: <BODY BGCOLOR="FFFFFF" BACKGROUND="spot.gif" TEXT="000000" LINK="CC3300" VLINK="CC00CC" ALINK="FF6699"> HTML
to insert a graphic into a web page: Border Tag: For a colored border around your image use BORDER="1" or specify the size in pixels of the border you prefer. The color of the border will be the text color specified in the page's body tag. If the image is a link, then the border color use the specified LINK, ALINK and VLINK colors. To control
leading between lines of text and objects: Here is a Basic HTML Page example: <HTML>
Linking
Basics: To create
link with an image: Note: If you do not want a border around your linked image use BORDER=0 in the tag. To
create a Email Link use: Note: Always remember to use the anchor tag </A> at the end of your linked text or graphic. This tells the browser where to end the link. Also, external site links start with an absolute url such as http://...
|
|||
Back to top of page | School of Art, Design and Art History | SDSU Main