Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

2016 Sandbox
Free Republic | 01/01/2016 | Free Republic

Posted on 01/01/2016 6:27:47 AM PST by ShadowAce

It's time for a new HTML reference so you can make your posts look cool.

Skip to the part about ading images to your post

HTML means Hyper Text Markup Language. It's a set of simple commands used to format the text of your posts, add images, or links, or change the appearance.

URL is Uniform Resource Locator. It's the name of the page or the picture that you see, the www.http:// stuff. You'll need to use the URL to make links and post pictures.

Quotation Marks Quotes have to be used around the URLs for web pages and images on Free Republic. Some systems do not require this. Ours does.

Once the Free Republic software detects an HTML tag in your post, it will assume the entire thing was written for HTML. This means it will eliminate paragraphs and line breaks that you used to clarify your writing. In order to prevent that, I'll start with the two simplest tags, <br> and <p>. When you use html tags, they disappear when the post is pasted to the board, so don't worry if they look funny or if your post seems to run on.

This is the break tag. <br>
It tells the computer to end the line and start a new one. <br>
Just type it where you want the line to end. <br>

This is the paragraph tag. <p>

It tells the computer to end the line, insert a blank one, then start a new line.

The rest of the tags have to be used with an on tag and an off tag. This is simple enough. One of the most commonly used tags is the italic tag <i>. This tag turns the italics on. When you want the italics to end, turn them off by using the forward slash with the appropriate command, in this case, </i>.

<pre> ... </pre>

This pair forces browsers to temporarily use a "fixed font", and preserves spaces. That is extremely helpful to rapidly create a simple table so columns don't get fussed up, since nearly all "reply boxes", such as FR, use fixed font. This gives a WYSIWYG situation without using the complex table formatting in HTML and is useful for simple tabular information.

Example columns for pre:

State      Abbr.  Wind       Temperature
New York    NY     windy       cold
Penn        PA     "           cold
Florida     FL     hurricanes  nice
Illinois    Il    calm        warm

This is what it would have looked like without using <pre>/</pre>:

State Abbr. Wind Temperature
New York NY windy cold
Penn PA " cold
Florida FL hurricanes nice
Illinois Il calm warm

Strikeout tags

The tag to "strike out" characters in a post is <s> and </s>

FOOTNOTES!

Footnotes from simple to stylish.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation (Footnote 1) ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat

nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim (Footnote 2 Reference 1) placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam (Footnote 2 Reference 2), quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna3 aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat

nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore3 te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.

Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram

Footnote 1 A simple footnote.

2. Go Back To Reference 1 Go Back To Reference 2 Now you can go back from whence you came.

3. 1 2 Nice!

The code for creating the above is as follows:

<H4>FOOTNOTES! </H4>

<P>Footnotes from simple to stylish.</P>

<P>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation <A href="#footnote-1" >(Footnote 1)</A> ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat</P>

<P>nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim <A href="#footnote-2" id="footnote-2-reference-1">(Footnote 2 Reference 1)</A> placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.</P>

<P>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam <A href="#footnote-2" id="footnote-2-reference-2">(Footnote 2 Reference 2)</A>, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat</P>

<P>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna<SUP><A href="#footnote-3" id="footnote-3-reference-1">3</A></SUP> aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat</P>

<P>nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore<SUP><A href="#footnote-3" id="footnote-3-reference-2">3</A><SUP> te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.</P>

<P>Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram</P>

<P> <A href="#footnote-1" id="footnote-1">Footnote 1</A> A simple footnote.</P>

<P> 2. <A href="#footnote-2" id="footnote-2"></A>> <SUP> <A href="#footnote-2-reference-1">Go Back To Reference 1</A> </SUP> <SUP> <A href="#footnote-2-reference-2">Go Back To Reference 2</A> </SUP> Now you can go back from whence you came. </P>

<P> 3. <A href="#footnote-3" id="footnote-3"></A> <SUP> <A href="#footnote-3-reference-1">1</A> </SUP> <SUP> <A href="#footnote-3-reference-2">2</A> </SUP> Nice! </P>

Commonly used tags:
<p> paragraph
<br> line break
These tags are not used in pairs.

Commonly used pairs:
<i> </i>italics
<b> </b>bold characters
<u> </u>underline
<font color = red>This makes the font red.</font color = red> Orange,blue,green,purple,and yellow also work.
<center> </center>

This will put whatever is between the tags in the center of the page
and center justify the margins.

Headline fonts
Headlines add emphasis to an important point.

<h1> SIZE 1 </h1>

<h5> SIZE 5</h5>

You can use 1,2,3,4, or 5. The tags automatically insert a blank line between the headline and your next paragraph.

Font Face

<font face="helvetica, georgia, courier, arial">
what you are reading now will be rendered in the helvetica, georgia, courier or arial font. Your computer will search for each of the fonts and render this text in the first one it finds installed on your computer. If non of the fonts are installed, your computer will render this text with whatever you have installed as your default font
</font>

Lists
I use <blockquote> a lot;

It indents the following text like this.

I also like to use lists:

numbered list : <OL>

    <LI>first item
    <LI>second item
    <LI>third item
</OL>end of list.

The above code will produce the following output:

  1. first item
  2. second item
  3. third item

Bullet point lists : <UL>

</UL>end of list.

This will produce the following list :

Sarcasm tag
</sarc> This is the sarcasm tag. It is not a real HTML tag. It is used to mark your witty repartee so that everyone will know you are making a funny.
Type an ampersand - & then lt; then /sarc.
An & and gt; makes the other carat >.

How to create a link:
<a href="http://www.freerepublic.com/home.htm">www.Free Republic.com</a>
A means anchor. href means horizontal reference. It's called horizontal because the computer is going across the web to a different page. There are also vertical links that can go to specific points on the same page. What comes after the href= is where the broswer will point to next. The horizontal reference is the complete URL of the page you want to link. It's in the navigation bar at the top of your web browser. Highlight it and copy it. Make sure you get all of it. Some URLs are surprisingly long, and if you miss some of the URL, the link might not work.
You can type anything between the <a href=></a> parts.
www.Free Republic.com
Click here.
abc12345
All of these links go to the same page, I just typed different things between <a href=></a> tags.

Whenever I refer to a separate link from inside a thread, I prefer to use the TARGET="_NEW" attribute to direct the browser to open a new tab for the link. For example:

Camera 56 - I-94 at Layton Avenue

<A HREF="http://www.dot.wisconsin.gov/travel/milwaukee/cam056.htm" TARGET="_NEW">YOUR LINK NAME HERE</a>

You may want to play around with the ALIGN, WIDTH, and SIZE attributes for some fun effects.

<hr>

The hr element creates in the document a highly visible break that renders as a slim horizontal line running the width of the area to which it's applied. While it's still perfectly valid to use this element in XHTML strict pages, as it's not on the list of deprecated elements, it isn't used a great deal these days, because:

The "Width" attribute (as you can imagine) controls the width of the horizontal rule. It can either be in % or in pixels. For example, if I insert a horizontal rule that is 25% of the screen width, I would use the following: <HR WIDTH="25%">:


Let's say I want to move that line to the left. I would use the ALIGN attribute (acceptable values are LEFT, CENTER, or RIGHT...defaults to "center"). <HR WIDTH="25%" ALIGN="LEFT">:


Or, alternatively, say you want to align it to the right, you would write: <HR WIDTH="25%" ALIGN="RIGHT">:


You can also adjust how thick the line is with the "HEIGHT" attribute (only works in pixels). For example <HR WIDTH="25%" ALIGN="LEFT" SIZE="10">:


Of course, you'll see above that there is a "shadow" effect. If you don't want that, use the "NOSHADE" attribute, as follows: <HR WIDTH="25%" ALIGN="LEFT" SIZE="10" NOSHADE>:


There you go. Fun with horizontal rules (101).

How to add images to your post:

<img src=""></img>
The img tags tell the browser to find and insert a picture. THIS CAN ONLY BE DONE FOR IMAGES THAT ARE LOCATED ON THE INTERNET. YOU CANNOT POST A PICTURE THAT IS ON YOUR OWN COMPUTER!!
These tags insert this wonderful image from Free Republic's website:
<img src="http://upload.wikimedia.org/wikipedia/en/thumb/b/ba/Free_Republic_logo.jpg/200px-Free_Republic_logo.jpg" "height=218" "width=285"></img>

You need to know the URL of the picture to do this. You can see the picture's URL when you put your cursor on the picture and right click the mouse. You see a small box with "properties" at the bottom. Left click on "properties" and you get a dialog box with the image URL and dimensions. It says Address: next to the URL, with (URL) underneath. Copy the URL and paste it after your img src= tag. Make sure you get all of the URL for the picture. There isn't a lot of space for the URL and sometimes they are very long. The image Size and Dimensions are beneath the URL. Free Republic allocates memory for each image, and if it doesn't know the dimensions of the image, it will allocate more memory than needed. It tells you the width, then the height of the picture.

This is called a hotlink. The picture is actually on another computer, but we see it here. This causes the other computer to use it's memory and machinery to provide the image. Some sites prevent it, or object to it. You can't hotlink an image from any of Yahoo's GeoCities pages, for example. Yahoo prevents it.

Use the "width" and/or "height" parameters to change the size of the picture you have linked to. For iinstance:

<img src="http://upload.wikimedia.org/wikipedia/en/thumb/b/ba/Free_Republic_logo.jpg/200px-Free_Republic_logo.jpg" "width=570"></img> gives us the same image, but in a different scale:

Note that I only used the width parameter in this link. HTML will automatically scale the height parameter to avoid stretching the image. The height parameter works the same way. You do not need both parameters unless you want to alter the dimensions of the picture you are posting

Do Not Cut And Paste List.
Some websites have forbidden us to copy and paste their material, including images. There have been lawsuits over this. The FR software will mostly prevent you from using the material that has been blocked, but not always. There are also some image sources that are not allowed on the list. Please don't use them. Lawsuits suck.
Link to the Do Not Cut And Paste List

Help With Creating HTML Tables

HTML tables are created using the HTML <table> tag. You combine this tag with other tags that define each row and column within your table.

Basic HTML Table

Here's an example of a basic HTML table:

Source Code Result

Table Header 1 Table Header 2
Table cell 1 Table cell 2
Table cell 3 Table cell 4

Changing a Table's Border Color

(Does not seem to work on FR)

You can change the color of a table border by simply adding the bordercolor attribute.

<table border="2" bordercolor="red">

<tr>
<td>A</td> 
<td>B</td> 
<td>C</td>
</tr>

<tr>
<td>X</td> 
<td>Y</td> 
<td>Z</td>
</tr>

</table>

And here's what it would look like...

A B C
X Y Z

Background Color for Whole Table

Source Code Result

Table Header Table Header
Table cell 1 Table cell 2
Table cell 3 Table cell 4

Background Color for Table Row

Here, we add a different background color to the first row, which happens to be the table header row. Therefore, we have one background color for the table, and a different background color for the table header row. Note that we also change the text color for the table header - this makes it easier to read.

Source Code Result

Table Header Table Header
Table cell 1 Table cell 2
Table cell 3 Table cell 4

Background Color for Table Cell

You can also change the background color of an individual table cell. To do this, simply apply the styles against the <td> tag of the table cell in question.

Source Code Result

Table Header Table Header
Table cell 1 Table cell 2
Table cell 3 Table cell 4

Adjusting Table Cell Spacing and Cell Padding

You can increase the space within the table cells and the space between the cells by using the cellpadding and cellspacing  attributes.

The cellspacing attribute adjusts the space between the cells and cellpadding adjusts the space within (around) the cell.

<table border="2" cellspacing="10" cellpadding="3">

<tr>
<td>A</td> 
<td>B</td> 
<td>C</td>
</tr>

<tr>
<td>X</td> 
<td>Y</td> 
<td>Z</td>
</tr>

</table>

This is what the table would look like now...

A B C
X Y Z

See how setting the cellspacing attribute to "10" drastically increased the spacing between the cells, and the cellpadding attribute set to "3" added a little of space within each individual cell.

If you want a table to have a single border (with no border around the letters), simply set the cellspacing to "0" and your table will look like this....

A B C
X Y Z

Specifying a Table Width

You can specify the width of a table by using either a percentage or a pixel width.

<table width="100%" border="2">

<tr>
<td>A</td> 
<td>B</td> 
<td>C</td>
</tr>

<tr>
<td>X</td> 
<td>Y</td> 
<td>Z</td>
</tr>

</table>

Since the width is set to 100% that means the table will take up 100% of the screen and the columns in the table will be adjusted evenly.  Here's what it would look like.

A B C
X Y Z

As we mentioned, you can also set the table width using pixels instead of percentages.  So instead of setting it to 100%, you could set it to 300 pixels:

<table width="300" border="2">

<tr>
<td>A</td> 
<td>B</td> 
<td>C</td>
</tr>

<tr>
<td>X</td> 
<td>Y</td> 
<td>Z</td>
</tr>

</table>

The table would look like this:

A B C
X Y Z

Setting Column Widths

Sometimes you may not always want your columns to be the same width.  If this is the case, you need to set values on your table data <td> cells.  Again, you can set them by using percentages or pixel widths.

<table width="300" border="2">

<tr>
<td width="70%">
A</td>
<td>B</td>
<td>C</td>
</tr>

<tr>
<td width="70%">
X</td>
<td>Y</td>
<td>Z</td>
</tr>

</table>

This is what this table would look like.
 

A B C
X Y Z

See how the column width for the first column in both rows is set to 70%.  Notice there is no value set for the other 2 columns.  If you do not set a value for the remaining columns, their width will automatically be adjusted to take up the remaining space and they'll share it equally.

Since the table width is set to 300 pixels, and the first column is instructed to take up 70% of those 300 pixels (roughly 210 pixels), the other 2 columns divide the remaining 30% of the table equally (roughly 45 pixels a piece).

You could also have expressed the column widths of this table in pixels instead of percentages.  The code would have looked like this:

<table width="300" border="2">

<tr>
<td width="210">A</td>
<td width="45">B</td>
<td width="45">C</td>
</tr>

<tr>
<td width="210">A</td>
<td width="45">B</td>
<td width="45">C</td>
</tr>

</table>

 

A B C
A B C
 

See how the width of the columns in each row add up to 300 (210 + 45 + 45) -- which is the width of the table.

What's the Difference Between Using Percentages and Pixel Widths?

Many people prefer to express their table width and column widths in percentages because that will ensure that the table takes up the same amount of screen no matter how big or small the screen resolution is. 

If someone is using a 21 inch monitor to view your site and you have a table width set to 300 pixels, the table will show up very small on their screen.  However if you set the table width to 70%, it will take up 70% of the screen no matter what size monitor the person is using. 

Or, let's say you create a table that is 760 pixels wide and someone has a 15 inch monitor set to a 640x480 resolution, then that person will have to scroll left and right just to see the entire table. 

On the other hand, if you set the table width to 100%, the table will fit the screen no matter what resolution the browser is set to.

So it's really up to you to decide what's the best layout for your tables. Personally I prefer to use percentages.  That way the table takes up the same amount of screen no matter what size monitor/resolution people are using.

Specifying a Table's Height

You can also set the table height by adding the height tag to the table code.

<table height="250" width="300" border="2">

<tr>
<td width="210">A</td>
<td width="45">B</td>
<td width="45">C</td>
</tr>

<tr>
<td width="210">X</td>
<td width="45">Y</td>
<td width="45">Z</td>
</tr>

</table>

Which will produce the following table:

A B C
X Y Z

Horizontally Aligning the Content Inside Tables

The content inside a cell is left aligned by default, but you can also center or right align the text as well by using the align attributes.

<table width="300" border="2">

<tr>
<td width="210" align="center">A</td>
<td width="45">B</td>
<td width="45">C</td>
</tr>

<tr>
<td width="210" align="center">X</td>
<td width="45">Y</td>
<td width="45">Z</td>
</tr>

</table>

 

A B C
X Y Z

See how the first column is aligned to the center?  You can also right align the columns by using the align="right" inside the <td> cells.

Vertically Aligning the Content Inside the Table Cells

So far we've kept the table cell alignment at the default, which is the middle.  Notice in the above table that the A, B, and C are all three aligned in the middle of their cells.  Well you can change their alignment to either top, bottom, or middle by using the valign (which stands for vertical align) tag:

<table height="250" width="300" border="2">

<tr>
<td valign="top" width="210">A</td>
<td width="45">B</td>
<td valign="bottom" width="45">C</td>
</tr>

<tr>
<td valign="top" width="210">X</td>
<td width="45">Y</td>
<td valign="bottom" width="45">Z</td>
</tr>

</table>

 

A B C
X Y Z

I've set the table height to "250" so the alignment would be more noticeable. Notice that the A in both rows are aligned to the top.  You can also align to the "bottom" or the "middle".

Creating a Left Navigation Layout With Tables

As we mentioned earlier, most left and right navigations are created using tables.  All you do is create a table with one row, two columns and no border.  Then align both of your columns to the top (using the valign tag) so your text will start in the top of the columns, not the middle.  Then depending on if you're going to have a right or left navigation, you'll make one column significantly smaller than the other.

Here's a simple left navigation layout:

<table width="100%" border="0">

<tr>
<td valign="top" width="25%">Left Nav Links Here</td>
<td valign="top" width="75%">Body Here</td>
</tr>

</table>

And here's what it would look like: 

Left Nav Links Here Body Here
 

Notice I set the border to "0" but it's still showing in the example.  I just did that to show how the layout would look. If you set your border to "0" you won't see any lines around your table.


<pre> ... </pre>

This pair forces browsers to temporarily use a "fixed font", and preserves spaces. That is extremely helpful to rapidly create a simple table so columns don't get fussed up, since nearly all "reply boxes", such as FR, use fixed font. This gives a WYSIWYG situation without using the complex table formatting in HTML and is useful for simple tabular information.

Example columns for pre:

State      Abbr.  Wind       Temperature
New York    NY     windy       cold
Penn        PA     "           cold
Florida     FL     hurricanes  nice
Illinois    Il    calm        warm

This is what it would have looked like without using pre./pre:

State Abbr. Wind Temperature
New York NY windy cold
Penn PA " cold
Florida FL hurricanes nice
Illinois Il calm warm

So there ya have it!  That's a general overview of tables.  There's so much more you can do with them, but if you can understand the basic layout, you'll be able to do so much with the design of your web site.

HTML Editors

I do not use IE--I much prefer Firefox at this time. So--for firefox, There are a number of HTML editors to make your posting experience easier.

Check them out--hopefuly you'll find one that fits your needs and style.


TOPICS: Computers/Internet
KEYWORDS: 2016; faq; html; htmlsandbox; htmlsandbox2016; sandbox; sandbox2016; sarah
Navigation: use the links below to view more comments.
first 1-2021-4041-6061-80 ... 301-306 next last

1 posted on 01/01/2016 6:27:47 AM PST by ShadowAce
[ Post Reply | Private Reply | View Replies]

To: rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; amigatec; Ernest_at_the_Beach; ...

2 posted on 01/01/2016 6:28:07 AM PST by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Great post. Thanks. HTML education (I could use some) BUMP!


3 posted on 01/01/2016 6:32:42 AM PST by PGalt
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

2015 has some very informative posts. http://www.freerepublic.com/focus/f-chat/3242857/posts?page=150#150


4 posted on 01/01/2016 6:35:13 AM PST by BykrBayb (Lung cancer free since 11/9/07. Colon cancer free since 7/7/15. ~ Þ)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Thanks, Shadow Ace—this is very helpful.

I learned a few new things here.

I think I’ll try some of these things in 2016.

Happy New Year to you!


5 posted on 01/01/2016 6:41:28 AM PST by exit82 ("The Taliban is on the inside of the building" E. Nordstrom 10-10-12)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce
Why does it always have to be in a sandbox? I hate playing in the sand - can't stand the way it sticks to me.


6 posted on 01/01/2016 6:41:47 AM PST by raybbr (Obamacare needs a deatha panel)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Terrific post. It would be great to have this in printable form.


7 posted on 01/01/2016 6:41:56 AM PST by afraidfortherepublic
[ Post Reply | Private Reply | To 2 | View Replies]

To: ShadowAce

Has the quote and apostrophe problem been fixed yet!


8 posted on 01/01/2016 6:43:21 AM PST by Yo-Yo (Is the /sarc tag really necessary?)
[ Post Reply | Private Reply | To 1 | View Replies]

To: afraidfortherepublic

Copy>Paste to a new MS Word doc, reformat, save and you’re all set.


9 posted on 01/01/2016 6:45:27 AM PST by equaviator (There's nothing like the universe to bring you down to earth.)
[ Post Reply | Private Reply | To 7 | View Replies]

To: ShadowAce

Screen Sizes

With the proliferation of display devices, screens now come in a wide variety of sizes and aspect ratios. The image below illustrates the range of screens possible. Differing aspect ratios are shown on the diagonal lines with the ratio in circles towards the lower right.

Given the wide variation in screen resolution and size when we step from mobi to fondleslab to display to HDTV it is lunacy to specify screen position in term of pixels. There is no way to know what sized screen you are imaging to so it is best to reference screen sizes and positions in percentages instead. The resulting size is the percentage of the width (or height) of the enclosing container. This is most useful when specifying positions and sizes of tables and images. The HTML for the image above looks like:

<img src="http://upload.wikimedia.org/wikipedia/commons/4/44/Vector_Video_Standards5.svg" width="95%">

The width="95%" part sets the image width to 95% of the width of the enclosing container. We leave the height unspecified so that the computer will figure out the correct value so as not to distort the image. If you wish to distort the image you may specify a height as well.

Things that are text related, such as the whitespace around a paragraph or header and text sizes are best specified in em. One em was originally the width of an M in the current font. In a multi-lingual world where not all alphabets have an M in them, the meaning has evolved to mean the height of the current font. As the user changes the magnification on a page the size of an em changes with it. This produces a pleasing scaled effect to the eye not possible when spacing objects in pixels.

Other unit values available are in inch, cm centimeter, mm millimeter, ex x-height of a font (x-height is usually about half the font-size), pt point - 1/72 of an inch, pc pica - 12 points and px pixels - a single dot on the screen. If no units are specified pixels are used by default. Best results across the broad spectrum of displays are achieved by exclusively using em and percent to specify size and distance. Try not to do anything else.

HTML 4.01

Any element (anything between tags) can be explicitly positioned by either putting it in a table or centering it <center></center>. Beyond that, explicit positioning is purposefully made as difficult as possible so that you won't do it. Your page will be displayed on a variety of devices of differing sizes and the less you constrain where the elements are positioned the better the general result will be across the broad spectrum of displays.

Inside tables you can use the attribute <td align="right"> ("left|right|center|justify|char") are acceptable values. The "char" option is mishandled by all the major browsers so it doesn't see much use. Align can also be used with images and horizontal rule, <img src="http://mumble.com/image.jpg" align="right"> will work. So will <hr align="right"> This is all in the HTML 4.01 idiom that we are trying to make go away.

To summarize, using HTML you can Center an element or put it in a table to control its position. This is why tables are wildly overused.

Freedom ≠ Free Stuff☭
I, for one, welcome our new Cybernetic Overlords /.
Mash Dobbshead® for HTML, bop Hello_Cthlhu for XAMPP

10 posted on 01/01/2016 6:47:43 AM PST by Mycroft Holmes (The fool is always greater than the proof.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

bkmk


11 posted on 01/01/2016 6:47:50 AM PST by novemberslady
[ Post Reply | Private Reply | To 1 | View Replies]

To: Yo-Yo

No, the problem is called smart quotes. A solution until it is fixed is to run your text through this tool before posting.

http://dan.hersam.com/tools/smart-quotes.html

I does a great job of getting rid of those unprintable characters.


12 posted on 01/01/2016 6:50:25 AM PST by McGruff (Desperation does not look good on anyone.)
[ Post Reply | Private Reply | To 8 | View Replies]

To: ShadowAce

Thank you for this!


13 posted on 01/01/2016 6:51:08 AM PST by Made In The USA (Rap music: Soundtrack of the retarded.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Mycroft Holmes

Refreshers are always helpful. Thanks.


14 posted on 01/01/2016 6:56:41 AM PST by w1andsodidwe (Barrak has now won the contest. He is even worse than Jimmah.)
[ Post Reply | Private Reply | To 10 | View Replies]

To: McGruff
Smart quotes display fine in the article preview on the main page, but do not when you open the article itself.

Also, posting a reply with quotes displays properly, but if you copy and paste someone else's post to use in a reply, the quotes get screwed up again.

Extremely frustrating no matter how many web sites there are to strip smart quotes. Free Republic is GENERATING smart quotes!

15 posted on 01/01/2016 7:05:12 AM PST by Yo-Yo (Is the /sarc tag really necessary?)
[ Post Reply | Private Reply | To 12 | View Replies]

To: ShadowAce

Thanks!
Bookmark.


16 posted on 01/01/2016 7:08:58 AM PST by Eddie01 (uh oh)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Thank you ... any way to make sure an image isn’t a couple of feet wide so it doesn’t mess up the entire thread with tiny, unreadable font?


17 posted on 01/01/2016 7:35:21 AM PST by ThePatriotsFlag ( Anything FREELY-GIVEN by the government was TAKEN from someone else.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: novemberslady

bfl


18 posted on 01/01/2016 7:53:25 AM PST by ZOOKER (Until further notice the /s is implied...)
[ Post Reply | Private Reply | To 11 | View Replies]

To: ShadowAce
It's the name of the page or the picture that you see, the www.http:// stuff.

Shouldn't that be http://www. ?

19 posted on 01/01/2016 8:00:39 AM PST by upchuck (Happiness never decreases by being shared.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce


HTML Help Threads & Other Info for Newbies
(And Anyone Else Who Needs It )

Just Click The Links Below For The Threads

These are the current active threads.
Most of the older HTML Bootcamp and
HTML Campfire Threads are no longer active links.
Those have been removed over time.



Also This for New Freepers



Even More Info For New Freepers



20 posted on 01/01/2016 8:08:53 AM PST by Fiddlstix (Warning! This Is A Subliminal Tagline! I reallyRead it at your own risk!(Presented by TagLines R US))
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-4041-6061-80 ... 301-306 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson