🌑

Jenqyang

Learn HTML

HTML Attributes

📌Should use quotes!!! But using single or double quotes should according to the situation.

  1. All HTML elements can have attributes
  2. The href attribute of <a> specifies the URL of the page the link goes to
  3. The src attribute of <img> specifies the path to the image to be displayed
  4. The width and height attributes of <img> provide size information for images
  5. The alt attribute of <img> provides an alternate text for an image
  6. The style attribute is used to add styles to an element, such as color, font, size, and more
  7. The lang attribute of the <html> tag declares the language of the Web page. This is meant to assist search engines and browsers. Country codes can also be added to the language code in the lang attribute, such as <html lang="en-US"> (use ISO 639-1 Language Codes).
  8. The title attribute defines some extra information about an element. The value of the title attribute will be displayed as a tooltip when you mouse over the element.

HTML Styles

  1. Use the style attribute for styling HTML elements
  2. Use background-color for background color
  3. Use color for text colors
  4. Use font-family for text fonts
  5. Use font-size for text sizes
  6. Use text-align for text alignment

HTML Formatting Elements

  1. <b> - Bold text
  2. <strong> - Important text
  3. <i> - Italic text
  4. <em> - Emphasized text
  5. <mark> - Marked text
  6. <small> - Smaller text
  7. <del> - Deleted text
  8. <ins> - Inserted text
  9. <sub> - Subscript text
  10. <sup> - Superscript text

— Apr 16, 2022

Made with ❤ and Hexo.js at Earth.