Discuss Scratch

cei
Scratcher
8 posts

HTML

I used to wonder, How do you make websites? I soon found out: HTML. I have made one website so far, All about cats, so I decided to make another one. This one is about fun stuff , so If any of you have ideas, then please post them here.
edward789121test
New Scratcher
93 posts

HTML

how do I make one?

Last edited by edward789121test (July 9, 2016 05:25:25)

CodingGamerHD
Scratcher
62 posts

HTML

Try this website.
cei
Scratcher
8 posts

HTML

edward789121test wrote:

how do I make one?
It's Kinda hard to explain, but you can learn how on websites like Khan academy or codecademy.
edward789121test
New Scratcher
93 posts

HTML

cei wrote:

edward789121test wrote:

how do I make one?
It's Kinda hard to explain, but you can learn how on websites like Khan academy or codecademy.
No, I know HTML.
ELIAPPLE7
Scratcher
75 posts

HTML

edward789121test wrote:

cei wrote:

edward789121test wrote:

how do I make one?
It's Kinda hard to explain, but you can learn how on websites like Khan academy or codecademy.
No, I know HTML.
Then what do you mean???
edward789121test
New Scratcher
93 posts

HTML

ELIAPPLE7 wrote:

edward789121test wrote:

cei wrote:

edward789121test wrote:

how do I make one?
It's Kinda hard to explain, but you can learn how on websites like Khan academy or codecademy.
No, I know HTML.
Then what do you mean???
How do you get the custom domain and everything?
edward789121
Scratcher
500+ posts

HTML

Bump
CodingGamerHD
Scratcher
62 posts

HTML

edward789121test wrote:

ELIAPPLE7 wrote:

edward789121test wrote:

cei wrote:

edward789121test wrote:

how do I make one?
It's Kinda hard to explain, but you can learn how on websites like Khan academy or codecademy.
No, I know HTML.
Then what do you mean???
How do you get the custom domain and everything?
You need to find a good website host (which costs ~£5 a month if you get really cheap hosting services) and then you have to upload all the HTML files to the website host's server.
SC_DStwo_Master
Scratcher
100+ posts

HTML

-snip-

Last edited by SC_DStwo_Master (Aug. 13, 2016 16:14:44)

adri326
Scratcher
100+ posts

HTML

Learning HTML is very easy, and its applications are countless, but getting a modern well-looking website is harder, there is many libraries that could help you with this, like google's Material Design documentation, or Materialize.

But there is more than just HTML, there are many other website languages, the most commons are CSS, Javascript, PHP and Node.js. The 2 first are browser-side languages : the visitor's browser will read and execute the scripts, and the 2 last are server-side languages, that allows you to do more than just static HTML files, they can be used to make chats for example!

CSS is for the style of your website, and its code is written at three places: in the HTML code, you can add style to your elements thanks the style=“…” attribute, and in .css files. Those files will need to be linked from your HTML file, thanks the <link rel=“stylesheet” href="urltoyourfile.css"> balise, and for the latest way, you can simply write the CSS code randomly in your HTML file, within the <style></style> balises.

Javascript can be written at three places, the same than the CSS code, thanks the various events attribute (see later) in your HTML file, with .js files, that are linked thanks the <script src="urltoyourfile.js"></script> balise, and within <script></script> balises.

The event attributes to access JS are attribute like CSS (style=), but the code they contain will be launched when the event is triggered, for example you can have a text that will send you an alert when it gets clicked:
<span onclick="alert('You clicked on me!');">Click on me to see what I can say!</span>


PHP and Node.js are different than those two languages, because they are executed server-side.

PHP is stored in .php files, when the visitor request this file, it'll execute this file. .php files are HTML-like files, at the difference that they contain PHP balises, that the PHP executer will find and execute them. Those balises are spelled so:
 HTML code
<?php
PHP code
?>
HTML code

An small example would be a small random message:
<div>
<?php
$messages = ["hi!", "how are you?", "welcome to my website!"];
echo $messages[rand(0, 4)];
?>
</div>

Node.js is not like PHP at all, it is harder to use but makes more powerful apps, its language is Javascript.



I hope this gives you more informations!

Keep Scratching!

Last edited by adri326 (Aug. 25, 2016 18:11:31)

Powered by DjangoBB