Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Tutorials
How to get gud at front-end and start your path to greatness (or something)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ssssssdforgotpass" data-source="post: 429365" data-attributes="member: 79757"><p>Okay so this tutorial is made for all of you out there who want to "get gud" at front-end web design.</p><p>For this tutorial we will <strong>not </strong>be including information on how to code the back-end of a website.</p><p></p><p></p><p></p><p style="text-align: center"><strong><span style="font-size: 26px">Terminology Dictionary</span></strong></p><p><strong><span style="color: #00b359">Front-end</span></strong> - The design and layout of the website incorporating languages such as <strong>HTML</strong>, <strong>CSS</strong>, and on a more advanced level, <strong>jQuery</strong> or <strong>Javascript </strong>perhaps even <strong>AJAX</strong>.</p><p></p><p><strong><span style="color: #00b359">Back-end</span></strong> - The back-end of a website usually refers to a website using things such as PHP, database functionality (<strong>mySQL</strong>, <strong>mySQLi</strong> or <strong>PDO</strong>) among other things. If you only create website front-ends you are usually referred to as a "<strong>Designer</strong>" if you do back-end work you may be referred to as a "<strong>Developer</strong>" and if you do both this is commonly known as a "<strong>Stack Developer</strong>".</p><p></p><p><strong><span style="color: #00b359">Framework</span></strong> - A framework usually refers to a set of components that have been thrown together into a package and then used by people to create websites with ease and simplicity. These are fantastic for a learner because ultimately you can get to understand how simple web design can be without implementing these components yourself, and at the same time you can modify and edit the existing code to understand how you can create your own unique things.</p><p></p><p><strong><span style="color: #00b359">CSS</span> - </strong>CSS stands for Cascading Style Sheet. These CSS files will normally always use the extension of "<strong>.CSS</strong>". This extension identifies the file as containing CSS which will be used to style the HTML markup which is on your page. CSS sheets will sometimes use the name of "<strong>.min.css</strong>" this is simply a personal choice and means that the contents of that file have been "<strong>Minified</strong>" which is done usually for speed as all the excess "white-space" and characters are removed, but occasionally CSS is minified because it makes it harder to edit if it were to be copied or stolen from a website although there is really no reason to worry about this.</p><p></p><p><strong><span style="color: #00b359">HTML</span></strong> - HTML stands for "<strong>Hyper Text Markup Language</strong>" and is used to tell the browser how it will display components on the web-page and how they will be shown and layed out. HTML is used in conjunction with CSS which then styles the elements which is how websites have different appearances and looks. HTML files will often use the extension "<strong>.html</strong>" or "<strong>.htm</strong>".</p><p></p><p><strong><span style="color: #00b359">Javascript</span></strong> - Javascript of "<strong>JS</strong>" is a scripting language that allows web-pages to become "<strong>dynamic</strong>". JavaScript can be used for many advanced things or simple things such as drop down menus in navigation bars or to change a colour of an element when it is hovered over. We won't go to much into detail on this language but it is worth learning if you are serious about web design even though most things can now be done in CSS alone with the introduction of things such as CSS Transitions. JS files use the extension "<strong>.js</strong>".</p><p></p><p><strong>Note</strong>: There is more we could go into such as CSS prepocessors and things such as coffee script but for this tutorial we are keeping it simple.</p><p></p><p></p><p style="text-align: center"><strong><span style="font-size: 26px">Setting Up</span></strong></p><p>You have got some basic knowledge of various components and terminology of the web now it's time to setup your workstation.</p><p>There are many different softwares and IDE's (Integrated Development Environments) out there that can make your life easier as you code but for this tutorial we are keeping it simple and i would suggest either of the following as good basic software's to kick start your coding experience.</p><ul> <li data-xf-list-type="ul"><a href="https://notepad-plus-plus.org/download/v7.5.5.html" target="_blank">Notepad++</a> Not much to say about this peice of software, well known, simple, basic and free - what more can you want, perfect for a beginner. </li> <li data-xf-list-type="ul"><a href="http://brackets.io/" target="_blank">Brackets</a> A fantastic peice of software for when you are learning with many great features and it's also free like notepad++ which makes it a good alternative for those wanting something a little bit more advanced than notepad++ but still flexible. Brackets is made by Adobe also.</li> <li data-xf-list-type="ul">WAMP or XAMPP webserver is recommended for when you want to upgrade from just running files from your C://Users/ path or wherever your website is located. XAMPP is free and will allow you to code PHP and also provides a lot of great features and includes mySQL also for when you get into databases (Hopefully)! But for this tutorial we will not be covering it.</li> </ul><p></p><p></p><p style="text-align: center"><span style="font-size: 26px"><strong>Creating your first page</strong></span></p><p><span style="font-size: 15px">So it's finally time to create your first page after the long wait. So first your going to want to open up notepad++ and paste the following lines into your file:</span></p><p>[HTML]<!DOCTYPE html></p><p><html> </p><p> <head></p><p> <title>Page Title</title></p><p> </head></p><p><body></p><p></p><p><p> Hello World, this is my first page! </p></p><p></p><p></body></p><p></html>[/HTML]</p><p></p><p><strong>Next save your file as a .html file to a location of your choice.</strong></p><p>So i know what your thinking, you want to know what all of this does?</p><p></p><p>[SPOILER="Explanation"]<strong>1.</strong> First we start by declaring the document as a HTML file, we are using the latest HTML5 version in this case. (Remember that neat code is good code and you should <strong>always use the correct capitalization</strong>, "!DOCTYPE html" not "!doctype HTML" or "!doctype html".</p><p></p><p><strong>2.</strong> Next we open our page with a HTML tag.</p><p></p><p><strong>3.</strong> We then open our first head tag which is where all the important things go which we want to ensure are loaded into the document first. In this case we are using the title tag to display the title of the page which is what will show in the tab at the top of your browser, on top of this if your website were to be online google will show the page title on there results with the content from your title tag so ensure it is relevant to your website! <strong>Always remember to close your tags <title> is closed with </title> and <head> is closed with </head>.</strong></p><p><strong></strong></p><p><strong>4. </strong>We open the body tag which is where all your website content is going to go when we create the website. Within this tag you see the line "<p> Hello World, this is my first page! </p>. The p is a HTML tag, it means paragraph, by using this tag we are saying that the text within the p tag is a paragraph of text and is to be displayed as such.</p><p></p><p><strong>5.</strong> Finally we close the rest of the tags off to keep it all neat, tidy and compliant.[/SPOILER]</p><p></p><p></p><p style="text-align: center"><strong><span style="font-size: 26px">Styling your tag</span></strong></p><p>Now there is 3 types of CSS we can use to style this p tag which we have created.</p><ul> <li data-xf-list-type="ul">Inline CSS</li> <li data-xf-list-type="ul">External CSS Sheet</li> <li data-xf-list-type="ul">Embedded CSS</li> </ul><p>Now let's find out what these types are.</p><p></p><p><strong>Inline CSS</strong> is used within a tag to style it specifically, for instance. <strong><p style="color:green;"> <span style="color: #00b359">Hey</span> </p></strong>. The text within this paragraph tag which we learn't about earlier would be the color green.</p><p></p><p><strong>External CSS</strong> sheet/sheets would be linked into your document with the line <strong><link rel="stylesheet" type="text/css" href="/css/styles.css"/></strong></p><p>Now the href tag can be any path or directory that contains your css sheet you wish to use. In order to create the CSS sheet you would need to create a new file name it whatever you want and then make sure to use the extension .css for this example we are using<strong> "styles.css".</strong></p><p><strong></strong></p><p><strong>Embedded CSS </strong>which is put into your webpage using the tags <strong><style></strong> and <strong></style></strong> this is what we will be using for this example due to ease of use.</p><p></p><p>So moving foward within your HTML file we created earlier place a set of <style> tags within your head tags. You should end up with something like this.</p><p>[HTML]<!DOCTYPE html></p><p><html> </p><p> <head></p><p> <title>Page Title</title></p><p> </head></p><p> <style></p><p></p><p> </style></p><p><body></p><p></p><p><p> Hello World, this is my first page! </p></p><p></p><p></body></p><p></html>[/HTML]</p><p></p><p>Within these style tags we are going to place the code: <strong>p{color:red;} </strong>save the file and then navigate to our .HTML file and open it in our web browser, you should now see that the text we created earlier is a red color.</p><p>Now you will notice that it may be a different type of red to what you wanted and that is because you are just using the color "red" this is the default or standard color that your browser interprets to be red and is displayed on your monitor however your monitor interprets it, some monitors have more accurate color such as Adobe or SRGB Colour Accuracy.</p><p></p><p>Now i know this guide was very basic but that is because you cannot learn unless you practice practice and practice.</p><p>For that reason i am going to set a few little tasks for you to try figure out how to do yourself.</p><p></p><ul> <li data-xf-list-type="ul">Change the font size of your paragraph text to 50px and make it so it is bold and underlined.</li> <li data-xf-list-type="ul">Change the background color of your website to a light grey.</li> <li data-xf-list-type="ul">Add an image of your choice to your web page.</li> <li data-xf-list-type="ul">Display all 6 headers, <h1> through to <h6> on your web-page.</li> <li data-xf-list-type="ul">Try using all 3 types of CSS usage within your document.</li> </ul><p></p><p>Happy Coding and thanks for reading!</p><p></p><p></p><p></p><p><strong></strong></p><p><strong></strong></p></blockquote><p></p>
[QUOTE="ssssssdforgotpass, post: 429365, member: 79757"] Okay so this tutorial is made for all of you out there who want to "get gud" at front-end web design. For this tutorial we will [B]not [/B]be including information on how to code the back-end of a website. [CENTER][B][SIZE=7]Terminology Dictionary[/SIZE][/B][/CENTER] [B][COLOR=#00b359]Front-end[/COLOR][/B] - The design and layout of the website incorporating languages such as [B]HTML[/B], [B]CSS[/B], and on a more advanced level, [B]jQuery[/B] or [B]Javascript [/B]perhaps even [B]AJAX[/B]. [B][COLOR=#00b359]Back-end[/COLOR][/B] - The back-end of a website usually refers to a website using things such as PHP, database functionality ([B]mySQL[/B], [B]mySQLi[/B] or [B]PDO[/B]) among other things. If you only create website front-ends you are usually referred to as a "[B]Designer[/B]" if you do back-end work you may be referred to as a "[B]Developer[/B]" and if you do both this is commonly known as a "[B]Stack Developer[/B]". [B][COLOR=#00b359]Framework[/COLOR][/B] - A framework usually refers to a set of components that have been thrown together into a package and then used by people to create websites with ease and simplicity. These are fantastic for a learner because ultimately you can get to understand how simple web design can be without implementing these components yourself, and at the same time you can modify and edit the existing code to understand how you can create your own unique things. [B][COLOR=#00b359]CSS[/COLOR] - [/B]CSS stands for Cascading Style Sheet. These CSS files will normally always use the extension of "[B].CSS[/B]". This extension identifies the file as containing CSS which will be used to style the HTML markup which is on your page. CSS sheets will sometimes use the name of "[B].min.css[/B]" this is simply a personal choice and means that the contents of that file have been "[B]Minified[/B]" which is done usually for speed as all the excess "white-space" and characters are removed, but occasionally CSS is minified because it makes it harder to edit if it were to be copied or stolen from a website although there is really no reason to worry about this. [B][COLOR=#00b359]HTML[/COLOR][/B] - HTML stands for "[B]Hyper Text Markup Language[/B]" and is used to tell the browser how it will display components on the web-page and how they will be shown and layed out. HTML is used in conjunction with CSS which then styles the elements which is how websites have different appearances and looks. HTML files will often use the extension "[B].html[/B]" or "[B].htm[/B]". [B][COLOR=#00b359]Javascript[/COLOR][/B] - Javascript of "[B]JS[/B]" is a scripting language that allows web-pages to become "[B]dynamic[/B]". JavaScript can be used for many advanced things or simple things such as drop down menus in navigation bars or to change a colour of an element when it is hovered over. We won't go to much into detail on this language but it is worth learning if you are serious about web design even though most things can now be done in CSS alone with the introduction of things such as CSS Transitions. JS files use the extension "[B].js[/B]". [B]Note[/B]: There is more we could go into such as CSS prepocessors and things such as coffee script but for this tutorial we are keeping it simple. [CENTER][B][SIZE=7]Setting Up[/SIZE][/B][/CENTER] You have got some basic knowledge of various components and terminology of the web now it's time to setup your workstation. There are many different softwares and IDE's (Integrated Development Environments) out there that can make your life easier as you code but for this tutorial we are keeping it simple and i would suggest either of the following as good basic software's to kick start your coding experience. [LIST] [*][URL='https://notepad-plus-plus.org/download/v7.5.5.html']Notepad++[/URL] Not much to say about this peice of software, well known, simple, basic and free - what more can you want, perfect for a beginner. [*][URL='http://brackets.io/']Brackets[/URL] A fantastic peice of software for when you are learning with many great features and it's also free like notepad++ which makes it a good alternative for those wanting something a little bit more advanced than notepad++ but still flexible. Brackets is made by Adobe also. [*]WAMP or XAMPP webserver is recommended for when you want to upgrade from just running files from your C://Users/ path or wherever your website is located. XAMPP is free and will allow you to code PHP and also provides a lot of great features and includes mySQL also for when you get into databases (Hopefully)! But for this tutorial we will not be covering it. [/LIST] [CENTER][SIZE=7][B]Creating your first page[/B][/SIZE][/CENTER] [SIZE=4]So it's finally time to create your first page after the long wait. So first your going to want to open up notepad++ and paste the following lines into your file:[/SIZE] [HTML]<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <p> Hello World, this is my first page! </p> </body> </html>[/HTML] [B]Next save your file as a .html file to a location of your choice.[/B] So i know what your thinking, you want to know what all of this does? [SPOILER="Explanation"][B]1.[/B] First we start by declaring the document as a HTML file, we are using the latest HTML5 version in this case. (Remember that neat code is good code and you should [B]always use the correct capitalization[/B], "!DOCTYPE html" not "!doctype HTML" or "!doctype html". [B]2.[/B] Next we open our page with a HTML tag. [B]3.[/B] We then open our first head tag which is where all the important things go which we want to ensure are loaded into the document first. In this case we are using the title tag to display the title of the page which is what will show in the tab at the top of your browser, on top of this if your website were to be online google will show the page title on there results with the content from your title tag so ensure it is relevant to your website! [B]Always remember to close your tags <title> is closed with </title> and <head> is closed with </head>. 4. [/B]We open the body tag which is where all your website content is going to go when we create the website. Within this tag you see the line "<p> Hello World, this is my first page! </p>. The p is a HTML tag, it means paragraph, by using this tag we are saying that the text within the p tag is a paragraph of text and is to be displayed as such. [B]5.[/B] Finally we close the rest of the tags off to keep it all neat, tidy and compliant.[/SPOILER] [CENTER][B][SIZE=7]Styling your tag[/SIZE][/B][/CENTER] Now there is 3 types of CSS we can use to style this p tag which we have created. [LIST] [*]Inline CSS [*]External CSS Sheet [*]Embedded CSS [/LIST] Now let's find out what these types are. [B]Inline CSS[/B] is used within a tag to style it specifically, for instance. [B]<p style="color:green;"> [COLOR=#00b359]Hey[/COLOR] </p>[/B]. The text within this paragraph tag which we learn't about earlier would be the color green. [B]External CSS[/B] sheet/sheets would be linked into your document with the line [B]<link rel="stylesheet" type="text/css" href="/css/styles.css"/>[/B] Now the href tag can be any path or directory that contains your css sheet you wish to use. In order to create the CSS sheet you would need to create a new file name it whatever you want and then make sure to use the extension .css for this example we are using[B] "styles.css". Embedded CSS [/B]which is put into your webpage using the tags [B]<style>[/B] and [B]</style>[/B] this is what we will be using for this example due to ease of use. So moving foward within your HTML file we created earlier place a set of <style> tags within your head tags. You should end up with something like this. [HTML]<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <style> </style> <body> <p> Hello World, this is my first page! </p> </body> </html>[/HTML] Within these style tags we are going to place the code: [B]p{color:red;} [/B]save the file[B] [/B]and then navigate to our .HTML file and open it in our web browser, you should now see that the text we created earlier is a red color. Now you will notice that it may be a different type of red to what you wanted and that is because you are just using the color "red" this is the default or standard color that your browser interprets to be red and is displayed on your monitor however your monitor interprets it, some monitors have more accurate color such as Adobe or SRGB Colour Accuracy. Now i know this guide was very basic but that is because you cannot learn unless you practice practice and practice. For that reason i am going to set a few little tasks for you to try figure out how to do yourself. [LIST] [*]Change the font size of your paragraph text to 50px and make it so it is bold and underlined. [*]Change the background color of your website to a light grey. [*]Add an image of your choice to your web page. [*]Display all 6 headers, <h1> through to <h6> on your web-page. [*]Try using all 3 types of CSS usage within your document. [/LIST] Happy Coding and thanks for reading! [B] [/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Tutorials
How to get gud at front-end and start your path to greatness (or something)
Top