|
|||||||
---|---|---|---|---|---|---|---|
Posted by | Keina's HTML Guide | ||||||
Keina [Not Active] (#50109) Lone Wanderer View Forum Posts Posted on 2017-08-29 16:09:16 |
Hiya and welcome to my HTML Guide! General HTML Here I'll teach you the basics of HTML! <*i*>Text<*/*i> Italicized text example. <*b*>Text<*/*b> Bolded text example. <*u*>Text<*/*u> Underlined text example. <*font size="#"*>Text<*/*font> Font size 2 text example. Remember, this can only go up to 7. <*font color="#HEXCODE"*>Text<*/*font> OR <*font color="Color Type"*>Text<*/*font> Font color text example. Things that could go for Color Type is like: Red, Green, Blue, Yellow, etc. <*span style="background-color:#HEXCODE;"*>Text<*/*span> OR <*span style="background-color:Color Type;"*>Text<*/*span> Highlighted Text example. Things that could go for Color Type is like: Red, Green, Blue, Yellow, etc. <*center*>Text<*/*center> OR <*p style="text-align:center;"*>Text<*/*p> This will center your text. <*img src="URL"*> Replace URL with a direct link to the image when you have it hosted on an external site. Make sure it's a direct link to the image and not the page the image is hosted on. <*a href="URL"*><*img src="URL"*><*/*a> This will make the image clickable when a user clicks the image. Be sure to replace URL with a direct link with the image you want to use and a URL to a site/webpage/topic/post/etc. <*img src="URL"* title="TEXT"*> This will give text when you hover over the image. Remember that Internet Explorer uses the alt tag for some reason but the title tag works on all browsers BUT Internet Explorer. <*a href="URL"*>Text<*/*a> Clicky Link example. <*strike*>Text<*/*strike> <*blockquote*>Text<*/*blockquote> Block quote example. <*hr*> This will add a thin bar across the entire width of a post/div/den description/etc. Used generally as a divider between sections. [*spoiler*]Text[*/*spoiler] Text here. This will only appear after hitting the Toggle Spoiler button. Headers <*h1*>Text<*/*h1> Header 1 text example.<*h2*>Text<*/*h2> Header 2 text example.<*h3*>Text<*/*h3> Header 3 text exampleLists Lists are fairly simple to code. Organized List Organized List Name <*ol*><*li*>List Item 1<*/*li> <*li*>List Item 2<*/*li> <*li*>List Item 3<*/*li><*/*ol> Example Organized List
The <*ol*> tag stands for Organized List while the tags <*li*> stands for List Item. If you'd like more list items just add more <*li*> tags inside the <*/*ol> tag and label it. The numbers are added automatically in this case so no need to worry about putting numbers in. Unorganized List Unorganized List Name <*ul*><*li*>List Item 1<*/*li> <*li*>List Item 2<*/*li> <*li*>List Item 3<*/*li><*/*ul> Example Unorganized List
The tag <*ul*> stands for Unorganized List in this case. Just like before, <*li*> stands for List Item. Just add more <*li*> tags inside the <*/*ul> tag if you'd like more than three items. Bullet points are added automatically so do not worry over that. Tables Tables tend to be VERY picky and tend to break easily if the code is incorrect. Feel free to PM me any questions when it comes to using tables or just leave a reply here. <*table style="width:#px;border:#px solid;"*><*tr*><*th*>Header Text<*/*th><*/*tr><*tr*><*td*>Content Text<*/*td><*/*tr><*/*table>
You can have a Table with two headers and two contents. Just copy and paste the bolded code above to get it. Remember to keep it inside the <*/*table> tag when you're copying and pasting the code.
Div Boxes Due to the recent coding change that has happened, div boxes work a little differently now. Scrolling Div Box with Background color <*div style="width:#px;height:#px;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text<*/*div> Regular Div Box <*div style="width:#px;height:#px;"* class="scrollBox"*>Text<*/*div> Side by Side Div Boxes <*div style="width:800px;"*> <*div style="width:#px;height:#px;float:left;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text1<*/*div><*div style="width:#px;height:#px;float:right;background:#HEXCODE;border:#px solid;"* class="scrollBox"*>Text2<*/*div> <*/*div> It is vital that you do not add any spaces inbetween the two div boxes you type inside of or else they'll not be lined up correctly. Expandable Div Box This has to be done in CSS to accomplish this. If you do not have a CSS or are using a Premade CSS by another user, I cannot help you with this. Premade CSS users have to ask the one who made it to add it in for you so you can accomplish this. CSS: .name { height: #px; padding: #px; overflow: hidden; margin-bottom: 10px; transition: height #s; } .name:hover { height: #px; overflow: auto; } HTML: <*div style="width:#px;background:#HEXCODE;border:#px solid;"* class="name"*>Text<*/*div> You can change out name for just about anything your heart desires as long as both the CSS and HTML names match. Floating Corner Div Box This also has to be done in CSS. Here's a Guide with it premade for anyone who wants it. CSS(For floating left corner box): .name { position: fixed; bottom: 0; left: 0; } HTML: <*div style="width:#px;height:#px;background:#HEXCODE;border:#px solid;"* class="name"*>Text<*/*div> Same thing applies here with the Expandable Div Boxes, just change the name to whatever you'd like as long as they all match. CSS Rounded corners on Div Boxes: .name { border-radius: #px; } Custom Scroll Bars: ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: #HEXCODE; border-radius: #px; } ::-webkit-scrollbar-thumb { background: #HEXCODE; border-radius: #px; } ::-webkit-scrollbar-thumb:hover { background: #HEXCODE; border-radius: #px; } Please note that this will not display on Firefox and IE browsers, so any players who use those as their preferred browser will not be able to see the special scroll bars. Misc. Code Any code that doesn't fit into any of the categories will be here! CSS Linking Code <*link rel="stylesheet"* type="text/css"* href="URL"* */*> Be sure to replace the URL with a direct link to your CSS. <*body bgcolor="#HEXCODE"*>Text<*/*body> This will change the color of the background. I hope it solves your questions about HTML! 16 players like this post! Like? Edited on 01/04/19 @ 12:51:47 by Keina (#50109) |
koura. #brockhampton (#117887)
Fearsome View Forum Posts Posted on 2017-09-01 19:02:52 |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-09-01 19:07:21 |
Bobtailπ (#79288)
View Forum Posts Posted on 2017-09-14 04:19:43 |
Hi Keina! I'm so bad at coding oml EDIT: I tamed the beast! It works now for some reason :') Thanks for this guide! 0 players like this post! Like? Edited on 14/09/17 @ 04:49:04 by Ahtunowhiho Acaraho (#79288) |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-09-14 07:59:22 |
Glad to hear that you got the coding issue sorted! :D No problem though. 0 players like this post! Like? |
Blue π SP {SNUH} (#124995)
Notable Lion View Forum Posts Posted on 2017-10-07 18:38:56 |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-10-07 19:42:16 |
Here's what you'll need for clickable images: <*a href="URL"*><*img src="URL"* */*><*/*a> Be sure to remove the *'s, replace URLs with direct link to either the image or to the page you want it to direct users to when they click it. Hope it helps, Blue! 0 players like this post! Like? |
Blue π SP {SNUH} (#124995)
Notable Lion View Forum Posts Posted on 2017-10-07 19:45:47 |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-10-07 19:48:49 |
Glad to hear that it will help! Must've missed it when I made the thread so I'll go ahead and add it now. Sorry about that! 0 players like this post! Like? Edited on 07/10/17 @ 19:49:57 by Keina (#50109) |
Blue π SP {SNUH} (#124995)
Notable Lion View Forum Posts Posted on 2017-10-10 06:30:22 |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-10-10 08:36:23 |
Hiya Blue! Feel free to PM me the table code you're trying to use with *'s in it and how it broke! 0 players like this post! Like? |
koura. #brockhampton (#117887)
Fearsome View Forum Posts Posted on 2017-10-14 18:26:10 |
how do you make table backgrounds semi-transparent? edit: and another question - can you explain what to put in the # for the expandable tables (padding, height)? and what do you put in the "name"? 0 players like this post! Like? Edited on 15/10/17 @ 18:32:54 by koura *:ο½₯,β§ (#117887) |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-10-16 13:27:00 |
Hiya! Sorry for the late reply! You can make your background den page semi-transparent by using the RGBA code which stands for Red Green Blue Alpha! This has to be done in CSS but here's the code: div.container.main { background-color:rgba (255, 255, 255, 0.5); } This would make it white at 50% opacity. Any percentage must be in decimal form in order for it to work. To change the background color you must get the RGB color form of the hex code you wanted to use for your background. As for the padding for expanding div boxes I have that set to 0 but you can always change it to say 10px if you really wanted! The height, width and anything else with a # sign can be changed to your liking by replacing the # with an actual number! The name is just something you can call it, if you replace it with say stamps you must make sure that both the class tag for your div box and the name for your CSS for the expanding div box is identical. Any mistake with the name and it will not work. Hope it helps! Again, sorry for my late reply! 0 players like this post! Like? |
Blue π SP {SNUH} (#124995)
Notable Lion View Forum Posts Posted on 2017-10-16 13:36:33 |
Keina [Not Active] (#50109)
Lone Wanderer View Forum Posts Posted on 2017-10-16 14:15:59 |
Oh! I'm terribly sorry about that! I will get on it now. I've been a bit busy lately. Sorry! 0 players like this post! Like? |
Blue π SP {SNUH} (#124995)
Notable Lion View Forum Posts Posted on 2017-10-16 14:38:01 |