Jump to content

[Tutorial] [Basics] Learning HTML - Step Two [/Basics]


Recommended Posts

Posted

Hey guys!

 

I'm glad to present the "Step Two" guide for HTML to MaxCheaters. The first thread seemed to appeal for you guys, and this was also reflected in the poll I set. This guide will take it further from where we left off, and depending on your feedback I will continue to make these for you all to see. I have decided not to go straight into very difficult HTML, because there are still people that need to learn from this and I think both Advanced and Beginners can benefit from this tutorial. :thumbsup:. Also I would like to let you guys know that if you have any questions you can PM me or post below, and I will answer your question right away. Take note I am not doing coding services.

 

 

What's in for Today?

 

  • HTML Attributes
  • HTML Formatting
  • HTML CSS
  • HTML Tables

 

 

HTML Attributes

 

 

What are HTML Attributes?

 

HTML Attributes provide extra data/information about a specific element. I spoke of elements in my previous tutorial, now we are going to build up from that. These attributes are specified within the starting tag. They come in pairs such as:

 

 

name="putavalueinhere"

 

Using Attributes in HTML

 

As I spoke before in the previous tutorial, linking is used with the "<a>" tag. But to specify that the shown text is linked to a external/internal link, attributes have to be added.

 

 

<a href="http://maxcheaters.com">This is the display text. If you click on this it will link you to MaxCheaters.</a>

 

 

The attribute in this is the "href="http://maxcheaters.com"". It was the extra information provided for the browser to work at.

 

Testing HTML Files Locally

 

You can test that the above will work if you try this locally on your computer by doing the following:

 

1. Click on Start

2. Type into the search bar "Notepad" without the quotations

3. Open Notepad

4. Type in the following:

 

 

<html>
<body>
<a href="http://maxcheaters.com">This is the display text. If you click on this it will link you to MaxCheaters.</a>
</body>

</html>

 

 

5. Save it as .html by changing the extension

6. Now it should be in .html form you can double-click

7. Your default web-browser should open and this text will be displayed: "This is the display text. If you click on this it will link you to MaxCheaters."

8. If you put your mouse over the text it should be under-lined, this symbolises that it is linked.

9. Click on it and MaxCheaters should open

 

 

Commonly used Attributes

 

Some of these common attributes out of many.

 

 

49daa30d9f40bac770114f150744739c.png

 

 

To find a full complete list you may go Here

 

 

HTML Formatting

 

 

 

Now, simple formatting is very useful when you are trying to emphasise a specific sentence or word to stand out to the reader/user.

 

Bold

 

To bolden a word or sentence you use the tag "<b>" and of course to end it "</b>".

 

 

<html>

<body>
<b>If you put this into a .html file and run this locally taught above it will be bolder than</b> this.
</body>

</html>

 

 

You can combine codes together when you start learning more elements to add in :thumbsup:. And try to be creative when doing so.

 

Italics

 

Italic texts on HTML is very similar to making text bold, element wise. You only need to replace the "b" with an "i".

 

 

<html>
<body>
<i>This text will be italic. Make sure that the words you want in italic are in between these tags otherwise they become like</i> this.
</body>
</html>

 

 

86acef8142283e1e88addfc60a351534.png

 

 

To find the rest look Here

 

 

HTML CSS

 

 

 

Ok. Now you want to make your HTML files sexy and attractive to whatever need they may be for. To do this we may use something called "CSS". Which stands for "Cascading Styles Sheet ". They are used to style HTML Elements which I spoke of earlier.

 

Now, CSS can be implemented in a few different ways:

 

 

  • Inline - Using style attributes within HTML elements
  • Internal - using <style> as its own element, which is placed in the <head> section
  • External - Create an entirely separated .css file which can be "included" into the HTML file.

 

 

Inline

 

Inline CSS in HTML is where you specify "real-time" what something is going to be styled.

 

 

<body style="color:green;margin-left:50px;">
Lol. Now everything within the body will be green unless stated otherwise. XD
</body>

 

You can then go with the text background blocky like colour:

 

<body style="background-color:blue;">
Lol. Now everything within the body will be blue, but it will be background of the text :D
</body>

 

 

Obviously, you don't have to keep using the element body, but you can use like <h2 style="background-color:blue;">This will be size h2 and with a background colour of blue.</h2>

 

Cool eh? :victoire:

 

And you can put a lot of that together:

 

 

<html>

<body>
<h1 style="font-family:arial;">lulz</h1>
<p style="font-family:verdana;color:blue;font-size:30px;">Meow</p>
</body>

</html>

 

 

Can't figure what the output might? Give it a shot!

 

Internal Style Sheet

 

Here you can define a certain place to be specifically of a design, which instead of putting it straight into the element it has its own. It is all placed in the <head> which is before the <body>

 

 

<head>
<style type="text/css">
body {background-color:green;}
p {color:blue;}
</style>
</head>

 

 

Basically when a text is placed into the <body> it will be with a background colour of green, and anything using the <p></p> will be coloured blue. Make sure you spell "color" in HTML not "colour", because it is using US English. If you use "colour", it will not be recognised as "color".

 

External Style Sheets

 

This is normally used if there is a lot of styling required and also is easier to manage, but for this to work, it has to be "included" and loaded into a .html file when it runs so that it filters out for its work.

 

 

 

<head>
<link rel="stylesheet" type="text/css" href="basicallyyouhavetohaveitinthesamedirectorybutifnotlookbelow.css" />
</head>

 

 

 

Different directory?

 

 

<head>
<link rel="stylesheet" type="text/css" href="/randomdirectory/meow.css" />
</head>

 

 

 

Basically that's all you need to put.

 

 

 

HTML Tables

 

 

 

Tables will become very useful when you are using HTML. It helps align and asort information into very neat tables, which can obviously be modified to your own needs or wants.

 

Now, to start off, you need to have the whole table set up in the tag:

<table></table> There are obviously stuff to put inside, but those tags define the start of a table.

 

<th></th> This symbolises a header in the table.

<tr></tr> This symbolises a table row.

<td></td> And this symbolises a cell in the table.

 

To border the table we can use a attribute:

 

 

<table border="1">

 

 

You can change the thickness by changing the 1 to greater digits.

 

This is a full table example:

 

 

<table border="1">
<tr>
<th>This is the First Header</th>
<th>This is the Second Header</th>
</tr>
<tr>
<td>row 1 cell 1</td>
<td>row 1 cell 2</td>
</tr>
<tr>
<td>row 2 cell 1</td>
<td>row 2 cell 2</td>
</tr>
</table>

 

 

Output:

 

 

cffee1f0ee2fda5d19772efa2c6dba84.png

 

 

 

Get the idea?

 

 

Here is a good list:

 

 

bc04dabbffa5a2061d39e68cd014f31f.png

 

 

`Thank You!

 

 

Thanks for your support guys! :yeye: I will setup another poll to whether you want a Part 3 or not. I will keep going until it goes advanced if the polls remain positive enough I guess.

 

Hope this tutorial helped!

 

 

 

 

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Posts

    • nice work, welcome back to world of lineage development @melron 😄
    • He's likely baiting you to download his source full of backdoors indeed
    • Yeah inside router i had to enable udnp services 
    • Hello cheaters, As a team of avid developers and enthusiasts of Lineage 2, we are excited to present the L2 Control Hub, a groundbreaking plugin designed by myself and my collaborator, StinkyMadness. This innovative tool equips server administrators with powerful automation capabilities directly within the game's community board. L2 Control Hub simplifies the creation and management of automations, enabling you to customize your server operations without the need to modify the source code.   Key Features of L2 Control Hub: Robust Automation Triggers: Select from a plethora of triggers currently available, with continuous additions in the works to enhance your control options. Dynamic Conditions and Actions: Tailor your server operations with an extensive range of conditions and actions, ensuring flexible and precise control over game events and player interactions. Customizable Variables: Easily integrate server-specific variables from your database to further personalize and streamline your automations. Utilize these variables across various automation scenarios to cater to your specific server requirements. JavaScript Integration: Execute custom JavaScript codes that interact seamlessly with Java classes, bringing advanced functionalities to your server's ecosystem.   Explore L2 Control Hub in Action: We've prepared a series of video tutorials to demonstrate the capabilities of L2 Control Hub: Control Hub - Create a Simple Flow with 1 Condition and 1 Action: Get started with basic automations. Control Hub - Multiple Conditions with Multiple Actions: Explore more complex automations for detailed server management. Control Hub - Using Variables: Discover how to implement and use custom variables for tailored automations. Control Hub - Using JavaScript: Experience the power of custom scripts in enhancing your server functionality.   L2 Control Hub is currently about 70% complete, and we are actively developing and refining features. We invite you to join our ➡️ Discord community ⬅️ to engage with the development process, provide feedback, and be the first to test new features. Additionally, any updates or changes to the plugin are seamlessly delivered to all customers directly from our web server, ensuring your system is always up-to-date without the need for manual downloads.   Your game, your rules, automated. Join us in redefining server management in Lineage 2 and elevate your gaming community with unmatched automation capabilities. For more details, contact us directly to get started with L2 Control Hub.   Currently, the plugin is developed using aCis sources. We will continue with these sources until we finalize all the necessary details before proceeding to integrate with the more prominent sources available.       The L2 Control Hub is designed to extend beyond mere functional additions to your server. We are in the process of implementing a suite of advanced mechanisms, such as a vote manager capable of interfacing with any Lineage 2 voting site without requiring configuration, live statistics to provide admins with real-time insights, and an event engine that can generate any desired event within seconds. All these features will be seamlessly integrated into the module, enhancing your server management experience significantly.     Please note that L2 Control Hub will be a premium tool, reflecting the extensive features and benefits it offers. While we are finalizing the pricing structure, rest assured that we aim to deliver great value for your investment. We will announce the cost details soon on our platforms to ensure everyone is well-informed and can plan accordingly. Join us to take your server management to the next level with L2 Control Hub.     
    • The link soucer and system are off, reup please, thanks very much @HypeH
  • Topics

×
×
  • Create New...