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

Next revision
Previous revision
web_design:letter:headings [2021/10/04 17:21]
mag created
web_design:letter:headings [2023/08/16 09:33] (current)
Line 1: Line 1:
 ====== Web Development ====== ====== Web Development ======
-===== Lesson - Letter ===== +===== Lesson - Letter ===== 
-==== Headings ====+===== Headings =====
  
 +We'll continue to use the code you've been working on in [[https://jsfiddle.net/|jsfiddle]].
 +<code>
 +<p style="text-align:right;">Medellin, Date</p>
 +<p>Name</p>
 +<p>Estimados Senor,</p>
 +<p style="color:blue">Soy estudiante del penúltimo año de Hotelería en la <strong>Universidad Nacional de <em>Hospitalidad</em></strong>, y quiero mostrarles mi interés en formar parte de su compañía a través de un contrato de prácticas.</p>
 +<p>Como saben, <span style="color:red; font-weight: 700;">la escuela pide <em>400 horas</em> de práctica profesional</span> en empresas especializadas en el área de estudios del alumno, para optar por el título profesional.</p>
 +<p>Podrán ver que una de mis mayores fortalezas está en el área de alimentos y bebidas, ya que he participado en diferentes entrenamientos y estudios paralelos, que me han llevado a innovar nuevas formas de ofrecer el servicio y experiencia del cliente, y estoy segura que el Hotel Cortez<sup>TM</sup> sabrá sacar el máximo provecho, cuando vea el aumento de experiencias positivas que sus clientes experimentarán.</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>Murray</p></code>
  
 +  * Headings can also be defined using html tags. Let's add a heading above the first line
 +<code><h1>Job Application</h1></code>
 +  * 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.
  
 +==== Font-family ====
 +
 +  * Let's make some changes to the heading style.
 +  * Change the font by adding a font-family style attribute.
 +<code><h1 style="font-family:Arial,sans-serif;">Job Application</h1></code>
 +  * Now make it green.
 +<code><h1 style="font-family:Arial,sans-serif; color:green;">Job Application</h1></code>
 +
 +==== Font-size ====
 +
 +  * Next, let's make it smaller.
 +<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).
 +
 +==== Underline ====
 +
 +  * 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>
 +
 +==== Changing 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>
 +  * 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>
 +
 +==== Line Height ====
 +
 +  * 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>
 +  * 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.
 +<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?
 +  * 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.
 +
 +[[web_design:letter:javascript|Next: Javascript]]
web_design/letter/headings.1633393283.txt.gz · Last modified: 2023/08/16 09:33 (external edit)