User Tools

Site Tools


web_design:letter:attributes

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:attributes [2021/10/07 06:20]
mag [Attributes]
web_design:letter:attributes [2023/08/16 09:33] (current)
Line 1: Line 1:
-====== Web Development ====== +====== Web Development Lesson 2 - Letter ====== 
-===== Lesson 2 - Letter ===== +===== Attributes ===== 
-==== Attributes ====+==== Setup ====
  
 Continue using jsfiddle with the same code from the previous screen. Here it is again. Continue using jsfiddle with the same code from the previous screen. Here it is again.
-<p>Medellin, Date</p>+<code><p>Medellin, Date</p>
 <p>Name</p> <p>Name</p>
 <p>Estimados Senor,</p> <p>Estimados Senor,</p>
Line 16: Line 16:
   * More complex formatting is available using attributes. Attributes are parameter:value pairs inside tags, and they apply to everything between the tags.   * More complex formatting is available using attributes. Attributes are parameter:value pairs inside tags, and they apply to everything between the tags.
  
-=== Colour ===+==== Colour ====
  
   * As an example, let's make the first paragraph blue by adding <html>style="color:blue;"</html> inside the <html><p></html> tag as follows.   * As an example, let's make the first paragraph blue by adding <html>style="color:blue;"</html> inside the <html><p></html> tag as follows.
-<code><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></code>+<code><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></code>
   * Run the code to check the result.   * Run the code to check the result.
   * We are applying a style, hence <html>style=""</html>   * We are applying a style, hence <html>style=""</html>
Line 26: Line 26:
   * Also notice the <html>;</html> at the end of the pair.   * Also notice the <html>;</html> at the end of the pair.
  
-=== Span ===+==== Tag: Span ====
  
   * We can select a section of text to style by using <html><span></html>. Let's make the text 'la escuela pide 400 horas de práctica profesional' red.   * We can select a section of text to style by using <html><span></html>. Let's make the text 'la escuela pide 400 horas de práctica profesional' red.
Line 32: Line 32:
   * Run the code to see whether you did it correctly.   * Run the code to see whether you did it correctly.
  
-=== Multiple Parameters ===+==== Rule: Multiple Parameters ====
  
   * You can change two styles at the same time by separating them with a <html>;</html> as follows.   * You can change two styles at the same time by separating them with a <html>;</html> as follows.
Line 38: Line 38:
   * Now the red text should also be bold because it has a higher <html>font-weight</html>. 300 is very faint and 900 is very heavy.   * Now the red text should also be bold because it has a higher <html>font-weight</html>. 300 is very faint and 900 is very heavy.
  
-=== Alignment ===+==== Indent ==== 
 + 
 +  * We can indent the first line of a paragraph with <html>text-indent</html>
 +<code><p style="text-indent:50px;">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 CortezTM sabrá sacar el máximo provecho, cuando vea el aumento de experiencias positivas que sus clientes experimentarán.</p></code> 
 + 
 +==== Alignment ====
  
   * Let's try something different. The location and date are normally located at the top right of a letter. Let's move it there now.   * Let's try something different. The location and date are normally located at the top right of a letter. Let's move it there now.
web_design/letter/attributes.1633612817.txt.gz · Last modified: 2023/08/16 09:33 (external edit)