Advertisement
Patrikrizek

lesson-2-index

Jun 15th, 2022
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.07 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>My Second Webpage</title>
  5.  
  6.     <!-- Internal CSS -->
  7.     <style>
  8.         /* Here you can write your internal CSS code. */
  9.     </style>
  10.  
  11.     <!-- External CSS -->
  12.     <!-- This is a link to external CSS file. this file consists only CSS code. -->
  13.     <!-- It is common practice to use external CSS files. -->
  14.     <link rel="stylesheet" href="style.css">
  15. </head>
  16. <body>
  17.     <!-- HTML Paragraphs, lines, breaks and horizontal rule. -->
  18.     <p>     A paragraph starts on a new line, and browsers automatically add some white space (margin) before and after paragraph.
  19.        
  20.         The browser will automatically remove any extra spaces and lines when the page is displayed so you can not edit final visual by adding extra spaces or extra lines iin your HTML code.     </p>
  21.    
  22.     <!-- To create a comment in your code, that will not be displayed in the internet browser use CTRL + / shortcut. -->
  23.     <!-- Use ALT + Z shortcut to wrap worlds or find this tool under View -> Wrap Worlds. -->
  24.  
  25.     <br>
  26.     <hr>
  27.  
  28.     <pre>      The text inside preserves element preserves      both spaces and breaks (but change font).     </pre>
  29.  
  30.     <!-- HTML formatting -->
  31.     <p>
  32.         Change a style of text can be done inside paragraph element.
  33.  
  34.         <em>The emphasized text - content inside is displayed in italic. Screen reader sill pronounce the worlds in emphasis using verbal stress.</em>
  35.        
  36.         <i>Text has voice, mood, or role that's different from that of the regular text. Content inside is displayed in italic.</i>
  37.  
  38.         <strong>Defines text with string importance. Content is typically displayed in bold.</strong>
  39.  
  40.         <b>Bold text, without any extra importance.</b>
  41.  
  42.         <mark>Defines text that should be marked or highlighted.</mark>
  43.    
  44.         <del>Text that has been deleted from document. Strike a line through.</del>
  45.  
  46.         <ins>Text that has been inserted into document. Underline inserted text.</ins>
  47.     </p>
  48.  
  49.     <!-- HTML Links and Image -->
  50.     <!-- External links -->
  51.     <!-- Using Relative URL. Full web address. -->
  52.     <a href="https://www.bbc.co.uk/">BBC news</a>
  53.    
  54.     <!-- Internal links. Local link, a link to a age within the same website. -->
  55.     <a href="/lesson-2/elephant.jpeg">This can be internal webpage, image, pdf, etc.</a>
  56.  
  57.     <!-- src - specifies the path to image. alt - specifies an alternative text for image -->
  58.     <!-- Fill out the alt all the time. -->
  59.     <img src="https://www.txautism.net/assets/uploads/images/elephant.jpeg" alt="elephant">
  60.  
  61.     <!-- Basic CSS -->
  62.     <!-- Inline CSS by using the style attribute inside HTML element (opening tag)n -->
  63.     <h1 style="color: blue;">A Blue Heading</h1>
  64.  
  65.     <p style="  color:yellow;
  66.                background-color: red;
  67.                font-family: 'Courier New', Courier, monospace;
  68.                font-size: 20px;
  69.                text-align: center;">
  70.         This paragraph has yellow text, red background, specific font family, size of text 20px and it is aligned to center.
  71.     </p>
  72. </body>
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement