HTML
HTML stands for Hyper Text Markup Language. It is used to give websites structure with text, links, images, and other fundamental elements. It is basically there to define the content of web pages.
HTML Fundamentals
- The <!DOCTYPE html> declaration should always be the first line of code in your HTML files.
- The <html> element will contain all of your HTML code.
- Information about the web page, like the title, belongs within the <head> of the page.
- You can add a title to your web page by using the <title> element, inside of the head.
- Code for visible HTML content will be placed inside of the <body> element.
10 Common HTML Elements
|
More About AttributesAn Attribute provides additional information about HTML tags.
The lang Attribute: Language of the document eg. <html lang="en-US"> The title Attribute: A title attribute is added to the <p> element eg. <p title="I'm learning">This is a paragraph. </p> The href Attribute: HTML links are defined with the <a> tag. <a href="https://google.com"> The size attributes: Example- <img src="w3schools.jpg" width="104" height="142"> Html Internal VS External LinksHyperlinks are considered either "external" or "internal" depending on their target or destination.
An internal link is a type of hyperlink on a webpage to another page or resource, such as an image or document, on the same website or domain. External Links: External Links are hyperlinks that point at (target) any domain other than the domain the link exists on. Similarly, if you link out to another website, this is also considered an external link. |