Advertisement
noblestremark11

HTML NOTES

Oct 30th, 2023 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. HEADING
  2.  
  3. <head> this is the hmtl's heading, it contains the website's title, and doesnt have anything to do with the web's content. It includes "meta" stuff, like page title, stylesheets, and metadata.
  4. <title>This will be the title of your web page</title>
  5. <meta name="description" content="This is the most awesome webpage ever!"> (Metadata(meta for short) This is the data provided to give to the search engine(Google) to help find your website, it helps people and search engines know what your page is about
  6.  
  7.  
  8.  
  9. <h1> title
  10. <h2> subtitle (smaller title)
  11. <h3> smaller text
  12. <h4> even smaller text
  13.  
  14. Link user to other Sites
  15.  
  16. <a> Stands for "anchor, a clickable blue text that takes user to another website
  17. <link> Unlike anchor, It's not about creating clickable links within your webpage's content but rather linking to external files and resources that enhance your webpage's functionality or appearance.
  18.  
  19. <a href="(link to another site, ex: https://youtube.com)">CLICK ME</a>
  20. href="" Stands for: "Hypertext Reference", provides the link to which website you desire. It's like giving directions to where the stuff you want to link to is.
  21. target="" This attribute is all about how the link should open. Here's a quick rundown
  22. target="_blank" opens the linked document in a new tab or window. It's like saying, "Hey, open this in a fresh space."
  23. target="_self" the default opening method, which opens the linked document in the same frame or tab.
  24. target="_parent" Not much of a different from _self tag, If you have a tab in a tab, this one targets the main tab you;re in.
  25. target="_top" Acts like _parent, but IDK
  26.  
  27. SECTIONS
  28.  
  29. <div> divides sections
  30. <div id="THIS"> </div>
  31.  
  32. TEXT: VIEWS & EFFECT
  33.  
  34. <p> paragraph
  35. <br> line break or create new paragraph in the same <p>
  36.  
  37. <em> italic
  38. <strong> bolden text
  39. <ul> unordered list
  40. <ol> list of items (will be defined in 1,2,3)
  41. <li> list of items (* item1 )
  42.  
  43. MEDIA
  44.  
  45. <img> adds image:
  46. <img src="(path)" alt="This is my Image"> (NOTE does not need /(opening and closing tag))
  47. src = content path
  48. alt = alternative(if else the image wont show, this text will appear)
  49.  
  50. <video> adds video:
  51. <video src="videoku.mp4" width="640" height="360" controls> </video>
  52. src = content path
  53. controls (adds feature to let user increase/decrease volume, pause/unpause, etc. THIS IS A MUST)
  54. <video>IMAGE COULD NOT BE LOADED</video> (the text inside appears if the video couldnt be loaded)
  55.  
  56. _IMAGE VIEWS_
  57.  
  58. width = "300"
  59. height = "200"
  60. title = the text that shows when users' cursor points to the image
  61.  
  62. HTML INTERMEDIATE
  63.  
  64. 1) Input element
  65. In html, we use the input element to get all kinds of user input like emails, passwords, dates, an more. We'll learn how to use the user input in a website later. For now, we'll focuss on creating the element and setting its attributes.
  66.  
  67. html
  68. SIGN UP
  69. email
  70. **********
  71. password
  72. **********
  73.  
  74.  
  75. Create input tag using <input>
  76. <input placeholder="Email">
  77. <br>
  78. <input type="password" placeholder="Type your password here">
  79.  
  80. The type attribute specifies the type of input. by using "password", we can hide what users type for better security. The default type is "text" OTHER TYPES OF INPUT:
  81.  
  82. "range" , "checkbox" , "date" , "color"
  83.  
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement