User Tools

Site Tools


web_design:letter:headings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web_design:letter:headings [2021/10/05 16:40]
mag
web_design:letter:headings [2023/08/16 09:33] (current)
Line 1: Line 1:
 ====== Web Development ====== ====== Web Development ======
 ===== Lesson 2 - Letter ===== ===== Lesson 2 - Letter =====
-==== Headings ====+===== Headings =====
  
 We'll continue to use the code you've been working on in [[https://jsfiddle.net/|jsfiddle]]. We'll continue to use the code you've been working on in [[https://jsfiddle.net/|jsfiddle]].
-<code><p>Job Application</p>+<code>
 <p style="text-align:right;">Medellin, Date</p> <p style="text-align:right;">Medellin, Date</p>
 <p>Name</p> <p>Name</p>
Line 13: Line 13:
 <p>Me encuentro en alta disposición para conversar con ustedes más ampliamente. Espero su llamado para una entrevista y conocernos mejor.</p> <p>Me encuentro en alta disposición para conversar con ustedes más ampliamente. Espero su llamado para una entrevista y conocernos mejor.</p>
 <p>Atentamente,</p> <p>Atentamente,</p>
-<p>Jane</p></code>+<p>Murray</p></code>
  
-  * Headings can also be defined using html tags. Let'make the first line a heading by replacing <html><p></html> with <html><h1></html>+  * Headings can also be defined using html tags. Let'add a heading above the first line
 <code><h1>Job Application</h1></code> <code><h1>Job Application</h1></code>
-  * Notice that the text became much bigger and heavier, as you'd expect from a heading.+  * Notice that the text is much bigger and heavier, as you'd expect from a heading.
   * There are 6 levels of heading from <html><h1></html> to <html><h6></html>. They get smaller as the number gets higher.   * There are 6 levels of heading from <html><h1></html> to <html><h6></html>. They get smaller as the number gets higher.
 +
 +==== Font-family ====
 +
   * Let's make some changes to the heading style.   * Let's make some changes to the heading style.
   * Change the font by adding a font-family style attribute.   * Change the font by adding a font-family style attribute.
Line 24: Line 27:
   * Now make it green.   * Now make it green.
 <code><h1 style="font-family:Arial,sans-serif; color:green;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green;">Job Application</h1></code>
 +
 +==== Font-size ====
 +
   * Next, let's make it smaller.   * Next, let's make it smaller.
 <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em;">Job Application</h1></code>
   * The <html>em</html> is the standard size for normal font, so this is 1.7 times bigger than the letter text (but still smaller than h1 usually is).   * The <html>em</html> is the standard size for normal font, so this is 1.7 times bigger than the letter text (but still smaller than h1 usually is).
 +
 +==== Underline ====
 +
   * Let's underline the heading.   * Let's underline the heading.
 <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline;">Job Application</h1></code>
 +
 +==== Changing Case ====
 +
   * Let's make it all upper case.   * Let's make it all upper case.
 <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; text-transform:uppercase;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; text-transform:uppercase;">Job Application</h1></code>
   * Here's a different style that looks great in headings. Notice that you need to delete <html>text-transform:uppercase;</html> to get small-caps to work. You can't have both.   * Here's a different style that looks great in headings. Notice that you need to delete <html>text-transform:uppercase;</html> to get small-caps to work. You can't have both.
 <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps;">Job Application</h1></code>
 +
 +==== Line Height ====
 +
   * We can also change the height of the line.   * We can also change the height of the line.
 <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps; line-height: 3em;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps; line-height: 3em;">Job Application</h1></code>
   * Did you notice the extra space above the heading now? That's because the line height is bigger than before.   * Did you notice the extra space above the heading now? That's because the line height is bigger than before.
 +
 +==== Shadow ====
 +
   * Finally, let's add some shadow to the heading.   * Finally, let's add some shadow to the heading.
 <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps; line-height: 2em; text-shadow:2px 2px #ff0000;">Job Application</h1></code> <code><h1 style="font-family:Arial,sans-serif; color:green; font-size: 1.7em; text-decoration:underline; font-variant: small-caps; line-height: 2em; text-shadow:2px 2px #ff0000;">Job Application</h1></code>
   * See how you can string many style attributes together?   * See how you can string many style attributes together?
-  * This is handy if you want to change the style of one element, but becomes cumbersome if, for example, you want to change the style of all paragraphs in your letter. For that, we'll use CSS, which we'll cover in [[web_design:horario|Lesson 3]].+  * This is handy if you want to change the style of one element, but becomes cumbersome if, for example, you want to change the style of all paragraphs in your letter. For that, we'll use CSS, which we'll cover in Lesson 3.
   * All the style attributes we've used in this lesson can be used in CSS.   * All the style attributes we've used in this lesson can be used in CSS.
  
 [[web_design:letter:javascript|Next: Javascript]] [[web_design:letter:javascript|Next: Javascript]]
web_design/letter/headings.1633477224.txt.gz · Last modified: 2023/08/16 09:33 (external edit)