{"id":4855,"date":"2020-10-12T22:02:20","date_gmt":"2020-10-12T22:02:20","guid":{"rendered":"http:\/\/sites.la.utexas.edu\/kb\/?p=4855"},"modified":"2021-09-09T14:32:58","modified_gmt":"2021-09-09T14:32:58","slug":"basic-training-html-css-and-javascript","status":"publish","type":"post","link":"http:\/\/sites.la.utexas.edu\/kb\/2020\/10\/12\/basic-training-html-css-and-javascript\/","title":{"rendered":"[Archived] Basic Training: HTML and CSS"},"content":{"rendered":"\n<p>In this training you will be introduced to HTML, CSS, and JavaScript, the languages that can be used as tools to help you develop simple websites.<\/p>\n\n\n\n<p>This training is quite involved and can be frustrated or confusing, so be sure to reach out to a team lead whenever you encounter any issues or have questions. Good luck :). <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">HTML<\/h3>\n\n\n\n<p>HTML stands for Hypertext Markup Language, and it is the standard markup language for documents to be displayed in a web browser.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n\n\n\n<p>CSS stands for Cascade Style Sheets, and it is a style sheet language used for describing the presentations of HTML. In other words, CSS is used to style the written HTML.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">JavaScript<\/h3>\n\n\n\n<p>JavaScript of JS is a client-side programming language that assists HTML and CSS in adding logic to the site.<\/p>\n\n\n\n<p>In this training you will not be actively writing JS, as the focus of the training is HTML and CSS, however you can reuse JS code elsewhere to implement some of your HTML and CSS functionalities.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setup<\/h2>\n\n\n\n<p>Before you begin the training, you will need to set up your workspace. A team lead will most likely walk you through this initial setup, however if you&#8217;ve had experiences with ssh you are welcome to set up on your own :).<\/p>\n\n\n\n<p>First, download an IDE if you don&#8217;t already have one. IDE is an Integrated Development Environment that aides the process of writing code (i.e. color code, auto-completion, etc.). If you&#8217;ve seen developers write code that has a lot of colored-text, that&#8217;s most likely displayed in an IDE.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>VSCode by Microsoft is one of the most popular IDE. You can download it here <a rel=\"noreferrer noopener\" href=\"https:\/\/code.visualstudio.com\/\" data-type=\"URL\" data-id=\"https:\/\/code.visualstudio.com\/\" target=\"_blank\">https:\/\/code.visualstudio.com\/<\/a>.<\/li><li>Please note that there are other IDEs out there that will do the job as well, however because we will be viewing the website through LAITS&#8217; server, we will need to ssh into the LAITS server and write our code there.<\/li><\/ul>\n\n\n\n<p>From here, there are two ways you can work on this training. You can either ssh into the server and work directly from there, or create local files on your computer and transfer them to the server later. Please check in with a team lead to choose the method accordingly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Work Directly on the Server with SSH<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Connect to the UT VPN. If you need help to get this set up, please refer to this documentation here <a href=\"https:\/\/liberalarts.utexas.edu\/web-admin-help\/how-to-use-cascade\/how-to-log-in.php\">https:\/\/liberalarts.utexas.edu\/web-admin-help\/how-to-use-cascade\/how-to-log-in.php<\/a>.<\/li><li>Launched VSCode. Install the ssh extension.<ul><li>Click on this icon to the left to open the extensions explorer.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.21.38-PM.png\" class=\"wp-image-4864\" alt=\"\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.21.38-PM.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.21.38-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.21.38-PM-768x575.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>In the search bar, type &#8220;ssh&#8221; and click on the Remote &#8211; SSH extension.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1023\" height=\"767\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.23.22-PM.png\" class=\"wp-image-4865\" alt=\"\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.23.22-PM.png 1023w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.23.22-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.23.22-PM-768x576.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/figure><\/li><li>Install that extension. <\/li><\/ul><\/li><li>Configure Remote SSH<ul><li>Click on the SSH icon (looks like &gt;&lt;) on the bottom left corner of the VSCode window. If you don&#8217;t see this icon, close VSCode and relaunch it. <br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1023\" height=\"768\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.30.48-PM.png\" alt=\"\" class=\"wp-image-4867\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.30.48-PM.png 1023w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.30.48-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.30.48-PM-768x577.png 768w\" sizes=\"auto, (max-width: 1023px) 100vw, 1023px\" \/><\/figure><\/li><li>A dropdown will appear at the top of the VSCode window. Choose &#8220;Open Configuration File.&#8221;<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"770\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.34.01-PM.png\" alt=\"\" class=\"wp-image-4869\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.34.01-PM.png 1022w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.34.01-PM-300x226.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.34.01-PM-768x579.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure><\/li><li>Edit the configuration file. The path will look a little different on your computer, but it should look something similar to [some-path]\/.ssh\/config. Click on that file. For reference, mine looks like this.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"770\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.12-PM.png\" alt=\"\" class=\"wp-image-4872\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.12-PM.png 1025w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.12-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.12-PM-768x577.png 768w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/figure><\/li><li>After clicking on it, paste in this configuration format and replace the text after User with your EID.<br><pre class=\"wp-block-preformatted\">Host file.laits.utexas.edu<br>   HostName file.laits.utexas.edu<br>   User [replace this text and brackets with your eid]<br>   ForwardX11 yes<\/pre><\/li><li>Your config file should look something like this.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"768\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.59-PM.png\" alt=\"\" class=\"wp-image-4873\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.59-PM.png 1025w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.59-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.44.59-PM-768x575.png 768w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/figure><\/li><li>Save and close the file. Click on the Remote SSH icon in the bottom left of the screen again. Click &#8220;Remote SSH: Connect to Host,&#8221; then choose &#8220;files.laits.utexas.edu.&#8221; You will be prompted to enter your password. Please enter the password to your UTEID. You will do this every time you begin the training.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.04-PM-1024x768.png\" alt=\"\" class=\"wp-image-4874\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.04-PM-1024x768.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.04-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.04-PM-768x576.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.04-PM.png 1026w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"768\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.53-PM.png\" alt=\"\" class=\"wp-image-4875\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.53-PM.png 1025w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.53-PM-300x225.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-12-at-4.51.53-PM-768x575.png 768w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/figure><\/li><\/ul><\/li><li>Set up the public_html folder.<ul><li>In VSCode, click Ctrl \/ Cmd + O. Navigate to your folder. Type in the path to your folder. It should be<br><code>\/mnt\/home\/[your-EID]<\/code><br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"312\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.17.36-AM.png\" alt=\"\" class=\"wp-image-4878\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.17.36-AM.png 602w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.17.36-AM-300x155.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure><\/li><li>Click &#8220;OK.&#8221;<\/li><li>On the top toolbar of VSCode, click Terminal &gt; New Terminal.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"814\" height=\"370\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.20.15-AM.png\" alt=\"\" class=\"wp-image-4880\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.20.15-AM.png 814w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.20.15-AM-300x136.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.20.15-AM-768x349.png 768w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/figure><\/li><li>A terminal window will pop up at the bottom like this.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.21.48-AM-1024x578.png\" alt=\"\" class=\"wp-image-4882\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.21.48-AM-1024x578.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.21.48-AM-300x169.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.21.48-AM-768x433.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.21.48-AM-1536x867.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.21.48-AM.png 1914w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Click on the terminal window. Now type in these exact same command. Hit Return \/ Enter after each command. Please be extra cautious when doing this so that you do not affect other folders \/ files.<br><code>mkdir public_html<\/code><br><code>cd ..<\/code><br><code>chmod 755 [your-EID]<\/code><br><code>chmod 755<\/code> <code>[your-EID]\/public_html<\/code><br><code>cd [your-eid]\/public_html<\/code><br>The last 4 commands look like this. Make sure you do the first command (mkdir public_html) as well.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"168\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.41.24-AM-1024x168.png\" alt=\"\" class=\"wp-image-4885\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.41.24-AM-1024x168.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.41.24-AM-300x49.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.41.24-AM-768x126.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.41.24-AM-1536x252.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.41.24-AM.png 1684w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Now click on the File icon to the top left to toggle the File tab.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.43.32-AM-1024x578.png\" alt=\"\" class=\"wp-image-4887\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.43.32-AM-1024x578.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.43.32-AM-300x169.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.43.32-AM-768x433.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.43.32-AM-1536x866.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.43.32-AM.png 1915w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Ctrl \/ Cmd + N &gt; Ctrl \/ Cmd + S and save the new file as index.html. Make sure your file path looks like this. Click &#8220;OK.&#8221;<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"85\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.47.06-AM.png\" alt=\"\" class=\"wp-image-4888\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.47.06-AM.png 602w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-11.47.06-AM-300x42.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure><\/li><li>Now you&#8217;re all set to start writing your HTML, CSS, and JavaScript.<\/li><\/ul><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Edit Local Files<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Create a new folder named &#8220;public_html&#8221; on your computer. This will be where you put all of your files for this training. Make sure you remember where you put it.<br><figure class=\"wp-block-image size-large\"><\/li><li>Open VSCode. Cmd \/ Ctrl + O and open the folder you just organized. This is just like opening up a file on your computer.<\/li><li>Ctrl \/ Cmd + N &gt; Ctrl \/ Cmd + S to create a new file and Save. Save it as &#8220;index.html&#8221;<\/li><li>Now you can see your changes on the\u00a0<strong>local\u00a0<\/strong>url on the browser. So for example, I saved my index.html under the directory \/Users\/nhaithuy\/UT Austin\/STA\/Basic Training\/HTML-CSS-Test\/index.html, so my browser url looks like this.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/11\/screenshot2-1024x557.png\" alt=\"\" class=\"wp-image-5493\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/11\/screenshot2-1024x557.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/11\/screenshot2-300x163.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/11\/screenshot2-768x418.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/11\/screenshot2-1536x836.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/11\/screenshot2.png 1862w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Every time you write new code, just refresh the page and it should work. If you don\u2019t see the changes, try hard refreshing (Cmd \/ Ctrl + Shift + R) to prevent browser caching. <\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Writing HTML<\/h2>\n\n\n\n<p>HTML is a markup language, meaning that it uses tags to define the elements displayed, and the tags themselves are not displayed. For example, an HTML p tag displays a paragraph. <\/p>\n\n\n\n<p>Most HTML tags come in pairs. To begin a tag, type <code>&lt;[tag-name]&gt;<\/code>. To end a tag, type <code>&lt;\/[tag-name]&gt;<\/code>.<\/p>\n\n\n\n<p>For example, for the p tag:<br><code>&lt;p&gt;This is a paragraph&lt;\/p&gt;<\/code><\/p>\n\n\n\n<p>Don&#8217;t worry if this seems confusing, you&#8217;ll get a hang of it as you work on this training.<\/p>\n\n\n\n<p>To start, place this code below to your HTML file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html&gt;\n\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\"&gt;\n\n  &lt;title&gt;HTML \/ CSS Training Test Site&lt;\/title&gt;\n\n&lt;\/head&gt;\n\n&lt;body&gt;\n  &lt;!-- your code will go here --&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>It should look like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"933\" height=\"256\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.17.37-PM.png\" alt=\"\" class=\"wp-image-4893\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.17.37-PM.png 933w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.17.37-PM-300x82.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.17.37-PM-768x211.png 768w\" sizes=\"auto, (max-width: 933px) 100vw, 933px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>In your browser, go to https:\/\/laits.utexas.edu\/~[your-eid]\/index.html (or, if you work on your local computer, Ctrl \/ Cmd + O, navigate to your public_html folder, and open up index.html) and make sure that there is a blank page (no errors). If there are any errors. please reach out to the training lead for help.<\/li><li>You will write your code between the <code>&lt;body&gt; &lt;\/body&gt;<\/code> tags. First, try:<br><code>&lt;h1&gt;This is a heading&lt;\/h1&gt;<\/code><br><code>&lt;p&gt;This is a paragraph. There should be some more text here. More text more text more text . . . &lt;\/p&gt;<\/code><br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"667\" height=\"298\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.30.40-PM.png\" alt=\"\" class=\"wp-image-4897\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.30.40-PM.png 667w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.30.40-PM-300x134.png 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/figure><\/li><li>Refresh your browser. You should see this.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.32.42-PM-1024x536.png\" alt=\"\" class=\"wp-image-4898\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.32.42-PM-1024x536.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.32.42-PM-300x157.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.32.42-PM-768x402.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.32.42-PM-1536x804.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.32.42-PM.png 1866w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Here&#8217;s a list of HTML tags for your reference <a href=\"https:\/\/www.w3schools.com\/tags\/default.asp\">https:\/\/www.w3schools.com\/tags\/default.asp<\/a>. Take a glance at it but don&#8217;t worry about knowing all of it. If you need to look up something you&#8217;d like to achieve on your site at anytime, you&#8217;re welcome to go back to the reference or simply Google what you want. Most likely, the ones you&#8217;d use the most are these listed below. Please read through their description on the HTML reference page:<ul><li><code>&lt;p&gt;&lt;\/p&gt;<\/code><\/li><li><code>&lt;h1&gt;&lt;\/h1&gt;<\/code>, or any of the numbered heading (<code>&lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, etc.<\/code>). The smaller the number, the smaller the header.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"270\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.39.28-PM.png\" alt=\"\" class=\"wp-image-4900\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.39.28-PM.png 722w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.39.28-PM-300x112.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/figure><\/li><li><code>&lt;img&gt;<\/code>. Notice that this one doesn&#8217;t have a closing tag<\/li><li><code>&lt;a&gt;&lt;\/a&gt;<\/code><\/li><li><code>&lt;div&gt;&lt;\/div&gt;<\/code><\/li><li><code>&lt;b&gt;&lt;\/b&gt;<\/code> and <code>&lt;i&gt;&lt;\/i&gt;<\/code><\/li><\/ul><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Simple Headings and Paragraphs<\/h3>\n\n\n\n<p>Start creating a few headings and paragraphs under each heading. Please have a minimum of 3 headings and 3 paragraphs. It should follow the format: heading &#8211; paragraph &#8211; heading &#8211; paragraph &#8211; and so on. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a&lt;h1&gt;Life of the Virtuoso&lt;\/h1&gt;\n  &lt;p&gt;Franz, or Ferencz Liszt, was a Hungarian composer, \nvirtuoso pianist,  conductor, teacher, arranger, and \norganist of the Romantic era. He was a prolific composer and \nwas one of the most prominent representatives of the New \nGerman School. Among Liszt's musical contributions were \nsymphonic poems, thematic transformation, and harmony \ninnovations.&lt;\/p&gt;\n\n  &lt;h1&gt;The Pianist&lt;\/h1&gt;\n  &lt;p&gt;Liszt was, no doubt, one of the greatest piano virtuoso \never lived. Carl Czerny, Liszt's teacher, claimed that Liszt \nwas a natural who played according to feeling, and reviews \nof his concerts especially praise the brilliance, strength, \nand precision. His ability to keep absolute tempo was also \nmentioned.&lt;\/p&gt;\n\n  &lt;h2&gt;Liszt's quote&lt;\/h2&gt;\n  &lt;p&gt;Mournful and yet grand is the destiny of the artist.&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p>Renders:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"188\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.52.56-PM-1024x188.png\" alt=\"\" class=\"wp-image-4902\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.52.56-PM-1024x188.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.52.56-PM-300x55.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.52.56-PM-768x141.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.52.56-PM-1536x282.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.52.56-PM.png 1849w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Have at least 3 bolded text and 3 italicized text. To do this, simply wrap the text you want bold or italicized in either <code>&lt;b&gt;&lt;\/b&gt;<\/code> or <code>&lt;i&gt;&lt;\/i&gt;<\/code> tags, respectively. For example:<br><code>&lt;p&gt;&lt;b&gt;Mournful&lt;\/b&gt; and yet &lt;b&gt;grand&lt;\/b&gt; is the &lt;i&gt;destiny&lt;i&gt; of the artist.&lt;\/p&gt;<\/code><br>becomes:<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"97\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.58.39-PM.png\" alt=\"\" class=\"wp-image-4904\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.58.39-PM.png 465w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-12.58.39-PM-300x63.png 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/figure><\/li><li>You can also nest HTML tags. For example, if you want text to be both bolded and italicized:<br><code>&lt;p&gt;&lt;i&gt;&lt;b&gt;Mournful&lt;\/b&gt; and yet &lt;b&gt;grand&lt;\/b&gt; is the destiny of the artist.&lt;\/i&gt;&lt;\/p&gt;<\/code><br>becomes:<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"104\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-1.25.47-PM.png\" alt=\"\" class=\"wp-image-4907\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-1.25.47-PM.png 534w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-1.25.47-PM-300x58.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/figure><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">The Div Tag<\/h3>\n\n\n\n<p>The <code>&lt;div&gt;&lt;\/div&gt;<\/code> is a very common and powerful element in HTML. It is essentially a boxed container for your content. It allows you to group elements and apply desired stylings for them. <\/p>\n\n\n\n<p>In this section, let&#8217;s practice creating a paragraph with a div. You&#8217;ll see that it looks just like the <code>&lt;p&gt;&lt;\/p&gt;<\/code> tag, but we&#8217;ll be applying styles to it later in the CSS section.<\/p>\n\n\n\n<p>Add a paragraph with the text of your choice anywhere on the page. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div&gt;Liszt was born in the village of Doborj\u00e1n in the \nKingdom of Hungary, Austrian Empire in 1811. Liszt's father \nplayed the piano, violin, cello, and guitar, and thus Liszt \nwas taught piano at the age of seven and began composing at \neight. After his concert debut at the age of nine, he was \nsponsored to study music in Vienna. Liszt moved to Paris \nstarting 1827, after his father's death. He gave piano \nlessons and composition lessons to earn money, often from \nearly morning until late at night. He took up smoking and \ndrinking, habits he would continue throughout his life.\n&lt;\/div&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"759\" height=\"776\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.42.30-PM.png\" alt=\"\" class=\"wp-image-4917\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.42.30-PM.png 759w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.42.30-PM-293x300.png 293w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/figure>\n\n\n\n<p>It renders out to:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"201\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.43.22-PM-1024x201.png\" alt=\"\" class=\"wp-image-4918\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.43.22-PM-1024x201.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.43.22-PM-300x59.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.43.22-PM-768x151.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.43.22-PM-1536x301.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-3.43.22-PM.png 1837w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-vivid-red-color\">Section Checklist: Did you . . .<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><span class=\"has-inline-color has-vivid-red-color\">Add at least 3 Headings and Paragraphs?<\/span><\/li><li><span class=\"has-inline-color has-vivid-red-color\">Add at least 3 Bolded text?<\/span><\/li><li><span class=\"has-inline-color has-vivid-red-color\">Add at least 3 Italicized text?<\/span><\/li><li><span class=\"has-inline-color has-vivid-red-color\">Add at least 1 paragraph using a Div element?<\/span><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Write CSS<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Create and Link the Stylesheet file<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Ctrl \/ Cmd + N to create a new file. Ctrl \/ Cmd + S and save it as &#8220;styles.css&#8221; within the public_html folder.<\/li><li>In your index.html, between the <code>&lt;head&gt;&lt;\/head&gt;<\/code> tags, place this code<br><code>&lt;link rel=\"stylesheet\" href=\".\/styles.css\"&gt;<\/code><br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"131\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-1.33.27-PM.png\" alt=\"\" class=\"wp-image-4910\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-1.33.27-PM.png 691w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-13-at-1.33.27-PM-300x57.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>This reads &#8220;link the stylesheet in the same folder (.\/ means same folder) which has the name of styles.css.&#8221;<\/li><li>Now let&#8217;s test that your CSS file was linked correctly. In that file &#8220;styles.css,&#8221; paste in this code (this will only be for testing, we&#8217;ll remove it later)<br><code>p {<\/code><br>    <code>color: red;<\/code><br><code>}<\/code><\/li><li>Save the file, and Refresh your browser. To prevent the browser from caching the old file, perform a hard refresh with Ctrl \/ Cmd + Shift + R.<\/li><li>Check that all of your <code>&lt;p&gt;&lt;\/p&gt;<\/code> elements are red.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"218\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.04.06-PM-1024x218.png\" alt=\"\" class=\"wp-image-4925\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.04.06-PM-1024x218.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.04.06-PM-300x64.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.04.06-PM-768x164.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.04.06-PM-1536x327.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.04.06-PM.png 1835w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><br>If it doesn&#8217;t change: <ul><li>Check that your linking path is correct<\/li><li>Check that &#8220;styles.css&#8221; is in the same folder as your &#8220;index.html&#8221;<\/li><\/ul><\/li><li>Now you can delete that code (if you wish) and apply your own stylings.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">CSS Selectors<\/h3>\n\n\n\n<p>In the above section, we &#8220;selected&#8221; all the <code>&lt;p&gt;&lt;\/p&gt;<\/code> elements on the page and gave it stylings. In this section, we&#8217;ll learn about different ways to &#8220;select&#8221; an HTML element and give it proper stylings.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CSS Element Selector<\/h4>\n\n\n\n<p>The way we were doing it before, typing:<br><code>p {<\/code><br><code>   color: red;<\/code><br><code>}<\/code><br>is called Element selector, in which we select all <code>&lt;p&gt;&lt;\/p&gt;<\/code> elements and apply stylings. Let&#8217;s practice using the CSS Selector.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Try changing color of all of your headers. For example:<br><code>h2 {<\/code><br><code>    color: #a62639;<\/code><br><code>}<\/code><br>changes the color of all the h2 headers into that HEX code, a crimson color.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"206\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.22.12-PM-1024x206.png\" alt=\"\" class=\"wp-image-4928\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.22.12-PM-1024x206.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.22.12-PM-300x60.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.22.12-PM-768x154.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.22.12-PM-1536x308.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-14-at-4.22.12-PM.png 1833w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Now try changing the font size of all your <code>&lt;p&gt;&lt;\/p&gt;<\/code> elements. In &#8220;styles.css,&#8221; try:<br><code>p {<\/code><br><code>    font-size: 18px;<\/code><br><code>} <\/code><br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"218\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.32.32-PM-1024x218.png\" alt=\"\" class=\"wp-image-5114\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.32.32-PM-1024x218.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.32.32-PM-300x64.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.32.32-PM-768x164.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.32.32-PM-1536x327.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.32.32-PM.png 1849w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Notice how the text in the <code>&lt;div&gt;&lt;\/div&gt;<\/code> elements are not affected. Guess what happen if you use the CSS element selector to select the <code>&lt;div&gt;&lt;\/div&gt;<\/code> tags?<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">CSS ID Selector<\/h4>\n\n\n\n<p>What if you want to apply stylings to <strong>a specific div <\/strong>element and not any div visible on the page? <\/p>\n\n\n\n<p>CSS ID Selector allows you to give your generic element a specific ID, so that every time you refer to that ID it is scoped to that element only. The HTML syntax for giving an element an ID is:<br><code>&lt;element id=\"[element-id]\"&gt;Some stuff&lt;\/element&gt;<\/code><br>So, for example, if you want to give a div an ID of &#8220;my-div,&#8221; you&#8217;d write:<br><code>&lt;div id=\"my-div\"&gt;My text here&lt;\/div&gt;<\/code><br>This applies to any element, and not just div. You can easily give an id to a header as well.<br><code>&lt;h2 id=\"my-header\"&gt;Title&lt;\/h2&gt;<\/code><\/p>\n\n\n\n<p>Now, in your CSS file, select that ID following this syntax:<br><code>#[element-id] {<\/code><br><code>    \/* some stylings here *\/<\/code><br><code>}<\/code><\/p>\n\n\n\n<p>So for example, to apply stylings to the div and header above:<br><code>#my-div {<\/code><br><code>     background-color: lightblue;<\/code><br><code>}<\/code><br><code>#my-header {<\/code><br><code>     font-style: italic;<\/code><br>}<\/p>\n\n\n\n<p>This HTML and CSS here:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<pre class=\"wp-block-code\"><code>&lt;h2 id=\"quote-header\"&gt;Liszt's quote&lt;\/h2&gt;\n  &lt;p&gt;&lt;i&gt;&lt;b&gt;Mournful&lt;\/b&gt; and yet \n&lt;b&gt;grand&lt;\/b&gt; is the destiny of the \nartist.&lt;\/i&gt;&lt;p&gt;\n\n  &lt;div id=\"childhood\"&gt;Liszt was born \nin the village of Doborj&amp;aacute;n in \nthe Kingdom of Hungary, Austrian \nEmpire in 1811. Liszt's father played \nthe piano, violin, cello, and guitar, \nand thus Liszt was taught piano at \nthe age of seven and began composing \nat eight. After his concert debut at \nthe age of nine, he was sponsored to \nstudy music in Vienna. Liszt moved to \nParis starting 1827, after his \nfather's death. He gave piano lessons \nand composition lessons to earn \nmoney, often from early morning until \nlate at night. He took up smoking and \ndrinking, habits he would continue \nthroughout his life.&lt;\/div&gt;<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<pre class=\"wp-block-code\"><code>#quote-header {\n    text-\ndecoration: underline;\n    font-style: \nitalic;\n}\n\n#childhood {\n    background-\ncolor: #a62639;\n    color: \nwhite;\n}<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<p>Gives this result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"95\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.59.45-PM-1024x95.png\" alt=\"\" class=\"wp-image-5120\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.59.45-PM-1024x95.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.59.45-PM-300x28.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.59.45-PM-768x71.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.59.45-PM-1536x143.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-19-at-4.59.45-PM.png 1850w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">CSS Class Selector<\/h4>\n\n\n\n<p>Similarly, what if you want to give the same stylings to <strong>a specific group <\/strong>of elements? The CSS class selector allows you to do that. The HTML syntax for giving an element a class is:<br><code>&lt;element class=\"[element-class]\"&gt;Some stuff&lt;\/element&gt;<\/code><br>For example, to give a class name to a div:<br><code>&lt;div class=\"my-div\"&gt;Some text&lt;\/div&gt;<\/code><br><code>&lt;div class=\"my-div\"&gt;Another text&lt;\/div&gt;<\/code><br>Or to an anchor tag:<br><code>&lt;a class=\"my-anchor\" href=\"my-url\"&gt;Hyperlinked Text&lt;\/a&gt;<\/code><\/p>\n\n\n\n<p>In your CSS file, select the class you want following this syntax:<br><code>.[element-class] {<\/code><br><code>    \/* some stylings here *\/<\/code><br><code>}<\/code><br>For example:<br><code>.my-div {<\/code><br><code>    border: 2px solid red;<\/code><br><code>    padding: 10px;<\/code><br><code>    margin: 10px;<\/code><br>}<\/p>\n\n\n\n<p>This HTML and CSS:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<pre class=\"wp-block-code\"><code>&lt;h2&gt;Life of the Virtuoso&lt;\/h2&gt;\n  &lt;p class=\"bordered-\nparagraph\"&gt;Franz, or Ferencz Liszt, \nwas a Hungarian composer, virtuoso \npianist,  conductor, teacher, \narranger, and organist of the \nRomantic era. He was a prolific \ncomposer and was one of the most \nprominent representatives of the New \nGerman School. Among Liszt's musical \ncontributions were symphonic poems, \nthematic transformation, and harmony \ninnovations.&lt;\/p&gt;\n\n  &lt;h2&gt;The Pianist&lt;\/h2&gt;\n  &lt;p class=\"bordered-paragraph\"&gt;Liszt \nwas, no doubt, one of the greatest \npiano virtuoso ever lived. Carl \nCzerny, Liszt's teacher, claimed that \nLiszt was a ntural who played \naccording to feeling, and reviews of \nhis concerts especially praise the \nbrilliance, strength, and precision. \nHis ability to keep absolute tempo \nwas also mentioned.&lt;\/p&gt;<\/code><\/pre>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<pre class=\"wp-block-code\"><code>.bordered-paragraph {\n    border: 2px solid #a62639;\n    padding: 10px;\n    margin: 10px;\n}<\/code><\/pre>\n<\/div>\n<\/div>\n\n\n\n<p>Gives this result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"156\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.18.44-AM-1024x156.png\" alt=\"\" class=\"wp-image-5126\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.18.44-AM-1024x156.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.18.44-AM-300x46.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.18.44-AM-768x117.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.18.44-AM-1536x233.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.18.44-AM.png 1836w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now practice using all 3 types of CSS Selectors on your site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-vivid-red-color\">Section Checklist: Did you . . .<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><span class=\"has-inline-color has-vivid-red-color\">Use the CSS Element Selector?<\/span><\/li><li><span class=\"has-inline-color has-vivid-red-color\">Use the CSS ID Selector?<\/span><\/li><li><span class=\"has-inline-color has-vivid-red-color\">Use the CSS Class Selector?<\/span><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Housekeeping Practices and Miscellaneous Information<\/h2>\n\n\n\n<p>When writing HTML \/ CSS or any code, it is good practice to comment your code as you go. This will not only help with your logic and organization, but also for the person reading \/ modifying it.<\/p>\n\n\n\n<p>The syntax for writing comments in HTML is:<br><code>&lt;!-- your comment here --&gt;<\/code><br>For example:<br><code>&lt;!-- start of my hyperlinks --&gt;<\/code><br><code>&lt;a href=\"url-1\" target=\"blank\"&gt;Link 1&lt;\/a&gt;<\/code><br><code>&lt;a href=\"url-2\" target=\"blank\"&gt;Link 2&lt;\/a&gt;<\/code><br><code>&lt;a href=\"url-3\" target=\"blank\"&gt;Link 3&lt;\/a&gt;<\/code><br><code>&lt;!-- end of my hyperlinks --&gt;<\/code><\/p>\n\n\n\n<p>The syntax for writing comments in CSS is:<br><code>\/* your comment here *\/<\/code><br>For example:<br><code>\/* styles for my footer *\/<\/code><br><code>.branding {<\/code><br><code>    width: 200px;<\/code><br><code>    margin: 30px; \/* gives it some white space *\/<\/code><br><code>}<\/code><br><code>\/* end styles for my footer *\/<\/code><\/p>\n\n\n\n<p>The syntax for writing comments in JS is:<br><code>\/\/ your comment here<\/code><br>For example:<br><code>\/\/ start code for the accordion<\/code><br><code>function myAccordion() {<\/code><br><code>    document.getElementById(\"accordion\");<\/code><br><code>    \/\/ do more stuff<\/code><br><code>};<\/code><\/p>\n\n\n\n<p>In VSCode, the shorthand for comment is Ctrl \/ Cmd + \/ <\/p>\n\n\n\n<p>In addition, the Browser Inspect tool will be very helpful in helping you design your site. When you run into any trouble (i.e. something not showing up correctly), this should be the first place to refer to. Please read through Part 1 of this training here <a href=\"http:\/\/sites.la.utexas.edu\/kb\/2020\/07\/29\/how-to-create-a-clio-course-module-part-2\/\">http:\/\/sites.la.utexas.edu\/kb\/2020\/07\/29\/how-to-create-a-clio-course-module-part-2\/<\/a> to familiarize yourself with this tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Template Prep<\/h2>\n\n\n\n<p>Now go this this link <a href=\"https:\/\/utexas.box.com\/s\/qxy46gl2nyx42zf5g9xviycfs6ld22hh\">https:\/\/utexas.box.com\/s\/qxy46gl2nyx42zf5g9xviycfs6ld22hh<\/a> and download the two template HTML and CSS files as well as the entire assets folder. <\/p>\n\n\n\n<p>If you choose to work on your local computer, place all of these downloaded item into your public_html folder. <\/p>\n\n\n\n<p>If you choose to work on the server with ssh, you will be using <code>scp<\/code> command to secure copy all of these into your server space. <strong>Please reach out to a team lead to complete this step.<\/strong><\/p>\n\n\n\n<p>Here are the commands to copy a local file or folder to a remote:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;in your local directory with the files \/ folder]\nscp -r .\/assets &#091;your-eid]@file.laits.utexas.edu:\/mnt\/home\/\n&#091;your-eid]\/public_html\n&#091;enter password]\nscp .\/template.html &#091;your-eid]@file.laits.utexas.edu:\/mnt\/\nhome\/&#091;your-eid]\/public_html\n&#091;emter password]\nscp .\/template.css &#091;your-eid]@file.laits.utexas.edu:\/mnt\/\nhome\/&#091;your-eid]\/public_html\n&#091;emter password]<\/code><\/pre>\n\n\n\n<p>Check that the HTML page rendered at https:\/\/laits.utexas.edu\/~[your-eid]\/template\/html  (or \/[your-local-url]\/template.html looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.58.52-AM-1024x542.png\" alt=\"\" class=\"wp-image-5134\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.58.52-AM-1024x542.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.58.52-AM-300x159.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.58.52-AM-768x406.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.58.52-AM-1536x812.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-20-at-11.58.52-AM.png 1836w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Designing Your Site<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Tab 1: Simple Text and Headers<\/h3>\n\n\n\n<p>You can go ahead and get started on designing your site! Using what you&#8217;ve learned so far, design the first tab with simple text and headers. Include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>At least 2 headers<\/li><li>At least 2 paragraphs<\/li><\/ul>\n\n\n\n<p>(You can also use the practice you&#8217;ve done earlier and paste it in!) Be sure to also utilize CSS to style your headers and paragraphs accordingly. Here&#8217;s my site to get you started: <a href=\"https:\/\/laits.utexas.edu\/~thn556\/index.html\">https:\/\/laits.utexas.edu\/~thn556\/index.html<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Switching Tabs<\/h3>\n\n\n\n<p>Let&#8217;s create new pages for your Tab 2 and Tab 3. Navigate to the nav bar section of your template.html and make this change:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- nav bar --&gt;\n    &lt;div id=\"nav-bar\"&gt;\n        &lt;div class=\"nav-item active\"&gt;\n            &lt;!-- # means link to itself --&gt;\n            &lt;a href=\"#\"&gt;Tab 1&lt;\/a&gt;\n        &lt;\/div&gt;\n        &lt;div class=\"nav-item\"&gt;\n            &lt;!-- we want to link it to tab2.html --&gt;\n            &lt;!-- .\/ means in the same folder --&gt;\n            &lt;!-- which is public_html is this case --&gt;\n            &lt;a href=\".\/tab2.html\"&gt;Tab 2&lt;\/a&gt;\n        &lt;\/div&gt;\n        &lt;div class=\"nav-item\"&gt;\n            &lt;a href=\".\/tab3.html\"&gt;Tab 3&lt;\/a&gt;\n        &lt;\/div&gt;\n    &lt;\/div&gt;\n&lt;!-- end nav bar --&gt;<\/code><\/pre>\n\n\n\n<p>Create 2 new files named &#8220;tab2.html&#8221; and &#8220;tab3.html&#8221; in public_html. Then copy the same HTML skeleton from template.html. Refresh the page. Now you&#8217;ll have your tabs linking to different pages. You might see that the page looks the same because you copy the skeleton over, but check the URL:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When you click on Tab 2 <strong>from Tab 1<\/strong> the URL should be https:\/\/laits.utexas.edu\/~[your-eid]\/tab2.html<\/li><li>When you click on Tab 3 <strong>from Tab 1 <\/strong>the URL should be https:\/\/laits.utexas.edu\/~[your-eid]\/tab2.html<\/li><\/ul>\n\n\n\n<p>You do need to go inside tab2.html and tab3.html to change the <code>href<\/code> attribute to direct to the right page. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When on Tab 1<ul><li>Clicking on <strong>Tab 1<\/strong> will direct to itself, hence <code>href=\"#\"<\/code><\/li><li>Clicking on <strong>Tab 2<\/strong> will direct to tab2.html, <code>href=\"tab2.html\"<\/code><\/li><li>Clicking on <strong>Tab 3<\/strong> will direct to tab3.html, <code>href=\"tab3.html\"<\/code><\/li><\/ul><\/li><li>When on Tab 2<ul><li>Clicking on <strong>Tab 1<\/strong> will direct to template.html, <code>href=\"template.html\"<\/code><\/li><li>Clicking on <strong>Tab 2<\/strong> will direct to itself, hence <code>href=\"#\"<\/code><\/li><li>Clicking on <strong>Tab 3<\/strong> will direct to tab3.html, <code>href=\"tab3.html\"<\/code><\/li><\/ul><\/li><li>When on Tab 3<ul><li>Clicking on <strong>Tab 1<\/strong> will direct to template.html, <code>href=\"template.html\"<\/code><\/li><li>Clicking on <strong>Tab 2<\/strong> will direct to tab2.html hence <code>href=\"tab2.html\"<\/code><\/li><li>Clicking on <strong>Tab <\/strong>3 will direct to itself, hence <code>href=\"#\"<\/code><\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Tab 2: Intermediate Content<\/h3>\n\n\n\n<p>In this tab you will explore more intermediate HTML and CSS content. Please <strong>pick 3<\/strong> challenges from the list of options below and incorporate it into your site. For each challenge, the resources for solving it will be included.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Incorporate left and right floating images<ul><li><a href=\"https:\/\/www.w3schools.com\/css\/css_float.asp\">https:\/\/www.w3schools.com\/css\/css_float.asp<\/a><\/li><\/ul><\/li><li>Formatting hyperlinks &#8211; buttons or text<ul><li><a href=\"https:\/\/www.w3schools.com\/css\/css_link.asp\">https:\/\/www.w3schools.com\/css\/css_link.asp<\/a><\/li><li>If you&#8217;re up for some animations (since these are quite elaborate, each of them can be counted as a separate challenge, so you can do all three of them and be done):<ul><li><a href=\"https:\/\/css-tricks.com\/4-ways-to-animate-the-color-of-a-text-link-on-hover\/\">https:\/\/css-tricks.com\/4-ways-to-animate-the-color-of-a-text-link-on-hover\/<\/a><\/li><li><a href=\"https:\/\/css-tricks.com\/having-fun-with-link-hover-effects\/\">https:\/\/css-tricks.com\/having-fun-with-link-hover-effects\/<\/a><\/li><li><a href=\"https:\/\/tobiasahlin.com\/blog\/css-trick-animating-link-underlines\/\">https:\/\/tobiasahlin.com\/blog\/css-trick-animating-link-underlines\/<\/a><\/li><\/ul><\/li><\/ul><\/li><li>Borders &#8211; buttons or text<ul><li><a href=\"https:\/\/www.w3schools.com\/css\/css_border.asp\">https:\/\/www.w3schools.com\/css\/css_border.asp<\/a><\/li><\/ul><\/li><li>Tables<ul><li><a href=\"https:\/\/www.w3schools.com\/html\/html_tables.asp\">https:\/\/www.w3schools.com\/html\/html_tables.asp<\/a><\/li><li><a href=\"https:\/\/www.w3schools.com\/css\/css_table.asp\">https:\/\/www.w3schools.com\/css\/css_table.asp<\/a><\/li><\/ul><\/li><li>Lists &#8211; ordered or unordered<ul><li><a href=\"https:\/\/www.w3schools.com\/html\/html_lists.asp\">https:\/\/www.w3schools.com\/html\/html_lists.asp<\/a><\/li><\/ul><\/li><li>Margins and Paddings<ul><li><a href=\"https:\/\/www.w3schools.com\/css\/css_margin.asp\">https:\/\/www.w3schools.com\/css\/css_margin.asp<\/a><\/li><li><a href=\"https:\/\/www.w3schools.com\/css\/css_padding.asp\">https:\/\/www.w3schools.com\/css\/css_padding.asp<\/a><\/li><\/ul><\/li><li>Embedding an Iframe<ul><li><a href=\"https:\/\/www.w3schools.com\/html\/html_iframe.asp\">https:\/\/www.w3schools.com\/html\/html_iframe.asp<\/a><\/li><\/ul><\/li><\/ol>\n\n\n\n<p>If you find something you&#8217;re interested in implementing, please feel free to propose it as your challenge as well! <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tab 3: Advanced Content<\/h3>\n\n\n\n<p>Congratulations on making it here! You&#8217;ve done a great job! Now, for the last section of this training, you will be exploring more challenging content in HTML, CSS, and a little bit of JavaScript. Like Tab 2, you will be presented with a few challenges that you are free to choose from, however some of the challenges will have instructions posted here!<\/p>\n\n\n\n<p>First, let&#8217;s set up your JavaScript file. Please note that you will not be required to write your own JS, as the focus of the training is on HTML and CSS, but you might need this file to reuse JS code from the resources to implement your desired look and functionality.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>In <code>public_html<\/code>, create a file called <code>global.js<\/code><br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"377\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.12.39-PM.png\" alt=\"\" class=\"wp-image-5200\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.12.39-PM.png 646w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.12.39-PM-300x175.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/figure><\/li><li>Link it to <strong>all<\/strong> of your HTML files you&#8217;ve created so far. Right before you close the <code>&lt;\/body&gt;<\/code> tag, add <code>&lt;script src=\".\/global.js\"&gt;&lt;\/script&gt;<\/code>. Make sure you copy this <code>&lt;script&gt;&lt;\/script&gt;<\/code> tag for <strong>every <\/strong>HTML files you&#8217;ve made so far.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"136\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.17.29-PM.png\" alt=\"\" class=\"wp-image-5204\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.17.29-PM.png 731w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.17.29-PM-300x56.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/figure><\/li><li>Check that the file is linked correctly. In <code>global.js<\/code>, type<br><code>console.log(\"File linked correctly!\");<\/code><br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"95\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.19.37-PM.png\" alt=\"\" class=\"wp-image-5206\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.19.37-PM.png 467w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.19.37-PM-300x61.png 300w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/figure><\/li><li>Now go to the browser and go to any of the HTML page you&#8217;ve made so far. Right click &gt; Inspect.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.22.47-PM-1024x567.png\" alt=\"\" class=\"wp-image-5207\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.22.47-PM-1024x567.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.22.47-PM-300x166.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.22.47-PM-768x425.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.22.47-PM-1536x850.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.22.47-PM-2048x1133.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>Click on the &#8220;Console&#8221; tab.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"570\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.23.59-PM-1024x570.png\" alt=\"\" class=\"wp-image-5208\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.23.59-PM-1024x570.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.23.59-PM-300x167.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.23.59-PM-768x428.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.23.59-PM-1536x855.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.23.59-PM-2048x1140.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li>If you see &#8220;File linked correctly,&#8221; you&#8217;ve successfully linked the JavaScript file. Otherwise, please reach out to a team lead.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.25.22-PM-1024x569.png\" alt=\"\" class=\"wp-image-5209\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.25.22-PM-1024x569.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.25.22-PM-300x167.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.25.22-PM-768x426.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.25.22-PM-1536x853.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.25.22-PM-2048x1137.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ol>\n\n\n\n<p>Here are the challenges. Please <strong>pick 3<\/strong> from the ones below, or propose your own. If you do decide to propose your own, please check with a team lead for approval:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Embedding a Google Font<ul><li>Refer to the &#8220;Embedding a Google Font&#8221; section in this training <a href=\"http:\/\/sites.la.utexas.edu\/kb\/2020\/07\/29\/how-to-create-a-clio-course-module-part-2\/\">http:\/\/sites.la.utexas.edu\/kb\/2020\/07\/29\/how-to-create-a-clio-course-module-part-2\/<\/a> (you might find it helpful to Ctrl \/ Cmd + F to find it). The only difference is that you will be pasting the link to the font between the <code>&lt;head&gt;&lt;\/head&gt;<\/code> tag of your file.<br><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"334\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.35.34-PM.png\" alt=\"\" class=\"wp-image-5213\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.35.34-PM.png 871w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.35.34-PM-300x115.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.35.34-PM-768x295.png 768w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure><\/li><\/ul><\/li><li>Collapsible Accordion<ul><li><a href=\"https:\/\/www.w3schools.com\/howto\/howto_js_accordion.asp\">https:\/\/www.w3schools.com\/howto\/howto_js_accordion.asp<\/a> <\/li><li>Please note that for the link above, you will add the JavaScript directly into your <code>global.js<\/code> file. You are also encouraged to complete just the plain accordion first (no animation), and once that&#8217;s working you might want to try out animation (slide down).<\/li><\/ul><\/li><li>Flexbox<ul><li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Flexible_Box_Layout\/Basic_Concepts_of_Flexbox\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Flexible_Box_Layout\/Basic_Concepts_of_Flexbox<\/a><\/li><li>You can try aligning items horizontally, i.e. <br><figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"321\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.43.21-PM-1024x568.png\" alt=\"\" class=\"wp-image-5219\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.43.21-PM-1024x568.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.43.21-PM-300x167.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.43.21-PM-768x426.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.43.21-PM-1536x853.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-21-at-4.43.21-PM-2048x1137.png 2048w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure><\/li><\/ul><\/li><li>Cards with images and text<ul><li>Simple card: <a href=\"https:\/\/www.w3schools.com\/howto\/howto_css_cards.asp\">https:\/\/www.w3schools.com\/howto\/howto_css_cards.asp<\/a><\/li><li>Flip card: <a href=\"https:\/\/www.w3schools.com\/howto\/howto_css_flip_card.asp\">https:\/\/www.w3schools.com\/howto\/howto_css_flip_card.asp<\/a><\/li><\/ul><\/li><li>Cut out text<ul><li><a href=\"https:\/\/www.w3schools.com\/howto\/howto_css_cutout_text.asp\">https:\/\/www.w3schools.com\/howto\/howto_css_cutout_text.asp<\/a><\/li><\/ul><\/li><li>Progress bar <ul><li><a href=\"https:\/\/www.w3schools.com\/howto\/howto_css_skill_bar.asp\">https:\/\/www.w3schools.com\/howto\/howto_css_skill_bar.asp<\/a><\/li><\/ul><\/li><\/ol>\n\n\n\n<p>Note: if you the challenge requires you to have JS, you will paste the JS code provided in the resource page in your <code>global.js<\/code>.<\/p>\n\n\n\n<p>For example, let&#8217;s say that I wanted to copy the JS from the resource page to my file. It&#8217;d look like so:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"273\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-11.57.01-AM.png\" alt=\"\" class=\"wp-image-5250\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-11.57.01-AM.png 551w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-11.57.01-AM-300x149.png 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/figure>\n\n\n\n<p>On the resource page, it looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.00.34-PM-1024x495.png\" alt=\"\" class=\"wp-image-5252\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.00.34-PM-1024x495.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.00.34-PM-300x145.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.00.34-PM-768x372.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.00.34-PM.png 1294w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Notice that the class name have been slightly adjusted after the code is copied over:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"274\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.03.23-PM.png\" alt=\"\" class=\"wp-image-5254\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.03.23-PM.png 559w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.03.23-PM-300x147.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<p>That&#8217;s because I&#8217;ve defined my class name a little differently in the CSS (also because the class &#8220;active&#8221; clashes with our stylings for the active tab).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"112\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.05.11-PM.png\" alt=\"\" class=\"wp-image-5255\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.05.11-PM.png 664w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.05.11-PM-300x51.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p>No worries if you find JS confusing, you are more than welcome to do the challenges that involve only HTML and CSS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where to apply what I&#8217;ve learned?<\/h2>\n\n\n\n<p>You might have seen HTML, CSS, and JS in the tools we used, such as Cascade, CLIO, etc. Below are the ways you can sneak in your newly acquired HTML and CSS knowledge into these tools.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cascade<\/h3>\n\n\n\n<p>To edit the HTML, in the Cascade editor, click &#8220;Source Code.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"808\" height=\"978\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.25.26-PM-1.png\" alt=\"\" class=\"wp-image-5258\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.25.26-PM-1.png 808w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.25.26-PM-1-248x300.png 248w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.25.26-PM-1-768x930.png 768w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/figure>\n\n\n\n<p>Unlike your CSS file where you write your CSS separately, in Cascade you will need to write inline CSS. In other words, your CSS will be within your HTML, wrapped between <code>&lt;style&gt;&lt;\/style&gt;<\/code> tag. This tag will be placed at the beginning of the HTML. For example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"572\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.32.30-PM.png\" alt=\"\" class=\"wp-image-5259\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.32.30-PM.png 575w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.32.30-PM-300x298.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.32.30-PM-150x150.png 150w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<p>This gives the result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"676\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.33.27-PM-1024x676.png\" alt=\"\" class=\"wp-image-5260\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.33.27-PM-1024x676.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.33.27-PM-300x198.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.33.27-PM-768x507.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.33.27-PM.png 1075w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">CLIO<\/h3>\n\n\n\n<p>In CLIO, you can edit the HTML of a card by clicking View &gt; Source Code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"433\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.36.32-PM-1024x433.png\" alt=\"\" class=\"wp-image-5262\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.36.32-PM-1024x433.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.36.32-PM-300x127.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.36.32-PM-768x324.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.36.32-PM-1536x649.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.36.32-PM-2048x865.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>And to edit the CSS, click &#8220;Edit Course.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.37.53-PM-1024x566.png\" alt=\"\" class=\"wp-image-5264\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.37.53-PM-1024x566.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.37.53-PM-300x166.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.37.53-PM-768x425.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.37.53-PM-1536x849.png 1536w, http:\/\/sites.la.utexas.edu\/kb\/files\/2020\/10\/Screen-Shot-2020-10-22-at-12.37.53-PM-2048x1132.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Congratulations on completing this training. It&#8217;s a rather long and involved training, and it can be very confusing and frustrated, so thank you so much for all of the hard work you&#8217;ve done. I hope you&#8217;ve had fun, and that you will be able to apply what you&#8217;ve learned when you have the chance to encounter it :).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this training you will be introduced to HTML, CSS, and JavaScript, the languages that can be used as tools to help you develop simple websites. This training is quite involved and can be frustrated or confusing, so be sure &hellip; <a href=\"http:\/\/sites.la.utexas.edu\/kb\/2020\/10\/12\/basic-training-html-css-and-javascript\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":744,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[200711],"tags":[],"class_list":["post-4855","post","type-post","status-publish","format-standard","hentry","category-basic-trainings"],"_links":{"self":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/4855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/users\/744"}],"replies":[{"embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/comments?post=4855"}],"version-history":[{"count":73,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/4855\/revisions"}],"predecessor-version":[{"id":7412,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/4855\/revisions\/7412"}],"wp:attachment":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/media?parent=4855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/categories?post=4855"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/tags?post=4855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}