HTML is the carrier of web content. Content is the information that webpage creators put on the page for users. It includes text, pictures, videos, etc. CSS is more like performance and decoration. For example, the title font, color changes, or adding background images, colors, etc. These are things used to change the appearance of the content. JavaScript is used to achieve interaction on web pages, such as mouse over the pop-up drop-down menu, or click the button.
Tips (for memorize)
HTML doesn’t need to differentiate the cases, <h1> and <H1> are the same, but most of them are in lowercase.
HTML file has its own fixed structure.
<html>
<head>…</head>
<body>…</body>
</html>
The <head> tag is used to define the head of the document. The elements include tags such as <title>, <script>, <style>, <link>, <meta>, etc. Between the <body> and </body> tags, the content is the main content of the webpage, such as <h1>, <p>, <a>, <img> and other web content tags
Create the five elements of the table:
table, tbody, tr, th, td
<table>…</table>: The entire table starts with a <table> tag and ends with a </table> tag.
<img> tag, insert a picture for the web page
<img src=“”>
alt: Specify the descriptive text of the image. When the image is not visible (the download is unsuccessful), you can see the text specified by the words.
Many semantic tags have been added to HTML, such as header, footer, body, article, address, etc. When you see it, you probably know which parts are used to describe them. The semantic label of HTML (in simple terms) is to make the label have meaning as if it directly tells you what organ and part it is, instead of using other labels to piece it together. It looks like a human body with systematic layers.
Putting a semantic tag on a piece of content can make the page have a good structure, it is also easier to understand what the content is, and it is helpful for search it. I think that in future program design, there will be more and more semantic tags, and more and more people can master programming through simple learning.