Home >Web Front-end >HTML Tutorial >HTML/CSS from scratch (1)

HTML/CSS from scratch (1)

WBOY
WBOYOriginal
2016-09-23 03:30:091035browse

Preparation

2 books: "HTML5 from Beginner to Master" Tsinghua University Press, "Head First HTML and CSS" China Electric Power Press;

1 compiler: sublime;

Several browsers are used to test web pages: Firefox, chrome, 360, IE;

2 main learning websites: MOOC: http://www.imooc.com/, w3school: http://www.w3school.com.cn/h.asp;

Also have a stable heart and be willing to study.

Start learning

1. Initial understanding of HTML and CSS

HTML is the structure of the web page (It is quite a rough house and has not been decorated yet), and CSS is used to define the style (equivalent to decoration); so these two languages ​​together constitute the web page. In fact, the style attribute of the tag in HTML You can also define styles. The HTML structure and CSS are defined as follows:

H & lt; html & gt;

& lt; head & gt; & lt; title & gt; starbuzz coffees & lt;/title & gt;
& lt; style type = "text/css" & gt; ODY {c background-color: #d2b48c;
& lt ;!--Background color-->
                                                                                                                                                                                                                     margin-left: 20%; 10px;

directions
Back to the lounge

Next and second level: name1/name2/target file

First go to the second level and then the next level: ../../next level name1/target file