Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

short tags, is it possible?

Status
Not open for further replies.

taval

Programmer
Jul 19, 2000
192
GB
I was wondering is there a way of making alaises in html.<br>Is there a way a can put in a short tag or something and let it contain other code. for example can I make the code<br><br>align=&quot;right&quot; bgcolor=#CCCCCC WIDTH=&quot;160&quot;<br>and call it something like &quot;myFormat&quot; and then use call &quot;myFormat&quot; in my html code so I don't have to keep on writing out <br>align=&quot;right&quot; bgcolor=#CCCCCC WIDTH=&quot;160&quot;<br>as it takes up too much space.<br><br>Grateful for any help.<br>
 
you can use style sheets to do that for you.<br><br><FONT FACE=monospace><br>&lt;STYLE TYPE=&quot;text/css&quot;&gt;<br>&lt;!--<br>&nbsp;&nbsp;BODY {font: 10pt &quot;Arial&quot;}<br>&nbsp;&nbsp;H1 {font: 15pt/17pt &quot;Arial&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font-weight: bold;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: maroon}<br>&nbsp;&nbsp;H2 {font: 13pt/15pt &quot;Arial&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;font-weight: bold;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: blue}<br>&nbsp;&nbsp;P&nbsp;&nbsp;{font: 10pt/12pt &quot;Arial&quot;;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;color: black}<br>--&gt;<br>&lt;/STYLE&gt;<br></font><br><br>then whenever you use &lt;H1&gt; or &lt;H2&gt; or &lt;P&gt; it takes the attributes from above.<br> <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Thanks, can I just cut and paste this into a normal HTML document. HOw do I implement this , I know only HTML?<br>Is there a way of doing it in basic HTML?
 
that is basic HTML, just throw that tag block up in between the &lt;HEAD&gt;&lt;/HEAD&gt; <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Cascading Style Sheets are even easier than HTML... I'd start with the easier tutorials at <A HREF=" TARGET="_new"> <p>Liam Morley<br><a href=mailto:lmorley@wpi.edu>lmorley@wpi.edu</a><br><a href=] :: imotic :: website :: [</a><br>"light the deep, and bring silence to the world.<br>
light the world, and bring depth to the silence.
 
One thing though, CSS, Cascading Style Sheets, only work in IE3 and above, so don't be suprised when it won't work in Netscape.<br><br>-Vic
 
Dear vikter,<br><br>&gt; One thing though, CSS, Cascading Style Sheets, only work in IE3 and <br>&gt; above, so don't be suprised when it won't work in Netscape.<br><br>Would you please stop posting statements that are blatantly false. The style sheet posted above by Karl works just fine in Netscape 4.06!<br><br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top