The semantics of tags, that is, the use of tags.
HTML, CSS, JavaScript functions:
- HTML is the carrier of Web content. The content is the information that the Web creator puts on the page to let the user browse, can contain text, picture, video and so on.
- CSS styles are expressive. Just like a web coat. For example, the title font, color changes, or for the title to add background pictures, borders and so on.
- JavaScript is used to achieve special effects on a Web page. such as: Mouse over Popup drop-down menu. or the mouse slide over the background color of the table changes. There is also the rotation of the Focus news (news pictures). It can be understood that there are animations and interactions that are generally done with JavaScript.
Add accent tone, use <strong> and <em> tags
There is a difference between the two in the tone of emphasis,:<em> stressed that,<strong> expressed a stronger emphasis. And in the browser <em> by default in italics,,<strong> is indicated in bold.
Syntax :
<em>需要强调的文本</em>
<strong>需要强调的文本</strong>
Use <span> tags to set individual styles for text
<span>Tags are non-semantic, and are intended to be used to set individual styles, which is custom.
Syntax :
<span>文本</span>
1 <style>2 span{3 Color:Blue;4 }5 </style>6 </Head>7 <Body>8 <P>In the spring of 1922, a writer who wanted to fame named Nick Callaway (Toby McGuire Tobey Maguire) left the Midwest and came to New York. It was a time of rising morality, popular jazz, smuggling as king, and soaring stocks. To9 chasing him.Ten <span>American Dream</span>, he moved into a bay near New York to live.</P> One </Body>
Output: American Dream
Display text using the <br> label branch
Unlike the label we learned before, the label is an empty tag, and the label with <br> no HTML content is an empty tag, and an empty tag only needs to write a start tag.
Grammar:
xhtml1.0 notation:
<br />
html4.01 notation:
<br>
HTML Learning (2)