go tags

You can also Search this page using the form below. Your question may have been addressed in a previous class.
Search For:
Match:  Any word All words Exact phrase
Sound-alike matching
Within: 
Show:   results   summaries
Sort by: 



Q. Here's the problem: why are all those spaces appearing in the line "the center for vegan catering"? It looked fine the first time around, and I checked to see if there were extra spaces in the text document (there aren't), but the spaces keep appearing in the browser page. I'm using a Mac. Here's the code:

<HTML>
<HEAD>
<TITLE>Debbie's Place
</TITLE>
</HEAD>
<BODY BGCOLOR="#CCFFFF"> <H1>this is a level 1 heading </H1><BR>
the <I>center<I/> for <B>vegan</B> catering.<BR>
this is the first line.<BR><P>this is the second line.<P/> <CENTER>this is the third line & I want it centered.</CENTER>
</BODY>
</HTML>
A. <H1> will do a line break on it's own, the <BR> you have after it will cause extra space between lines.

the <BR> after catering causes "this is the first line" to be moved down one line.

the <BR> before the <P> causes a line feed and the <P> causes 2 line feeds.

the <center> causes "this is the second line to be centered on the page causing it to look as though it has many spaces before it.

you have improper closing tags for <I> and <P>


Q. How do I get a color for the h1 title to differ from the background and text color?
A.  <H1><FONT COLOR="#FF0000">This text is red.</FONT></H1>


BLINK/MARQUEE

<BLINK> will make it blink in NS </BLINK> and the <MARQUEE> tag set which will make it scroll in IE</MARQUEE> But even though it doesn't blink or scroll-the text will still be there so this is how the above is tagged -

<font color="#ff0000"><MARQUEE><BLINK><BLINK/MARQUEE</BLINK></MARQUEE></font>


Help with second page of notebook
When we make the second page of the notebook, do we still start with the basic template?? <HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
Or do we start with something else?
Whenever you start any web page, you start with the basic template, then add the text between the opening and closing BODY tags. This is why the instructors have you save that template. Then you don't have to type out those basic tags every time you start a page.

Just open your template.txt, add your info, then SAVEAS yourfilename.html being sure the Files of Type says All Files, the same way you did your notebook1.html. Hope this helps.


Q. ...getting the <P> tag to work
A. When using the <P> </P> tag set --- the <P> goes at the "beginning" of your new paragraph and the closing </P> goes at the "end" of the paragraph.


Q. ...getting the <CENTER> tag to work
A. For the <CENTER> </CENTER> tags -- the text that you want centered on the page "must" be "between" the two tags:

<CENTER>The effect of the CENTER tag set is demonstrated here.</CENTER>


Q. Where are you suppose to insert the <BR> tag to get a break in a sentence?
A. The <BR> is one of the few tags that does NOT need a closing tag. The <BR> makes the text go to the next line. If you would also like to have a space after the text line then you can use a second <BR> or use the <P></P> tags around the text. The <BR> goes after the text, at the spot where you want the text to break.

A.
<HTML>
<HEAD>
<TITLE>notebook1.html</TITLE>
</HEAD>
<BODY>
This is the first line on my page.<BR>
This line is directly under the last line with no blank line space between.<BR><BR>
This line is below the last with a blank space in between
</BODY>
</HTML>

Would look like this on the page

This is the first line on my page.
This line is directly under the last line with no blank line space between.

This line is below the last with a blank space in between



Q. Do we use lower case letters or uppercase letters or both when we write our Titles and Body text?
A. The HTML tags should be consistent using either all lowercase or all uppercase. The actual text that you write which you format with the tags will be a combination, just like you would usually write text.

A.  ...but <body bgcolor="RED"> or <body bgcolor="red"> or <BODY BGCOLOR="RED"> all work the same.


Q. Is it necessary to memorize every tag we learn. What is the best way to do this?
A. I have them all <!--commented out--> in my template listed below my basic 5. I grab what I need as I make page.

A. I keep my HTML Reference Library handy if I need to look a tag up..you can get it here and it's free :^)for a great FREE "downloadable (study off line) reference get the HTML Reference Library (The HTML Bible) . . the authority on HTML, w/color wizard FREE at http://www.zoniez.com/download/htmlib9530.exe
also this one: The HTML4lib is available for IE4^ (^=or greater) only, you must have IE4^ to view it. This is documentation for HTML version 4 HTML4lib http://www.zoniez.com/download/hlbsetup40.exe


<PRE> tag</PRE>

For example, you find a poem online and receive permission from its author to place this poem on your web page. You really like the way it looks so you use your mouse to highlight the text of the poem then you right click and choose save, thereby saving it as a text file on your hard drive.
While preparing your HTML file that the poem is to be included in, you find just the precise place you want the poem in the coding and you copy the poem again in the same manner as described above and paste it this time between the <PRE></PRE> tags. Using the <PRE></PRE> tag set will keep the present formatting of the poem intact. Oh one more thing.....don't forget to give the author credit for the poem....


Every page should have a DOC tag. This is what I use.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


"about the use of font tags and color in the title tag situation" You do not use attributes or anything in the <TITLE> tag


The <H3> tag will automatically create a line break. If you add <BR> to the end it will make another line space. You also need to watch the way you are tagging. 'First in -last out' For example:
<center><H3><b><i><u>the text goes here</u></i><b></H3></center>


Q. Problem with HR - I did the example of <HR WIDTH="50%"> to create a line but nothing changed when I pulled it up online. Did I do something wrong? Do I need to close it to look like </HR WIDTH="50%"> ?
A.  The<HR> tag does not need a closing tag. The way you have it is correct<HR WIDTH="50%">
After you edited your page, did you save it as an HTML file? Also, did you try clicking Reload/Refresh to get the latest version of your page on your browser?
If the <HR> line still doesn't show -- you might have a tiny error someplace else in your HTML code like a missed " or< or > or a forgotten closing tag somewhere. A little mistake like that can cause havoc on your page and is usually hard to spot.


Q. Problems adding BG color - I am having trouble figuring out WHERE to put the codes for body back rounds. I know it goes in the body tag but where in it?
A.  <BODY BGCOLOR="#FFFFFF"> There is only one set of opening and closing BODY tags for each HTML page


Q. Why doesn't my background color change? <BODYBGCOLOR="#F9E1FF">
A.  Try putting a space between BODY and BGCOLOR like this <BODY BGCOLOR="#F9E1FF">


Q. What is &nbsp;
A. Actually a non-breakable space...
meaning if you had a word like New York which you didn't want to wrap in between the 2 words you would code it as follows:

blah blah blah New&nbsp;York

then the term "New York" would be treated as a single word and would never be broken.

Common usage of the "character entity" (for that is what it is called) has come to use that coding to force blank spaces where otherwise html might compress.

That is, when you code 5 spaces as just 5 blanks, HTML compresses them to 1. Whereas,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

actually shows up as 5 spaces.


Q. Why use heading1, 2, etc. instead of Font size?
A.  The first thing that comes to mind would be having to use the FONT tag and entering the size you wished the header to be. By using the <h1> through <h6> tags, you don't have to reset the font for the next section of code and the header tags will also perform a line break. It certainly is possible to use the font tags but with the header tags, use it once and forget it.


Q. break tag
Where are you suppose to insert this tag to get a break in a sentence. I tried to put it after the <body> tag but it would not put a break in the sentences.Or are you suppose put it after the last sentence where you want a break at...
A.
<HTML>
<HEAD>
<TITLE>notebook1.html</TITLE>
</HEAD>
<BODY>
This is the first line on my page<BR>
This line is directly under the last line with no blank line space between.<BR><BR>
This line is below the last with a blank space in between
</BODY>
</HTML>

Would look like this on the page:

This is the first line on my page
This line is directly under the last line with no blank line space between.

This line is below the last with a blank space in between


Q. If I wanted to use the HR tag and I wanted color within it, say a bright red. How do I make the noshade colorful instead of gray?

<hr size="8" width="200" color="#ff0000">

But it doesn't work in Netscape


C. The italics sometimes gives the illusion of no space
the <I>center<I/> for

The italics sometimes gives illusion of no space or mislaid spacing



go top