Skip to content

Commit

Permalink
Merge branch 'main' into fix-wording
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkR-Dev committed Aug 14, 2024
2 parents cce3e6c + eee2f49 commit fc3e0de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions foundations/html_css/css-foundations/intro-to-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ Now that we've learned some basic syntax, you might be wondering *how* to add al

#### External CSS

External CSS is the most common method you will come across, and it involves creating a separate file for the CSS and linking it inside of an HTML's opening and closing `<head>` tags with a self-closing `<link>` element:
External CSS is the most common method you will come across, and it involves creating a separate file for the CSS and linking it inside of an HTML's opening and closing `<head>` tags with a void `<link>` element:

```html
<!-- index.html -->
Expand All @@ -306,7 +306,7 @@ p {
}
```

First, we add a self-closing `<link>` element inside of the opening and closing `<head>` tags of the HTML file. The `href` attribute is the location of the CSS file, either an absolute URL or, what you'll be utilizing, a URL relative to the location of the HTML file. In our example above, we are assuming both files are located in the same directory. The `rel` attribute is required, and it specifies the relationship between the HTML file and the linked file.
First, we add a void `<link>` element inside of the opening and closing `<head>` tags of the HTML file. The `href` attribute is the location of the CSS file, either an absolute URL or, what you'll be utilizing, a URL relative to the location of the HTML file. In our example above, we are assuming both files are located in the same directory. The `rel` attribute is required, and it specifies the relationship between the HTML file and the linked file.

Then inside of the newly created `styles.css` file, we have the selector (the `div` and `p`), followed by a pair of opening and closing curly braces, which create a "declaration block". Finally, we place any declarations inside of the declaration block. `color: white;` is one declaration, with `color` being the property and `white` being the value, and `background-color: black;` is another declaration.

Expand Down
4 changes: 3 additions & 1 deletion ruby/introduction/installing_ruby.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
Next command takes care of setting rbenv.

```bash
rbenv init
~/.rbenv/bin/rbenv init
```

Close the terminal window and open a new one to refresh.

Next, you need to install `ruby-build` to help compile the Ruby binaries. Run these commands in the terminal to create a directory for the ruby-build plugin and then download it to the proper directory.

```bash
Expand Down

0 comments on commit fc3e0de

Please sign in to comment.